试图安装蒸汽

我一直在努力安装蒸汽,我遇到了各种各样的问题,但我想对这个具体问题提供一些帮助:

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 

在此处输入图像描述

结论

更多细节见下一节

  • 考虑apt-cache package_name等命令的输出很重要。
  • 当你需要以任何方式强制安装包时, sudo dpkg -i --force-all deb_file是一个很好的帮助
  • 重新安装包有时可以解决实际上没有依赖性问题的依赖性问题。

细节

我无法确定问题的确切原因是什么。 以下输出似乎是主要问题。 您可以看到libcgmanager0:i386的安装候选版本是0.24-0ubuntu7.5 。 但是libcgmanager0libcgmanager0: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-2ubunt‌​u2~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. 

打开终端( Ctrl + Alt + T )并运行:

 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 

您可以尝试从软件中心安装蒸汽,它可以工作或从http://store.steampowered.com下载它,它可能会正常工作