ubuntun无法安装 libsdl2-dev

2023-05-16

sudo apt-get install libsdl2-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:
 libsdl2-dev : Depends: libasound2-dev but it is not going to be installed
               Depends: libegl1-mesa-dev but it is not going to be installed
               Depends: libgl1-mesa-dev but it is not going to be installed
               Depends: libgles2-mesa-dev but it is not going to be installed
               Depends: libglu1-mesa-dev but it is not going to be installed
               Depends: libpulse-dev but it is not going to be installed
               Depends: libsdl2-2.0-0 (= 2.0.8+dfsg1-1ubuntu1) but 2.0.8+dfsg1-1ubuntu1.18.04.1 is to be installed
               Depends: libudev-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

解决方法

使用 aptitude 安装

sudo aptitude install myNewPackage

[参考](https://askubuntu.com/questions/363200/e-unable-to-correct-problems-you-have-held-broken-packages/451078#451078

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ubuntun无法安装 libsdl2-dev 的相关文章

随机推荐