Ubuntu-20.04安装libglu1-mesa-dev libpulse-dev libglib2.0-dev

与世无争的帅哥 提交于 2020-08-16 19:05:26

安装时报错,如下:
sudo apt-get install libglu1-mesa-dev libpulse-dev libglib2.0-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:
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.64.2-1~fakesync1) but 2.64.3-1~ubuntu20.04.1 is to be installed
                  Depends: libglib2.0-bin (= 2.64.2-1~fakesync1)
 libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
                             libgl-dev but it is not going to be installed
 libpulse-dev : Depends: libpulse0 (= 1:13.99.1-1ubuntu3) but 1:13.99.1-1ubuntu3.5 is to be installed
                Depends: libpulse-mainloop-glib0 (= 1:13.99.1-1ubuntu3) but 1:13.99.1-1ubuntu3.5 is to be installed
E: Unable to correct problems, you have held broken packages.

最后从这里找到解决方法:
https://askubuntu.com/questions/124845/eerror-pkgproblemresolverresolve-generated-breaks-this-may-be-caused-by-hel

具体办法如下:
It was caused by a wrong selection of the kind of updates I wanted to download. I fixed it by opening Software & Updates, selecting Updates, and ensuring I had selected All updates for For other packages, subscribe to:. 

I then run the usual apt update && apt dist-upgrade, and then I was able to install that lib.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!