我想在我的项目中使用 SDL2。为此,我需要 lib 并包含 SDL2 文件。我尝试使用
apt-get install libsdl2-dev
但出现错误:
The following packages have unmet dependencies:
libpulse-dev : Depends: libpulse0 (= 1:14.2-1ubuntu1) but 1:14.2-1ubuntu1.1 is to be installed
Depends: libpulse-mainloop-glib0 (= 1:14.2-1ubuntu1) but 1:14.2-1ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.
我该如何修复它?
Ubuntu 描述:Ubuntu 21.04 发布:21.04 代号:hirsute
答案1
因此,我找不到 sdl2 包错误的原因,但是从源代码手动编译帮助我安装它(./configure,sudo make install)。