今天我安装了 Ubuntu 14.04.4 LTS 64 位,想安装 libgl1-mesa-dev:i386 包,执行命令:
sudo apt-get install libgl1-mesa-dev: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:
libgl1-mesa-dev:i386 : Depends: libgl1-mesa-glx:i386 (= 10.1.3-0ubuntu0.6) or
libgl1-mesa-glx-lts-utopic:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-vivid:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-wily:i386 but it is not going to be installed or
libgl1-mesa-glx-lts-xenial:i386 but it is not installable
E: Unable to correct problems, you have held broken packages.
更新
我执行命令:
dpkg -l | grep xserver-xorg-core
我得到:
ii xserver-xorg-core-lts-wily 2:1.17.2-1ubuntu9.1~trusty1 amd64 Xorg X server - core server
第二次更新
sudo apt-get install libgl1-mesa-dev-lts-wily: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:
libgl1-mesa-dev-lts-wily:i386 : Depends: libgl1-mesa-glx-lts-wily:i386 (= 11.0.2-1ubuntu4~trusty1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
更新 3
sudo apt-get install libgl1-mesa-glx-lts-wily:i386 libglapi-mesa-lts-wily:i386 libgl1-mesa-dev-lts-wily: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:
libgl1-mesa-glx-lts-wily:i386 : Depends: libudev1:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
您有wily
图形堆栈。正确的命令应该是
sudo apt-get install libgl1-mesa-glx-lts-wily:i386 libglapi-mesa-lts-wily:i386 libgl1-mesa-dev-lts-wily:i386 libudev1:i386