从 10.04 升级到 12.04 后,我尝试安装不同的软件包。例如 ia32-libs 和 Skype (4.0)。
尝试安装这些时,我收到“无法纠正问题,您保存了损坏的软件包”错误消息。
命令的输出:
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
运行后:
sudo dpkg --configure -a
foo@foo:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud) 现在更新时出现错误,由于损坏,我无法安装大多数软件
/etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
文件。有没有我可以下载的副本来替换它?
该文件适用于美国的 Ubuntu 12.04(最终测试版)。
关于可能重复的注意事项:
AFAIK,这不是添加 PPA 后如何解决未满足的依赖项的重复项?否则请通过使用那里的任何答案解决我在下面提到的测试问题来证明它。
我在How to fix installation wine on Ubuntu 14.04.3LTS 64 bit之前遇到过这个问题。它是通过手动/人工审查目标包 ( wine)的所有递归依赖项来解决的。
让我们用 1 个麻烦包创建相同的情况,安静地简化。
software-properties-gtk并启用backports存储库。获取最后一个包列表
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)运行apt-get -s install wine确认wine可以安装。
libcgmanager0从 backports安装令人不安的包
$ apt-cache policy libcgmanager0
libcgmanager0:
Installed: 0.24-0ubuntu5
Candidate: 0.24-0ubuntu7.5
Version table:
0.39-2ubuntu2~ubuntu14.04.1 0
100 http://dz.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64 Packages
0.24-0ubuntu7.5 0
500 http://dz.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
0.24-0ubuntu7.1 0 …Run Code Online (Sandbox Code Playgroud)我在 Ubuntu Zesty 中安装 VLC 3.0 时遇到了困难。使用官方 PPA。我添加它使用
sudo add-apt-repository ppa:videolan/master-daily
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
并apt-cache show已被列入其中,
apt-cache show vlc | grep Version
Version: 3.0.0~~git20160813+r65787+62~ubuntu16.04.1
Version: 2.2.4-14ubuntu2
Run Code Online (Sandbox Code Playgroud)
但是当我尝试安装时3.0.0,sudo apt-get install vlc=3.*我得到了,
sudo apt-get install vlc=3.*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '3.0.0~~git20160813+r65787+62~ubuntu16.04.1' ( [amd64]) for 'vlc'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are …Run Code Online (Sandbox Code Playgroud)