gro*_*lex 6 package-management apt dependencies steam 14.04
今天我尝试使用安装Steamsudo apt-get install steam。
它不起作用并向我显示此错误:
barend@barend-ubu:~$ sudo apt-get install 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-glx:i386
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
然后我尝试sudo apt-get install -f修复损坏的依赖关系。
那也没用。
然后我在谷歌上搜索,我发现这个问题
获得最多支持的答案建议sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-utopic:i386 libgl1-mesa-glx-lts-utopic:i386或sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-vivid:i386 libgl1-mesa-glx-lts-vivid:i386,这两个答案都不适合我,并且失败并出现以下错误:
barend@barend-ubu:~$ sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-utopic:i386 libgl1-mesa-glx-lts-utopic:i386
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:
indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
gnome-control-center but it is not going to be installed or
ubuntu-system-settings but it is not going to be installed
libgl1-mesa-dri-lts-utopic:i386 : Conflicts: libgl1-mesa-dri
libgl1-mesa-glx-lts-utopic:i386 : Depends: libglapi-mesa-lts-utopic:i386 (= 10.3.2-0ubuntu1~trusty2) but it is not going to be installed
Depends: libudev1:i386 but it is not going to be installed
libqt5feedback5 : Depends: libqt5multimedia5 (>= 5.0.2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Run Code Online (Sandbox Code Playgroud)
很高兴知道我尝试使用他们网站上的 deb 安装 Steam,然后由于错误而无法启动,“您缺少以下 32 位库,Steam 可能无法运行:libc.so .6" 然后我卸载了 Steamsudo apt-get remove steam。
我的问题是:如何重新安装 Steam 并修复损坏的软件包?
更新:
我尝试了@Videonauth 的建议,但仍然不起作用。弹出一个终端窗口:
Steam needs to install these additional packages:
libgl1-mesa-dri:i386, libgl1-mesa-glx:i386, libc6:i386
Run Code Online (Sandbox Code Playgroud)
我输入了密码,然后...
[sudo] password for barend:
................................................................................................
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:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.6)
Depends: libudev1:i386 but it is not going to be installed or
libudev0:i386 but it is not installable
unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed
Depends: libcheese7 (>= 3.0.1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Press return to continue:
Run Code Online (Sandbox Code Playgroud)
现在我该怎么做?
apt-cache policy libgl1-mesa-glx libgl1-mesa-glx:i386按照@Videonauth 的要求输出:
libgl1-mesa-glx:
Installed: (none)
Candidate: 10.1.3-0ubuntu0.6
Version table:
10.1.3-0ubuntu0.6 0
500 http://ftp.nluug.nl/os/Linux/distr/ubuntu/ trusty-updates/main amd64 Packages
10.1.0-4ubuntu5 0
500 http://ftp.nluug.nl/os/Linux/distr/ubuntu/ trusty/main amd64 Packages
libgl1-mesa-glx:i386:
Installed: (none)
Candidate: 10.1.3-0ubuntu0.6
Version table:
10.1.3-0ubuntu0.6 0
500 http://ftp.nluug.nl/os/Linux/distr/ubuntu/ trusty-updates/main i386 Packages
10.1.0-4ubuntu5 0
500 http://ftp.nluug.nl/os/Linux/distr/ubuntu/ trusty/main i386 Packages
Run Code Online (Sandbox Code Playgroud)
更新:
感谢你们所有人,@Videonauth、@Mark Kirby 和 @ijustlovemath,他们试图帮助我,我真的很感激,但到目前为止,没有任何效果对我有用。嗯,我猜我没有 Steam
如果您建议我这样做,清理系统的最佳方法是什么?在尝试您的所有解决方案时,我已经安装和删除了很多软件包,但我不确定我是否可以sudo apt-get remove steam或必须做更多的事情。
从他们网站的 .deb 文件再次安装它,然后打开终端 ( ctrl++ alt)t并使用这两个命令:
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1{,.disable}
mv ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6{,.disable}
之后,启动Steam并让它更新。
PS:更新后steam可能无法再次启动,但只需重新运行这两个命令即可。缺少 lib 错误来自 steam 尝试使用自己的库而不是系统的库。
要解决持续存在的问题,请在终端中运行以下命令:
sudo apt-get 更新 sudo apt-get install libgl1-mesa-glx libcheese*
| 归档时间: |
|
| 查看次数: |
14585 次 |
| 最近记录: |