无法启动 pulseaudio

无法启动 pulseaudio

我在 Firefox 等应用程序中没有声音。但我有系统声音(例如更改音量时的爆音)。

我最近从 17.04 升级到了 18.04(大错误!)

Pulseaudio 似乎坏了:

$ pulseaudio -D 
E: [pulseaudio] main.c: Daemon startup failed.

我努力了:

  • 重启
  • 重新安装 Pulseaudio
  • 重新安装 alsa

以下几行看起来很重要:

$ pulseaudio -v
...
: [pulseaudio] (alsa-lib)utils.c: could not open configuration file /usr/share/alsa/ucm/HDA NVidia/HDA NVidia.conf
I: [pulseaudio] (alsa-lib)parser.c: error: could not parse configuration for card HDA NVidia
I: [pulseaudio] (alsa-lib)main.c: error: failed to import HDA NVidia use case configuration -2
I: [pulseaudio] alsa-ucm.c: UCM not available for card HDA NVidia
...

有任何想法吗?

答案1

老实说,您引用的错误是 pulseaudio 随意做的。它会尝试它看到的所有设备,最终启用一个可以正常工作的设备。在您的情况下,可能没有一个设备能正常工作,但我很确定不是因为您引用的日志。

为了比较,我的 pulseaudio 执行以下操作:

I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0c' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device hw:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0c' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device front:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D1c' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device iec958:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device hw:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device front:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device surround21:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-2)
I: [pulseaudio] alsa-util.c: Error opening PCM device surround40:0: No such file or directory
I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-2)

答案2

我通过创建实时 USB 并重新安装解决了这个问题。通过执行修复安装,我能够保留所有数据。重新创建用户帐户的步骤如下:如何恢复/添加以前的用户帐户

相关内容