Pulseaudio 无法在启动时启动

Pulseaudio 无法在启动时启动

当我启动时,PA 没有启动。系统日志显示以下内容:

$ grep 'pulseaudio' /var/log/syslog

Mar 26 08:08:30 MX systemd[1171]: /usr/lib/systemd/user/pulseaudio.service:16: Failed to add dependency on pulseaudio, ignoring: Invalid argument
Mar 26 08:08:30 MX systemd[1331]: /usr/lib/systemd/user/pulseaudio.service:16: Failed to add dependency on pulseaudio, ignoring: Invalid argument
Mar 26 08:08:31 MX systemd[1331]: pulseaudio.socket: Failed to queue service startup job (Maybe the service file is missing or not a non-template unit?): Unit -d.socket not found.
Mar 26 08:08:31 MX systemd[1331]: pulseaudio.socket: Failed with result 'resources'.
Mar 26 08:08:41 MX systemd[1788]: /usr/lib/systemd/user/pulseaudio.service:16: Failed to add dependency on pulseaudio, ignoring: Invalid argument
Mar 26 08:08:42 MX systemd[1788]: pulseaudio.socket: Failed to queue service startup job (Maybe the service file is missing or not a non-template unit?): Unit -d.socket not found.
Mar 26 08:08:42 MX systemd[1788]: pulseaudio.socket: Failed with result 'resources'.
Mar 26 08:08:43 MX pulseaudio.desktop[2060]: Connection failure: Connection refused
Mar 26 08:08:43 MX pulseaudio.desktop[2060]: pa_context_connect() failed: Connection refused
Mar 26 08:08:43 MX gnome-session[1820]: gnome-session-binary[1820]: WARNING: App 'pulseaudio.desktop' exited with code 1
Mar 26 08:08:43 MX gnome-session-binary[1820]: WARNING: App 'pulseaudio.desktop' exited with code 1

当我登录时,服务没有运行,并且“设置”中的“声音”下没有任何内容。

但是,我登录后手动启动 PA 没问题:

$ pulseaudio --start

并且系统日志中没有记录其他错误。


看起来可能有一些“无效的论点”某处。如何找到?或者有没有简单的方法将 PA 重置为默认值?

由于它是系统默认音频,我有点犹豫是否要卸载它(然后重新安装),以防丢失某些东西,或者情况变得更糟。以前也遇到过这种情况。

相关内容