首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >下列软件包有未满足的依赖项(周期性错误)

下列软件包有未满足的依赖项(周期性错误)
EN

Ask Ubuntu用户
提问于 2022-12-22 09:51:55
回答 1查看 190关注 0票数 1

我试着安装蒸汽,但安装破坏了包装安装程序。

lsb_release -a:

代码语言:javascript
复制
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

这就是我试过的:

sudo apt升级:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 i965-va-driver:i386 : Depends: libva-driver-abi-1.10:i386
 libva-glx2:i386 : Depends: libva-x11-2:i386 (>= 1.0.3) but it is not installed
                   Depends: libva2:i386 (>= 2.15.0.2) but it is not installed
                   Depends: libva2:i386 (< 2.15.0.2.1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt安装i 965-va-驱动程序:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
i965-va-driver is already the newest version (2.4.1+dfsg1-1).
i965-va-driver set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 i965-va-driver:i386 : Depends: libva-driver-abi-1.10:i386
 libva-glx2:i386 : Depends: libva-x11-2:i386 (>= 1.0.3) but it is not going to be     installed
                   Depends: libva2:i386 (>= 2.15.0.2) but it is not going to be installed
                   Depends: libva2:i386 (< 2.15.0.2.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt安装-f:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libgl1-amber-dri
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libva-x11-2:i386 libva2:i386
The following NEW packages will be installed
  libva-x11-2:i386 libva2:i386
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
107 not fully installed or removed.
Need to get 0 B/99.5 kB of archives.
After this operation, 311 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 173053 files and directories currently installed.)
Preparing to unpack .../libva2_2.15.0.2-36_i386.deb ...
Unpacking libva2:i386 (2.15.0.2-36) ...
dpkg: error processing archive /var/cache/apt/archives/libva2_2.15.0.2-36_i386.deb (-    -unpack):
 trying to overwrite shared '/usr/share/doc/libva2/changelog.Debian.gz', which is different from other instances of package libva2:i386
Preparing to unpack .../libva-x11-2_2.15.0.2-36_i386.deb ...
Unpacking libva-x11-2:i386 (2.15.0.2-36) ...
dpkg: error processing archive /var/cache/apt/archives/libva-x11-2_2.15.0.236_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libva-x11-2/changelog.Debian.gz', which is different from other
 instances of package libva-x11-2:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libva2_2.15.0.2-36_i386.deb
 /var/cache/apt/archives/libva-x11-2_2.15.0.2-36_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

卸载蒸汽的尝试失败。

谢谢

apt-缓存策略libva-x11-2 :i 386 libva 2:i 386 libva-x11-2 libva2:

代码语言:javascript
复制
libva-x11-2:i386:
  Installed: (none)
  Candidate: 2.15.0.2-36
  Version table:
     2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu jammy/arc i386 Packages
     2.14.0-1 500
        500 http://mt.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
libva2:i386:
  Installed: (none)
  Candidate: 2.15.0.2-36
  Version table:
     2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu     jammy/arc i386 Packages
     2.14.0-1 500
        500 http://mt.archive.ubuntu.com/ubuntu jammy/universe i386 Packages
libva-x11-2:
  Installed: 2.15.0.2-36
  Candidate: 2.15.0.2-36
  Version table:
 *** 2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu     focal/main amd64 Packages
        100 /var/lib/dpkg/status
     2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu jammy/arc amd64 Packages
     2.14.0.2-29 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.14.0.2-23 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.14.0-1 500
        500 http://mt.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
     2.13.0+i643~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.13.0+i638~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.12.0+i620~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.12.0+i611~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i593~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i592~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i571~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i557~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i547~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i538~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i526~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i520~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i509~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i494~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i482~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i464~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i455~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i449~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i435~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i423~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i419~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i414~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i405~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.0.0+i391~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i374~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i371~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i362~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i10~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i5~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
libva2:
  Installed: 2.15.0.2-36
  Candidate: 2.15.0.2-36
  Version table:
 *** 2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     2.15.0.2-36 500
        500 https://repositories.intel.com/graphics/ubuntu jammy/arc amd64 Packages
     2.14.0.2-29 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.14.0.2-23 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.14.0-1 500
        500 http://mt.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
     2.13.0+i643~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.13.0+i638~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.12.0+i620~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.12.0+i611~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i593~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i592~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i571~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i557~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i547~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.11.0+i538~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i526~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i520~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i509~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i494~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i482~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i464~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i455~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.10.0+i449~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i435~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i423~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i419~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i414~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.1+i405~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.9.0.0+i391~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i374~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i371~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i362~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i10~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages
     2.8.0.0+i5~u20.04 500
        500 https://repositories.intel.com/graphics/ubuntu focal/main amd64 Packages

这个问题与蒸汽有关。

代码语言:javascript
复制
The following packages have unmet dependencies.
 aptitude : Depends: aptitude-common (= 0.8.13-3ubuntu1) but it is not going to be installed
            Depends: libcwidget4 (>= 0.5.18-1) but it is not going to be installed
            Depends: libxapian30 (>= 1.4.17~) but it is not going to be installed
 i965-va-driver:i386 : Depends: libva-driver-abi-1.10:i386
 libva-glx2:i386 : Depends: libva-x11-2:i386 (>= 1.0.3) but it is not going to be installed
                   Depends: libva2:i386 (>= 2.15.0.2) but it is not going to be installed
                   Depends: libva2:i386 (< 2.15.0.2.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

答案1的结果(@无人)

我跟踪了你提到的名单。还在经历这个问题。

cat /etc/apt/sources.list .列表:

代码语言:javascript
复制
# deb cdrom:[Ubuntu 22.04.1 LTS _Jammy Jellyfish_ - Release amd64 (20220809.1)]/ jammy main restricted
deb http://archive.ubuntu.com/ubuntu jammy main restricted
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://archive.ubuntu.com/ubuntu jammy universe
deb http://archive.ubuntu.com/ubuntu jammy-updates universe
deb http://archive.ubuntu.com/ubuntu jammy multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security universe
deb http://archive.ubuntu.com/ubuntu jammy-security multiverse
deb http://archive.canonical.com/ubuntu jammy partner

sudo apt更新:

代码语言:javascript
复制
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.canonical.com/ubuntu jammy InRelease                                                                                                                                                         
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                                                    
Hit:4 https://apt.enpass.io stable InRelease                                                                                                                            
Hit:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease                                                                                   
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                     
Hit:7 https://packages.microsoft.com/repos/edge stable InRelease                          
Hit:8 https://ocean.surfshark.com/debian stretch InRelease          
Hit:9 https://repositories.intel.com/graphics/ubuntu focal InRelease
Hit:10 https://repositories.intel.com/graphics/ubuntu jammy  InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up-to-date.
W: https://repositories.intel.com/graphics/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

ls /etc/apt/ : apt.conf.d auth.conf.d keyring偏好.d sources.list源.list.d sources.list.save trusted.gpg受托人.

sudo apt -s完全升级:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
  i965-va-driver:i386 : Depends: libva-driver-abi-1.10:i386
 libva-glx2:i386 : Depends: libva-x11-2:i386 (>= 1.0.3) but it is not installed
                   Depends: libva2:i386 (>= 2.15.0.2) but it is not installed
                   Depends: libva2:i386 (< 2.15.0.2.1) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt --修复-损坏的安装:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libgl1-amber-dri
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  libva-x11-2:i386 libva2:i386
The following NEW packages will be installed
  libva-x11-2:i386 libva2:i386
0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/99.5 kB of archives.
After this operation, 311 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 173053 files and directories currently installed.)
Preparing to unpack .../libva2_2.15.0.2-36_i386.deb ...
Unpacking libva2:i386 (2.15.0.2-36) ...
dpkg: error processing archive /var/cache/apt/archives/libva2_2.15.0.2-36_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libva2/changelog.Debian.gz', which is different from 
other instances of package libva2:i386
Preparing to unpack .../libva-x11-2_2.15.0.2-36_i386.deb ...
Unpacking libva-x11-2:i386 (2.15.0.2-36) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libva2_2.15.0.2-36_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

谢谢

EN

回答 1

Ask Ubuntu用户

发布于 2022-12-22 13:04:50

急救

代码语言:javascript
复制
sudo mv /usr/share/doc/libva-x11-2/changelog.Debian.gz /usr/share/doc/libva-x11-2/changelog.Debian.gz.bak

根据您的重要数据进行备份;并创建一个工作安装媒体(实际上是以防万一)。这样它就能起作用(危险)。

首先,请还原默认存储库。用以下内容替换/etc/apt/Sourcees.list。

代码语言:javascript
复制
deb http://archive.ubuntu.com/ubuntu jammy main restricted
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://archive.ubuntu.com/ubuntu jammy universe
deb http://archive.ubuntu.com/ubuntu jammy-updates universe
deb http://archive.ubuntu.com/ubuntu jammy multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security universe
deb http://archive.ubuntu.com/ubuntu jammy-security multiverse
deb http://archive.canonical.com/ubuntu jammy partner

将任何文件移动到

代码语言:javascript
复制
/etc/apt/sources.list.d/

在$HOME中的文件夹中

创建文件

代码语言:javascript
复制
/etc/apt/preferences.d/jammy.pref

有以下内容。

代码语言:javascript
复制
Package: *                                                                                                                                                   
Pin: release n=jammy 
Pin-Priority: 1001    

这将迫使安装或降级软件包的默认回购。下面的其他文件

代码语言:javascript
复制
/etc/apt/preferences.d/ 

移动,然后也在您的$HOME。

代码语言:javascript
复制
sudo apt update && sudo apt -s full-upgrade

第二部分只是一个模拟。

这是你的包装管理中的一个深层次的问题。仔细研究模拟的输出,然后再用

代码语言:javascript
复制
sudo apt full-upgrade
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1446741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档