启动 Ubuntu 时没有声音

启动 Ubuntu 时没有声音

我正在使用 Ubuntu 20.04,遇到了一个问题。无论使用哪种输出设备,只要启动 Ubuntu,声音就不起作用。这种情况发生在所有应用程序和网站中,所以我很确定声音驱动程序出了问题。为了有音频,我必须拔下设备并重新插入。这种情况在更新后开始发生,这也弄乱了我的图形(我现在已经修复了)。

编辑:我尝试卸载 alsa 和 pulseaudio,然后重新安装 alsa。现在我的问题已经解决,但又出现了另一个问题:我无法重新安装 pulseaudio,这意味着我无法访问声音设置,而且我的声卡似乎无法被识别。

安装 pulseaudio 时我收到的错误消息是:

sudo apt install pulseaudio
 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pulseaudio : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.8) but 1:13.99.1-1ubuntu3.12 is to be installed
              Depends: pulseaudio-utils but it is not going to be installed
              Recommends: rtkit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

答案1

好的,看来我的问题已经解决了。我订阅了仅限安全的软件包更新。更改此设置后,我只需升级软件包,pulseaudio 就会自动重新下载。对于我的第一个问题,我运行了以下命令:

rm -r ~/.config/pulse; pulseaudio -k

之后我重新启动并且所有端口的音频都能够完美识别。

(我在这篇文章中找到了上述命令:未检测到声音设备

相关内容