![“apt upgrade --with-new-pkgs” 后没有音频(Ubuntu 20.04 LTS)](https://linux22.com/image/1179312/%E2%80%9Capt%20upgrade%20--with-new-pkgs%E2%80%9D%20%E5%90%8E%E6%B2%A1%E6%9C%89%E9%9F%B3%E9%A2%91%EF%BC%88Ubuntu%2020.04%20LTS%EF%BC%89.png)
昨天使用命令升级后
sudo apt-get -y --with-new-pkgs upgrade
我的输出设备中有虚拟输出,现在我听不到声音,无论是通过扬声器还是音频插孔。
我有新内核 5.8.0-34
印西一SA输出为:
System: Host: matteo-swift Kernel: 5.8.0-34-generic x86_64 bits: 64 Desktop: Gnome 3.36.4
Distro: Ubuntu 20.04.1 LTS (Focal Fossa)
Audio: Device-1: Intel Sunrise Point-LP HD Audio driver: N/A
Sound Server: ALSA v: k5.8.0-34-generic
似乎缺少音频驱动程序(司机:N/A)但我在网上找不到
脉冲音频-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 13.99.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-fQvFZE/pulseaudio-13.99.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 -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 5.8.0-34-generic #37~20.04.2-Ubuntu SMP Thu Dec 17 14:53:00 UTC 2020
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: Running from build tree: 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 e792d386e07a415da8d95fabe1e536a4.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/matteo/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.99.1/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
alsamixer输出为(与参数-c 1,2,3....相同):
cannot open mixer: No such file or directory
我已经尝试过这些帖子的解决方案:
答案1
这不是修复,而是一种解决方法:如果您仍有以前的内核映像(在我的情况下是 5.4.0-59),则可以从 Grub 菜单中选择它来启动。另外,它还解决了蓝牙问题。
碰巧,我没跑apt autoremove
......
D.
答案2
不是一个解决方案。
今天在 Kubuntu 中更新内核后,我遇到了同样的问题。回滚旧内核是让一切恢复正常的唯一解决方案,但我放弃了 Kubuntu。在其他发行版中,如果安装内核 5.9,则此问题仅存在于 Nvidia CUDA 中,而在 Kubuntu 中升级到较旧的内核 5.4.0.60 或 5.8 时,会有些奇怪。