更新并重启后无线适配器无人认领

更新并重启后无线适配器无人认领

我每天都运行 Ubuntu 20.04 和这个脚本:

sudo apt update && sudo apt full-upgrade -y && sudo apt -f install && sudo apt autoremove -y && sudo apt autoclean && sudo snap refresh

每天结束后,我都会关闭桌面。也许这不是最智能的脚本,但这是两年来它造成的第一个问题……(我认为这个问题是由于更新造成的。)

Wi-Fi今天早上,当我启动时,我在设置中搜索:

未找到 Wi-Fi 适配器

我一直在使用无线适配器我的主板,我猜想更新会破坏驱动程序。目前,我正在使用次优的电力线以太网。

使用或时,没有显示任何内容sudo rfkill list all,并且不显示无线设备。(这也适用于蓝牙,它也位于主板上并在 BIOS 中启用。)ip aifconfig

这里有一些部分输出,显示我的无线适配器未被认领。

$ sudo lshw -C network

  *-network UNCLAIMED
       description: Network controller
       product: Dual Band Wireless-AC 3168NGW [Stone Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 10
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:ab300000-ab301fff

这是我/var/log/apt/history.log昨天的日志:

Start-Date: 2021-06-23  10:11:24
Commandline: /usr/bin/unattended-upgrade
Upgrade: gcc-10-base:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), gcc-10-base:i386 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libitm1:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libquadmath0:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libtsan0:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libubsan1:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), liblsan0:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libgomp1:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libgcc-s1:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libgcc-s1:i386 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libatomic1:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libatomic1:i386 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libcc1-0:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libstdc++6:amd64 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04), libstdc++6:i386 (10.2.0-5ubuntu1~20.04, 10.3.0-1ubuntu1~20.04)
End-Date: 2021-06-23  10:11:25

Start-Date: 2021-06-23  10:27:38
Commandline: apt full-upgrade -y
Requested-By: micah (1000)
Install: linux-modules-extra-5.8.0-59-generic:amd64 (5.8.0-59.66~20.04.1, automatic), linux-headers-5.8.0-59-generic:amd64 (5.8.0-59.66~20.04.1, automatic), linux-objects-nvidia-460-5.11.0-22-generic:amd64 (5.11.0-22.23~20.04.1+1, automatic), linux-modules-5.8.0-59-generic:amd64 (5.8.0-59.66~20.04.1, automatic), linux-modules-5.11.0-22-generic:amd64 (5.11.0-22.23~20.04.1, automatic), linux-modules-nvidia-460-5.11.0-22-generic:amd64 (5.11.0-22.23~20.04.1+1, automatic), linux-hwe-5.8-headers-5.8.0-59:amd64 (5.8.0-59.66~20.04.1, automatic), linux-signatures-nvidia-5.11.0-22-generic:amd64 (5.11.0-22.23~20.04.1+1, automatic), linux-image-5.11.0-22-generic:amd64 (5.11.0-22.23~20.04.1, automatic), linux-image-5.8.0-59-generic:amd64 (5.8.0-59.66~20.04.1, automatic)
Upgrade: linux-headers-generic-hwe-20.04:amd64 (5.8.0.55.62~20.04.39, 5.8.0.59.66~20.04.42), linux-libc-dev:amd64 (5.4.0-74.83, 5.4.0-77.86), linux-modules-nvidia-460-generic-hwe-20.04-edge:amd64 (5.8.0-55.62~20.04.1, 5.11.0-22.23~20.04.1+1), initramfs-tools-bin:amd64 (0.136ubuntu6.5, 0.136ubuntu6.6), linux-image-generic-hwe-20.04:amd64 (5.8.0.55.62~20.04.39, 5.8.0.59.66~20.04.42), linux-generic-hwe-20.04:amd64 (5.8.0.55.62~20.04.39, 5.8.0.59.66~20.04.42), gnome-shell-common:amd64 (3.36.9-0ubuntu0.20.04.1, 3.36.9-0ubuntu0.20.04.2), gnome-shell:amd64 (3.36.9-0ubuntu0.20.04.1, 3.36.9-0ubuntu0.20.04.2), initramfs-tools-core:amd64 (0.136ubuntu6.5, 0.136ubuntu6.6), initramfs-tools:amd64 (0.136ubuntu6.5, 0.136ubuntu6.6)
End-Date: 2021-06-23  10:28:42

Start-Date: 2021-06-23  10:28:43
Commandline: apt autoremove -y
Requested-By: micah (1000)
Remove: linux-modules-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1), linux-signatures-nvidia-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1), linux-objects-nvidia-460-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1), linux-hwe-5.8-headers-5.8.0-53:amd64 (5.8.0-53.60~20.04.1), linux-image-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1), linux-modules-extra-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1), linux-headers-5.8.0-53-generic:amd64 (5.8.0-53.60~20.04.1)
End-Date: 2021-06-23  10:28:48

我的直觉是我需要重新安装特定版本的 Linux 头文件或类似的东西,但老实说,我不太确定。有人知道什么可以让我无线设备恢复使用吗?

答案1

在我们的聊天中,我们了解到,提供驱动程序 iwlwifi 等的软件包 linux-modules-extra-5.11.0-22-generic 在您的升级中没有安装。我建议您在启动到内核版本 5.8 时安装它,其中无线工作:

sudo apt update
sudo apt install linux-modules-extra-5.11.0-22-generic

重新启动到内核版本 5.11 后,您的无线网络就可以正常工作了。

我还建议:

sudo apt install --reinstall linux-generic

...因为它的依赖项及其依赖项包括额外的 linux-modules。

答案2

相关内容