Score:-1

Dependency errors while installing SDL2

pt flag

I want use SDL2 in my project. For that I need lib and include SDL2 files. I was trying to install SDL2 with

apt-get install libsdl2-dev

but get an errors:

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.

How I can fix it?

Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute

Liso avatar
sd flag
What Ubuntu version?
mejay48 avatar
pt flag
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute
mejay48 avatar
pt flag
In my question, I wrote that I want to install which command I do it and gave an error log. Please tell me what exactly is not clear to you.
Liso avatar
sd flag
@mejay48 Try this `sudo sed -i.bak 's/\(^deb.*-updates.*\)/#\1/' /etc/apt/sources.list && sudo apt install libsdl2-dev`.
Liso avatar
sd flag
It seems updates channel prompt you to install `1:14.2-1ubuntu1.1` version, hence why i try disabling it. I could be wrong though, you can try `apt-get -s install libsdl2-dev` to simulate the process before actually running them.
mejay48 avatar
pt flag
Thanks for trying, but it does not help me. with your command line I got exacly same errors.
hr flag
Minor version errors like this *usually* occur because the package catalog needs to be updated (`sudo apt update`)
mejay48 avatar
pt flag
unfortunately no, apt update does not fix issue
N0rbert avatar
zw flag
Does this answer your question? [How do I restore the default repositories?](https://askubuntu.com/questions/124017/how-do-i-restore-the-default-repositories)
karel avatar
sa flag
Does this answer your question? [Unable to correct problems, you have held broken packages](https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages)
Score:1
pt flag

So, I can't find a reason of errors of sdl2 package, but manual compilation from source helps me install it (./configure, sudo make install).

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.