安装时报错,如下:
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.
具体办法如下:
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.
来源:oschina
链接:https://my.oschina.net/yqhj/blog/4497917