我无法安装 sdl,因为它有未满足的依赖项

我无法安装 sdl,因为它有未满足的依赖项

我的意见是:

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev

输出为:

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.

libsdl-image1.2-dev : Depends: libjpeg-dev
Depends: libtiff4-dev but it is not going to be installed

libsdl1.2-dev : Depends: libglu1-mesa-dev but it is not going to be installed

Depends: libpulse-dev but it is not going to be installed
Depends: libxt-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该如何解决?

答案1

尝试一下这个:

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libpulse-dev libxt-dev

如果这不起作用,您可以使用 aptitude:

sudo apt-get install aptitude
sudo aptitude install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libpulse-dev libxt-dev

答案2

要修复未满足的依赖关系,请使用sudo apt-get -f install

答案3

您可能必须在软件和更新程序中启用“源代码”存储库。

相关内容