![Ubuntu 14.04 64 位-未满足的依赖项(skype、steam、samba)](https://linux22.com/image/856476/Ubuntu%2014.04%2064%20%E4%BD%8D-%E6%9C%AA%E6%BB%A1%E8%B6%B3%E7%9A%84%E4%BE%9D%E8%B5%96%E9%A1%B9%EF%BC%88skype%E3%80%81steam%E3%80%81samba%EF%BC%89.png)
我无法在我的 Ubuntu 14.04 64 位系统上安装许多不同类型的软件包。
我已经运行了命令
sudo dpkg --add-architecture i386
正如许多相关问题所建议的那样,但是当我运行
sudo apt-get install skype
我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
skype : Depends: skype-bin
E: Unable to correct problems, you have held broken packages.
Steam 也失败了:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
steam:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be installed
Depends: libgl1-mesa-glx:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
另外,甚至我认为像 samba 这样简单的东西也无法安装:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
Depends: samba-common-bin (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
Depends: samba-dsdb-modules but it is not going to be installed
Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.1 is to be installed
Recommends: attr
Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
以下是未注释的行/etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted
deb http://archive.ubuntu.com/ubuntu trusty universe
deb-src http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty multiverse
deb-src http://archive.ubuntu.com/ubuntu trusty multiverse
deb http://archive.canonical.com/ trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
我相信这与 Ubuntu 14.04 中的“新”多架构系统有关(我的上一个系统运行的是 13.04),但我真的不知道该怎么做才能解决这个问题。我见过许多建议,涉及将旧发行版中的软件包强行塞入 14.04,但除非万不得已,否则我不想这么做。
我安装的唯一 PPA 是 Google Chrome 的 PPA。
我该如何解决?
答案1
对于 Skype 和 Steam,软件包来自 Canonical 合作伙伴的 repo,正确的代码行是:
deb http://archive.canonical.com/ubuntu trusty partner
您的列表中缺少ubuntu
URL 末尾的 。
进行此更改后,请重试apt-get update
。您应该使用该 software-properties-gtk
程序从这些预先列出的存储库中进行选择。您可以通过Sources
在 Dash 中输入来运行它。
我不确定samba
。在这种情况下,错误是您持有破损的包裹。我建议apt-get install -f
。