我正在使用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.我该怎么解决这个问题?
提前谢谢。
发布于 2020-09-17 05:45:18
尝试使用aptitude:
sudo aptitude install <package-name>
如果您没有在您的机器上安装aptitude,sudo apt-get install aptitude。
https://askubuntu.com/questions/1275725
复制相似问题