我无法安装这个包,它给了我一个错误,这是终端的输出:
➜ ~ sudo apt-get install mesa-common-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:
mesa-common-dev : Depends: libdrm-dev (>= 2.4.52) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我试过了,apt-get -f install
但什么都没发生。请帮忙,我需要这个来创建 OpenGL 应用程序
答案1
什么告诉你apt-cache policy libdrm-dev
了?
你必须看看这些帖子:
我猜你有一些冲突的软件包存储库/ppa。或者你必须手动构建它,但前提是你确定你需要公共存储库未提供的软件包版本)
总是看:添加 PPA 后如何解决未满足的依赖关系? 或者尝试安装其他版本的冲突软件包:如何安装特定的 Ubuntu 软件包(包括精确的版本)?