![Ubuntu 18.04 | pulseaudio 守护进程启动失败](https://linux22.com/image/1163347/Ubuntu%2018.04%20%7C%20pulseaudio%20%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B%E5%90%AF%E5%8A%A8%E5%A4%B1%E8%B4%A5.png)
在终端中使用后重新启动 pulseaudiopulseaudio -k
然后pulseaudio --start
我收到以下输出。
E: [pulseaudio] main.c: Daemon startup failed.
当输入时pulseaudio -vvv
我收到以下输出。
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us. D: [pulseaudio] core-util.c: RealtimeKit worked. I: [pulseaudio] core-util.c: Successfully gained nice level -11. I: [pulseaudio] main.c: This is PulseAudio 11.1 D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu D: [pulseaudio] main.c: Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/pulseaudio-EOwPuF/pulseaudio-11.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto D: [pulseaudio] main.c: Running on host: Linux x86_64 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 D: [pulseaudio] main.c: Found 8 CPUs. I: [pulseaudio] main.c: Page size is 4096 bytes D: [pulseaudio] main.c: Compiled with Valgrind support: no D: [pulseaudio] main.c: Running in valgrind mode: no D: [pulseaudio] main.c: Running in VM: no D: [pulseaudio] main.c: Optimized build: yes D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled. I: [pulseaudio] main.c: Machine ID is f8def17f479a479fb03bc39dc2d9b6fb. I: [pulseaudio] main.c: Session ID is 1. I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse. I: [pulseaudio] main.c: Using state directory /home/samuel/.config/pulse. I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-11.1/modules. I: [pulseaudio] main.c: Running in system mode: no I: [pulseaudio] main.c: System supports high resolution timers D: [pulseaudio] memblock.c: Using shared memfd memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472 I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions. I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers. I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions. I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers. I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions. I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions. E: [pulseaudio] main.c: Unknown command: You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.# General Public License for more details. E: [pulseaudio] main.c: Failed to initialise daemon. I: [pulseaudio] main.c: Daemon terminated.
有没有什么办法可以让我重新启动 pulseaudio?
答案1
我也遇到了同样的问题。太烦人了。
在我的计算机上,这似乎是由于 pulseaudio 已在运行,但可能仅响应systemctl
命令。我暂时采取的方法是让声音响起:
$ ps aux | grep pulseaudio
- 终止所有 pulseaudio 进程
$ rm -rf /.config/pulse/
(强制 pulseaudio 重新生成配置文件)$ pulseaudio --start
一切如预期。
如前所述,这不是真正的解决方案,但在进一步排除故障之前它应该能发出声音。
答案2
我在 22.04 中遇到了音频问题,错误
[pulseaudio] main.c: Daemon startup failed.
在阅读了很多毫无帮助的建议后,我按照以下步骤操作。
- 我将其重命名
~/.config/pulse
为/.config/pulse.old
然后重新启动 Pulseaudio
pulseaudio -v -D
。
最后,我的音频通过笔记本电脑内置扬声器播放出来。还需要在 HDMI 端口上解决这个问题。