LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2020, 05:25 AM   #1
AlexRyassky
LQ Newbie
 
Registered: Aug 2019
Location: Crimea
Distribution: Ubuntu 18.04
Posts: 15

Rep: Reputation: Disabled
Can't reinstall pulseaudio


Hello everyone.

Recently I faced some problems with sound in my Ubuntu 18.04.3 LTS and decided to reinstall pulseaudio.
I successfully removed it, but when I attempted to install it again, something went wrong (I translated from Russian):
Quote:
$ sudo apt install pulseaudio
...
pulseaudio : Depends: libpulse0 (= 1:11.1-1ubuntu7.4) but 1:11.1-1ubuntu7.5 is to be installed
Depends: pulseaudio-utils but it won't be installed
E: Impossible to fix errors: you have broken packages
I checked the policy:
Quote:
$ apt-cache policy libpulse0
libpulse0:
Installed: 1:11.1-1ubuntu7.5
Candidate: 1:11.1-1ubuntu7.5
Version table:
*** 1:11.1-1ubuntu7.5 100
100 /var/lib/dpkg/status
1:11.1-1ubuntu7.4 500
500 http://ru.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
1:11.1-1ubuntu7 500
500 http://ru.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
I tried to install required version of libpulse0
Quote:
$ sudo apt install libpulse0=1:11.1-1ubuntu7.4
...

Supposed packages:
pulseaudio
Next packages will be DELETED:
accountwizard akregator ark baloo-kf5 bluedevil breeze dolphin drkonqi ffmpegthumbs frameworkintegration gdm3
gnome-control-center gnome-initial-setup gnome-settings-daemon gnome-shell gstreamer-qapt gwenview k3b kaccounts-integration
kaccounts-providers kactivitymanagerd kaddressbook kamera kate kcalc kde-cli-tools kde-config-gtk-style
kde-config-mailtransport kde-config-screenlocker kde-config-sddm kde-runtime kde-spectacle kde-style-oxygen-qt5 kdeconnect
kdegraphics-thumbnailers kdelibs5-plugins kdenetwork-filesharing kdepim-addons kdepim-themeeditors kdialog kdiff3 khelpcenter
khotkeys kinfocenter kinit kio kio-audiocd kio-extras kio-gdrive kio-ldap kio-sieve kleopatra kmenuedit kolourpaint konsole
konsole-kpart konversation kpackagelauncherqml krdc kross kruler kscreen ksshaskpass ksysguard ksystemlog ktexteditor-katepart
ktnef ktorrent kubuntu-notification-helper kwalletmanager kwin kwin-addons kwin-common kwin-x11 kwrited libcolorcorrect5
libk3b7 libk3b7-extracodecs libkf5akonadicalendar5abi2 libkf5akonadicontact5abi1 libkf5akonadimime5 libkf5akonadisearch-bin
libkf5akonadisearch-plugins libkf5alarmcalendar5abi1 libkf5baloowidgets-bin libkf5baloowidgets-data libkf5baloowidgets5
libkf5calendarsupport5abi1 libkf5calendarutils-bin libkf5calendarutils5abi1 libkf5cddb5 libkf5compactdisc5 libkf5contacteditor5
libkf5declarative5 libkf5eventviews5 libkf5grantleetheme5 libkf5gravatar5 libkf5identitymanagement5abi1 libkf5imap5
libkf5incidenceeditor-bin libkf5incidenceeditor5abi2 libkf5kaddressbookgrantlee5 libkf5kaddressbookimportexport5
libkf5kcmutils5 libkf5kdelibs4support5 libkf5kdelibs4support5-bin libkf5kdepimdbusinterfaces5 libkf5khtml-bin libkf5khtml5
libkf5kmanagesieve5 libkf5kontactinterface5 libkf5krossui5 libkf5ksieveui5 libkf5libkdepim-plugins libkf5libkdepim5abi2
libkf5libkdepimakonadi5 libkf5libkleo5abi1 libkf5mailcommon-plugins libkf5mailcommon5abi4 libkf5mailimporter5abi1
libkf5mailimporterakonadi5 libkf5mailtransport5abi2 libkf5mailtransportakonadi5 libkf5messagecomposer5abi2
libkf5messagecore5abi2 libkf5messagelist5abi1 libkf5messageviewer-plugins libkf5messageviewer5abi4 libkf5newstuff5
libkf5newstuffcore5 libkf5notifications5 libkf5notifyconfig5 libkf5parts-plugins libkf5parts5 libkf5pimcommon-plugins
libkf5pimcommon5abi3 libkf5pimcommonakonadi5 libkf5pimtextedit5abi2 libkf5plasma5 libkf5plasmaquick5 libkf5purpose-bin
libkf5purpose5 libkf5quickaddons5 libkf5runner5 libkf5sane5 libkf5syndication5 libkf5templateparser5abi2 libkf5texteditor5
libkf5tnef5 libkf5wallet-bin libkf5wallet5 libkf5webengineviewer5abi3 libkf5webkit5 libkf5xmlrpcclient5 libkhtml5
libknotifyconfig4 libkonq-common libkpimgapicalendar5 libkpimgapicontacts5 libkpimgapicore5 libkpimgapidrive5 libkpimgapitasks5
libkpimimportwizard5 libkpimkdav5 libkpimsmtp5 libkscreenlocker5 libktorrent-l10n libktorrent6 libkwalletbackend5-5
libkwin4-effect-builtins1 libokular5core8 libphonon4 libphonon4qt5-4 libplasma3 libpowerdevilcore2 libpulse-mainloop-glib0
libpulsedsp libreoffice-kde libreoffice-kde4 libtaskmanager6 libweather-ion7 mbox-importer milou muon mutter okular
okular-extra-backends partitionmanager pavucontrol phonon phonon-backend-gstreamer phonon4qt5 phonon4qt5-backend-gstreamer
pim-data-exporter pim-sieve-editor plasma-dataengines-addons plasma-desktop plasma-discover plasma-framework plasma-integration
plasma-nm plasma-runners-addons plasma-scriptengine-javascript plasma-vault plasma-wallpapers-addons plasma-widgets-addons
plasma-workspace powerdevil print-manager qapt-batch qapt-deb-installer qml-module-org-kde-draganddrop qml-module-org-kde-kcm
qml-module-org-kde-kconfig qml-module-org-kde-kcoreaddons qml-module-org-kde-kio qml-module-org-kde-kirigami2
qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-org-kde-kwindowsystem
qml-module-org-kde-newstuff qml-module-org-kde-purpose qml-module-org-kde-runnermodel sddm-theme-breeze
signon-kwallet-extension skanlite software-properties-kde systemsettings ubuntu-session user-manager xdg-desktop-portal-kde
Next packages will be replaced with OLD version:
libpulse0
Do you want to continue? [Y/n] n
Of course, I don't want to kill my KDE, and I refused from this downgrading.

What is the right way to install pulseaudio in this situation?
 
Old 01-27-2020, 06:15 PM   #2
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
i ran into something similar:
Quote:
The following packages have unmet dependencies:
pulseaudio-module-bluetooth : Depends: libpulse0 (= 1:11.1-1ubuntu7.4) but 1:11.1-1ubuntu7.5 is to be installed
Depends: pulseaudio (= 1:11.1-1ubuntu7.4)
E: Unable to correct problems, you have held broken packages.
seems to be a known bug. at least the status is "Fix Committed" (whenever the next release may be). for now it seems like the advice is "manually install packages". similar issue here.
 
Old 01-30-2020, 01:18 AM   #3
AlexRyassky
LQ Newbie
 
Registered: Aug 2019
Location: Crimea
Distribution: Ubuntu 18.04
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cordx View Post
i ran into something similar:
Thank you, cordx.
I have installed pulseaudio manually.
Also, during installation from sources, I met compilation problem with memfd_create.
It was solved with this patch.
Although I didn't tested yet, I hope it will work.

I will report here results
 
1 members found this post helpful.
Old 02-01-2020, 03:48 AM   #4
AlexRyassky
LQ Newbie
 
Registered: Aug 2019
Location: Crimea
Distribution: Ubuntu 18.04
Posts: 15

Original Poster
Rep: Reputation: Disabled
Problem was solved.
cordx, thank you again. Everything is working now!
 
1 members found this post helpful.
Old 02-04-2020, 02:26 AM   #5
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
i am glad to hear you got everything sorted
 
Old 02-15-2020, 05:04 PM   #6
pgeddes
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Thank you, a manual reinstall fixed my sound problem too - linuxmint 19.3
 
1 members found this post helpful.
Old 03-28-2020, 05:15 AM   #7
dizmizz
LQ Newbie
 
Registered: Mar 2020
Posts: 6

Rep: Reputation: Disabled
Hi! I have the same problem of installing pulseaudio after removing it.
How did you do to manually install pulseaudio?
Was it done by downloading all the built files mentioned here?: https://launchpad.net/ubuntu/+source...build/17893827
 
Old 03-28-2020, 07:32 AM   #8
AlexRyassky
LQ Newbie
 
Registered: Aug 2019
Location: Crimea
Distribution: Ubuntu 18.04
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dizmizz View Post
Hi! I have the same problem of installing pulseaudio after removing it.
How did you do to manually install pulseaudio?
I downloaded the whole package, following link that you mentioned.. I tried to compile it, but I got an error about redefined function memfd_create (it was defined in recent glibc). If you haven't this error, you can skip the next step, everything should compile and it's all.
Otherwise, if you got an error. apply this patch to files configure.ac and src/pulsecore/memfd-wrappers.h, using command "patch filename_with_that_code.diff"

Quote:
---
configure.ac | 3 +++
src/pulsecore/memfd-wrappers.h | 7 ++++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 013918f1a..1095ae8cb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -607,6 +607,9 @@ AS_IF([test "x$enable_memfd" = "xyes" && test "x$HAVE_MEMFD" = "x0"],
[AC_MSG_ERROR([*** Your Linux kernel does not support memfd shared memory.
*** Use linux v3.17 or higher for such a feature.])])

+AS_IF([test "x$HAVE_MEMFD" = "x1"],
+ AC_CHECK_FUNCS([memfd_create]))
+
AC_SUBST(HAVE_MEMFD)
AM_CONDITIONAL([HAVE_MEMFD], [test "x$HAVE_MEMFD" = x1])
AS_IF([test "x$HAVE_MEMFD" = "x1"], AC_DEFINE([HAVE_MEMFD], 1, [Have memfd shared memory.]))
diff --git a/src/pulsecore/memfd-wrappers.h b/src/pulsecore/memfd-wrappers.h
index 3bed9b2b1..c7aadfd3c 100644
--- a/src/pulsecore/memfd-wrappers.h
+++ b/src/pulsecore/memfd-wrappers.h
@@ -20,13 +20,14 @@
License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
***/

-#ifdef HAVE_MEMFD
+#if defined(HAVE_MEMFD) && !defined(HAVE_MEMFD_CREATE)

#include <sys/syscall.h>
#include <fcntl.h>

/*
- * No glibc wrappers exist for memfd_create(2), so provide our own.
+ * Before glibc version 2.27 there was no wrapper for memfd_create(2),
+ * so we have to provide our own.
*
* Also define memfd fcntl sealing macros. While they are already
* defined in the kernel header file <linux/fcntl.h>, that file as
@@ -63,6 +64,6 @@ static inline int memfd_create(const char *name, unsigned int flags) {
#define F_SEAL_WRITE 0x0008 /* prevent writes */
#endif

-#endif /* HAVE_MEMFD */
+#endif /* HAVE_MEMFD && !HAVE_MEMFD_CREATE */

#endif

Then compile the sources again.

Last edited by AlexRyassky; 03-28-2020 at 07:35 AM.
 
Old 03-28-2020, 09:35 AM   #9
dizmizz
LQ Newbie
 
Registered: Mar 2020
Posts: 6

Rep: Reputation: Disabled
Thank you AlexRyassky!

I got it to work now.
I downloaded the source by typing:
Quote:
sudo apt-get source pulseaudio
Before downloading I had to enable so that source packages can be downloaded I had to uncomment the #deb-src lines in the /etc/apt/sources.list. (I made sure to comment the lines back after the source package was downloaded)

Then I went inside the downloaded directory pulseaudio-11.1 and typed:
Quote:
sudo ./configure
sudo make
sudo make install
No errors occurred and now I can play music through the speakers. Sadly my original problem of using the headphones is still there.
 
1 members found this post helpful.
Old 03-28-2020, 09:53 AM   #10
AlexRyassky
LQ Newbie
 
Registered: Aug 2019
Location: Crimea
Distribution: Ubuntu 18.04
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dizmizz View Post
No errors occurred and now I can play music through the speakers.
Glad to hear it.
Quote:
Sadly my original problem of using the headphones is still there.
Check alsamixer whether the appropriate audio output track bar is enabled.
 
  


Reply

Tags
pulseaudio, ubuntu 18.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-28-2016 11:18 PM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 01:00 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration