Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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
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"
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/>.
***/
/*
- * 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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.