我是 Linux 新手。我昨天在我的 MacBook Pro 11.3 上安装了 ubuntu 14.04 64 位。我不知道我做错了什么,但每次我尝试打开 steam 时总是会出现这个 libc.so.6 错误。我尝试了 Linux 论坛和 askUbuntu 上的许多解决方案,但似乎没有一个对我有用。
感谢您的时间。
当我点击 steam 图标时,会出现这个弹出终端:
Steam needs to install these additional packages:
libgl1-mesa-dri:i386, libgl1-mesa-glx:i386
我通过输入我的 sudo 密码来运行这些命令并得到以下结果:
...............................................................................................W: Failed to fetch cdrom://Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)/dists/trusty/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)/dists/trusty/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)/dists/trusty/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cups : Depends: libc-bin (>= 2.13)
libc6-dbg : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.6 is to be installed
libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.6 is to be installed
libgl1-mesa-dri:i386 : Depends: libdrm-intel1:i386 (>= 2.4.48) but it is not going to be installed
Depends: libdrm-nouveau2:i386 (>= 2.4.38) but it is not going to be installed
Depends: libdrm-radeon1:i386 (>= 2.4.31) but it is not going to be installed
Depends: libdrm2:i386 (>= 2.4.38) but it is not going to be installed
Depends: libelf1:i386 (>= 0.142) but it is not going to be installed
Depends: libexpat1:i386 (>= 2.0.1) but it is not going to be installed
Depends: libllvm3.4:i386 but it is not going to be installed
Depends: libstdc++6:i386 (>= 4.6) but it is not going to be installed
Recommends: libtxc-dxtn-s2tc0:i386 but it is not going to be installed or
libtxc-dxtn0:i386
libgl1-mesa-dri-lts-utopic : Conflicts: libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 : Depends: libdrm2:i386 (>= 2.3.1) but it is not going to be installed
Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.4)
Depends: libx11-6:i386 (>= 2:1.4.99.1) but it is not going to be installed
Depends: libx11-xcb1:i386 but it is not going to be installed
Depends: libxcb-dri2-0:i386 (>= 1.8) but it is not going to be installed
Depends: libxcb-dri3-0:i386 but it is not going to be installed
Depends: libxcb-glx0:i386 (>= 1.8) but it is not going to be installed
Depends: libxcb-present0:i386 but it is not going to be installed
Depends: libxcb-sync1:i386 but it is not going to be installed
Depends: libxcb1:i386 (>= 1.9.2) but it is not going to be installed
Depends: libxdamage1:i386 (>= 1:1.1) but it is not going to be installed
Depends: libxext6:i386 but it is not going to be installed
Depends: libxfixes3:i386 but it is not going to be installed
Depends: libxshmfence1:i386 but it is not going to be installed
Depends: libxxf86vm1:i386 but it is not going to be installed
Depends: libudev1:i386 but it is not going to be installed or
libudev0:i386 but it is not installable
Conflicts: libgl1
libgl1-mesa-glx-lts-utopic : Conflicts: libgl1:i386
Conflicts: libgl1-mesa-glx:i386
xserver-xorg-lts-utopic : Conflicts: libgl1-mesa-dri:i386 (>= 0~)
Conflicts: libgl1-mesa-glx:i386 (>= 0~)
N: Ignoring file 'ia32-libs-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Press return to continue:
按下回车键后,我得到了“您缺少以下 32 位库,并且 steam 可能无法运行:libc.so.6”错误,我之前说过
以下是有关我的情况命令的更多信息
:
jhon@jhon:~$ sudo apt-get install package-name
[sudo] password for jhon:
Reading package lists... Done
Building dependency tree
Reading state information... Done
N: Ignoring file 'ia32-libs-raring.list.disable' in directory '/etc/apt /sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ia32-libs-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package package-name
这可能会帮助你帮助我:
jhon@jhon:~$ cat /etc/apt/sources.list.d/*
deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse
# deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/motorbike/ubuntu trusty main #Added by software-center; credentials stored in /etc/apt/auth.conf
# deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/motorbike/ubuntu trusty main #Added by software-center; credentials stored in /etc/apt/auth.conf
deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
我尝试过这个:
jhon@jhon:~$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cups : Depends: libc-bin (>= 2.13)
libc6-dbg : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.6 is to be installed
libc6-dev : Depends: libc6 (= 2.19-0ubuntu6.5) but 2.19-0ubuntu6.6 is to be installed
N: Ignoring file 'ia32-libs-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'ia32-libs-raring.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'steam.list.disable' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).