1


I'am trying to install libpulse-dev with apt get install. Somehow I am getting the following error code:

The following packages have unmet dependencies:
 libpulse-dev : Depends: libglib2.0-dev but it is not going to be installed

Unable to correct problems, you have held broken packages

I don't know how to fix this error. Apt and dpkg do not list any brocken package.
My sources.list file:

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
  • Have you recently done an "sudo apt-get update"? What version or Raspbian are you on? Perform cat /etc/*release and uname -a My Pi already has libglib2.0-dev installed so I couldn't recreate this. You could try to individually install the dependency using sudo apt-get install libglib2.0-dev – HeatfanJohn Dec 6 '19 at 22:50
  • 1
    @HeatfanJohn the OP is using buster as you can see from his sources.list. – Ingo Dec 8 '19 at 15:30
  • You can search libglib2.0-dev package online on debian website and [download the package] (packages.debian.org/buster/armhf/libglib2.0-dev/download) manually for armhf architecture and then use dpkg -i libglib2.0-dev.deb , but maybe this lib need another libs , check the webpage before. – Ephemeral Dec 8 '19 at 18:50
  • Run sudo apt-get update and post any error messages you encounter. The package libglib2.0-dev should be available in Raspbian. – Dmitry Grigoryev Dec 9 '19 at 13:04
2

I already had installed libglib2.0-dev package, but the installed version was too new for libpulse-dev. The solution was to install libpulse-dev using aptitude. Aptitude did automatically downgrade libglib2.0-dev to the required version.

  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again months for months. – Ingo Dec 11 '19 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.