我想在我的專案中使用 SDL2。為此,我需要 lib 並包含 SDL2 檔案。我試圖安裝 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)。