paprefs installation on Ubuntu 20.04

Asked by PedroGonzalez on 2020-06-20

I am doing Android development on Ubuntu 20.04. Emulator has no sound. Suggested solution is through paprefs, so I need to install it. When doing 'sudo apt install paprefs' I get the following error:

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

'apt-cache policy paprefs' returns:

paprefs:
  Installed: (none)
  Candidate: 1.1-1build1
  Version table:
     1.1-1build1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2020-06-23
Last query:
2020-06-23
Last reply:
2020-06-21

What is the output of:

apt-cache policy paprefs pulseaudio-module-gsettings pulseaudio-module-zeroconf; lsb_release -a; uname -a

Thanks

PedroGonzalez (pdro74) said : #2

pedro@msi:~$ apt-cache policy paprefs pulseaudio-module-gsettings pulseaudio-module-zeroconf
paprefs:
  Installed: (none)
  Candidate: 1.1-1build1
  Version table:
     1.1-1build1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
pulseaudio-module-gsettings:
  Installed: (none)
  Candidate: 1:13.99.1-1ubuntu3.2
  Version table:
     1:13.99.1-1ubuntu3.2 500
        500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
pulseaudio-module-zeroconf:
  Installed: (none)
  Candidate: 1:13.99.1-1ubuntu3.2
  Version table:
     1:13.99.1-1ubuntu3.2 500
        500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages

pedro@msi:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

pedro@msi:~$ uname -a
Linux msi 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

also:
pedro@msi:~$ sudo apt install pulseaudio-module-gsettings
[sudo] password for pedro:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pulseaudio-module-gsettings : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.2) but 1:13.99.1-1ubuntu3.3 is to be installed
                               Depends: pulseaudio (= 1:13.99.1-1ubuntu3.2)
E: Unable to correct problems, you have held broken packages.

Manfred Hampl (m-hampl) said : #3

What is the output of

apt-cache policy pulseaudio-module-gsettings libpulse0
grep focal /etc/apt/sources.list

(libpulse0 is in main, pulseaudio-module-gsettings is in universe; you seem to have different settings for these repository buckets)

PedroGonzalez (pdro74) said : #4

pedro@msi:~$ apt-cache policy pulseaudio-module-gsettings libpulse0
pulseaudio-module-gsettings:
  Installed: (none)
  Candidate: 1:13.99.1-1ubuntu3.2
  Version table:
     1:13.99.1-1ubuntu3.2 500
        500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
libpulse0:
  Installed: 1:13.99.1-1ubuntu3.3
  Candidate: 1:13.99.1-1ubuntu3.3
  Version table:
 *** 1:13.99.1-1ubuntu3.3 100
        100 /var/lib/dpkg/status
     1:13.99.1-1ubuntu3.2 500
        500 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

pedro@msi:~$ grep focal /etc/apt/sources.list
# deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
deb http://archive.ubuntu.com/ubuntu focal main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://archive.ubuntu.com/ubuntu focal universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal universe
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal-updates universe
deb http://archive.ubuntu.com/ubuntu focal multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://archive.ubuntu.com/ubuntu focal-security restricted main
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://archive.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://archive.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main

Best Manfred Hampl (m-hampl) said : #5

The version of libpulse0 that you have installed comes from focal-updates, but this repository is not activated in you system (any more)

I see two options.
1. (re-)activate focal-updates (at least for main and universe, for consistency reasons preferably also for multiverse and restricted))
or
2. downgrade libpuls0 to version 1:13.99.1-1ubuntu3.2

PedroGonzalez (pdro74) said : #6

Thanks Manfred Hampl, that solved my question.