尝试安装蒸汽

IG0*_*ikz 7 steam

我一整天都在尝试安装 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
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

A.B*_*.B. 5

结论

更多详情见下一节

  • 考虑像apt-cache package_name.
  • sudo dpkg -i --force-all deb_file 当您需要以任何方式强制安装软件包时,这是一个很大的帮助
  • 重新安装一个包有时可以解决依赖问题,但实际上没有依赖问题。

细节

我无法确定问题的确切原因是什么。以下输出似乎是主要问题。您可以看到安装候选libcgmanager0:i386是 version 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
Run Code Online (Sandbox Code Playgroud)

为此,我们下载了软件包并手动强制安装。

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
Run Code Online (Sandbox Code Playgroud)

接下来的步骤是否仍然必要,我不能确切地说。我只是简单地列出它们......

apt-get download libc6:i386
sudo dpkg -i --force-all libc6*i386.deb
Run Code Online (Sandbox Code Playgroud)

现在我们有了

(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) ...
Run Code Online (Sandbox Code Playgroud)

解决了

sudo apt-get install --reinstall libgcc1
Run Code Online (Sandbox Code Playgroud)

经过测试

sudo apt-get install -f
Run Code Online (Sandbox Code Playgroud)

我们得到了这个

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Run Code Online (Sandbox Code Playgroud)

看起来很棒,终于

% 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.
Run Code Online (Sandbox Code Playgroud)


hg8*_*hg8 0

打开终端 ( 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
Run Code Online (Sandbox Code Playgroud)