gpt4 book ai didi

linux - 无法安装 freeglut3-dev 软件包 linuxmint?

转载 作者:太空宇宙 更新时间:2023-11-04 05:55:52 24 4
gpt4 key购买 nike

我尝试安装 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.

The information of my system

Linux version 3.14.0-031400rc4-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201402232235 SMP Mon Feb 24 03:36:35 UTC 2014

最佳答案

在此处添加答案以记录我如何解决此问题,因为接受的答案对我没有帮助。

当我尝试安装 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,没有任何问题。

希望这对某人有帮助。

关于linux - 无法安装 freeglut3-dev 软件包 linuxmint?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28898299/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com