我整天都在尝试安装 steam,并且遇到了各种各样的问题,但是我希望针对这个特定问题获得一点帮助:
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-glx:i386
E: Unable to correct problems, you have held broken packages
答案1
结论
更多详细信息请参阅下一节
- 考虑诸如此类的命令的输出是很重要的
apt-cache package_name
。 sudo dpkg -i --force-all deb_file
当你需要强制安装某个软件包时,它会帮到你- 重新安装软件包有时可以解决实际上不是依赖关系问题的依赖关系问题。
细节
我无法确定问题的确切原因是什么。以下输出似乎是主要问题。您可以看到 的安装候选libcgmanager0:i386
版本是0.24-0ubuntu7.5
。但libcgmanager0
和libcgmanager0:i386
必须是完全相同的版本。
% apt-cache policy libcgmanager0:i386 libcgmanager0
The following packages have unmet dependencies:
libudev1 : Depends: libcgmanager0 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
libcgmanager0:i386:
Installed: (none)
Candidate: 0.24-0ubuntu7.5
Version table:
0.39-2ubuntu2~ubuntu14.04.1 0
100 http://gr.archive.ubuntu.com/ubuntu/ trusty-backports/main i386 Packages
0.24-0ubuntu7.5 0
500 http://gr.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
0.24-0ubuntu7.1 0
500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
0.24-0ubuntu5 0
500 http://gr.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
libcgmanager0:
Installed: 0.39-2ubuntu2~ubuntu14.04.1
Candidate: 0.39-2ubuntu2~ubuntu14.04.1
Version table:
*** 0.39-2ubuntu2~ubuntu14.04.1 0
100 http://gr.archive.ubuntu.com/ubuntu/ trusty-backports/main amd64 Packages
100 /var/lib/dpkg/status
0.24-0ubuntu7.5 0
500 http://gr.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
0.24-0ubuntu7.1 0
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
0.24-0ubuntu5 0
500 http://gr.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
为此,我们下载了该包并手动强制安装。
wget http://mirrors.kernel.org/ubuntu/pool/main/c/cgmanager/libcgmanager0_0.39-2ubuntu2~ubuntu14.04.1_i386.deb
sudo dpkg -i libcgmanager0_0.39-2ubuntu2~ubuntu14.04.1_i386.deb
我无法确切地说出是否仍需要采取下一步措施。我只是将它们列出来……
apt-get download libc6:i386
sudo dpkg -i --force-all libc6*i386.deb
现在我们有了
(Reading database ... 196730 files and directories currently installed.)
Preparing to unpack libc6_2.19-0ubuntu6.6_i386.deb ...
Unpacking libc6:i386 (2.19-0ubuntu6.6) over (2.19-0ubuntu6.6) ...
dpkg: libc6:i386: dependency problems, but configuring anyway as you requested:
libc6:i386 depends on libgcc1.
Setting up libc6:i386 (2.19-0ubuntu6.6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
ig0killahr79@ig0killahr79-Inspiron-3537:~$ apt-get download libc6:i386; sudo dpkg -i --force-all libc6*i386.deb
(Reading database ... 196730 files and directories currently installed.)
Preparing to unpack libc6_2.19-0ubuntu6.6_i386.deb ...
Unpacking libc6:i386 (2.19-0ubuntu6.6) over (2.19-0ubuntu6.6) ...
dpkg: libc6:i386: dependency problems, but configuring anyway as you requested:
libc6:i386 depends on libgcc1.
Setting up libc6:i386 (2.19-0ubuntu6.6) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
解决
sudo apt-get install --reinstall libgcc1
经过测试
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 4 not upgraded.
看起来很棒,终于
% sudo apt-get install steam:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
steam:i386 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
答案2
打开终端(++ Ctrl)并运行:AltT
sudo apt-get update && sudo apt-get install -f
sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-vivid:i386 libgl1-mesa-glx-lts-vivid:i386
sudo apt-get install steam
答案3
您可以尝试从软件中心安装 steam,它可以工作,或者从以下位置下载http://store.steampowered.com,这样可能会很好