Fix “unmet dependency” issue for pulseaudio in KXStudio (and others)

18 Aug

[note: this tip will apply to other “unmet dependency” situations, but definitely not all of them]

If you are a user of the KXStudio repos, and use an environment rid of pulseaudio, you probably were disappointed to see that Firefox recently stopped supporting the ALSA backend. The issue came back recently for me, as Firefox 55 does not seem to have been compiled with the --enable-alsa.

If you are having the “unmet dependency” issue when trying to install pulseaudio-module-jack with apt-get, it might be an issue with conflicting package versions from different sources.

The following packages have unmet dependencies.
pulseaudio-module-jack : Depends: pulseaudio but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If you use aptitude instead, you will get some more info:

The following packages have unmet dependencies:
pulseaudio : Depends: libpulse0 (= 1:4.0-0ubuntu11.1) but 1:4.0-0ubuntu11.1+kxstudio1 is installed.

The culprit seems to be libpulse0 here. In other cases, you might have to follow the thread of unmet dependencies down until you get to the bottom of it (as in the case of Wine in another similar situation I had).

You can see that the conflicting versions of the package are basically the same, so using one over the other should not cause issues. The problem here is that the KXStudio version has an extra long name to identify its source. You can now identify the different versions of the package that are available:

apt-cache policy libpulse0

… and force the installation of a specific version:

sudo apt-get install libpulse0=1:4.0-0ubuntu11.1

After that, you should be able to install pulseaudio-module-jack without running into any issue.

Remember to start PulseAudio in Cadence so sound comes out of Firefox (no need to restart anything).


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: