我尝试安装freeglut包以使用#opengl 我安装了freeglut3包 但是在尝试安装freeglut3-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:
freeglut3-dev : Depends: libgl1-mesa-dev or
libgl-dev
Depends: libglu1-mesa-dev but it is not going to be installed or
libglu-dev
Depends: libxt-dev but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我系统的信息
Linux版本3.14.0-031400rc4-generic(apw @ gomeisa)(gcc版本4.6.3(Ubuntu / Linaro 4.6.3-1ubuntu5))#201402232235 SMP Mon Feb 24 03:36:35 UTC 2014
答案 0 :(得分:0)
在这里添加答案以记录我如何解决这个问题,因为接受的答案对我没有帮助。
当我尝试安装freeglut3-dev时,synaptic表示它不需要升级或移除任何东西,但它想要卸载几百个软件包,包括像pulseaudio或者libxml2这样的东西,这些东西不可能依赖于glut3-dev。在命令行上我得到了这个:
> sudo apt-get install freeglut3-dev
The following packages have unmet dependencies:
freeglut3-dev : Depends: libgl1-mesa-dev or
libgl-dev
Depends: libglu1-mesa-dev but it is not going to be installed or
libglu-dev
E: Unable to correct problems, you have held broken packages.
dpkg报告没有"持有"包。我试图手动安装libgl1和libglu1,但那些也拒绝安装。最后在synaptic中我检查了gl1和glu1的依赖选项卡,发现两者都依赖于已经安装的mesa-common-dev。在云雀上我重新安装了mesa-common-dev,并以某种方式神奇地修复了所有依赖项。我能够安装libgl1-dev,libglu1-dev和glut3-dev而没有任何打嗝。
希望这有助于某人。
答案 1 :(得分:-1)
答案 2 :(得分:-2)
我通过禁用某些个人包存档('PPA')解决了我的问题。
它可能包含一些破损的包裹!
我禁用了以下PPA:
deb-src http://ppa.launchpad.net/thopiekar/pygame/ubuntu raring main
deb http://ppa.launchpad.net/thopiekar/pygame/ubuntu raring main