我正在使用 Ubuntu 18.04。运行时sudo apt install libx11-dev
我得到以下输出:
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:
libx11-dev : Depends: libx11-6 (= 2:1.6.4-3ubuntu0.1) but 2:1.6.4-3ubuntu0.2 is to be installed
Depends: libxcb1-dev but it is not going to be installed
Recommends: libx11-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该如何解决这个问题?
提前致谢。
答案1
尝试使用aptitude
:
sudo aptitude install <package-name>
aptitude
如果您的机器上尚未安装sudo apt-get install aptitude
。