我从 Ubuntu 20.04 开始
我无法安装无线网卡驱动程序(用于 Wifi 和蓝牙)。
sudo lshw -C network
输出:
*-network UNCLAIMED
description: Network controller
product: MEDIATEK Corp.
vendor: MEDIATEK Corp.
physical id: 0
bus info: pci@0000:2d:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm cap_list
configuration: latency=0
resources: iomemory:610-60f iomemory:610-60f iomemory:610-60f memory:612c100000-612c1fffff memory:612c200000-612c203fff memory:612c204000-612c204fff
命令:rfkill list all
输出
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
命令:sudo lspci
...
0000:2d:00.0 Network controller: MEDIATEK Corp. Device 7961
0000:2e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
...
命令sudo lsusb
输出:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 322e:202c Sonix Technology Co., Ltd. USB2.0 HD UVC WebCam
Bus 003 Device 002: ID 0b05:1910 ASUSTek Computer, Inc. TUF GAMING M3
Bus 003 Device 004: ID 13d3:3563 IMC Networks Wireless_Device
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我已经安装了 Ubuntu 21.04 并将内核升级到 5.12。我安装了网络驱动程序,并且 Wi-Fi 可以正常工作(有时可以工作,有时不工作),但蓝牙仍然不工作。
我尝试安装内核版本 5.15本文,但是在我下载完内核并运行命令后sudo dpkg -i *.deb
出现此错误:
Selecting previously unselected package linux-headers-5.15.0-051500rc3.
(Reading database ... 202480 files and directories currently installed.)
Preparing to unpack linux-headers-5.15.0-051500rc3_5.15.0-051500rc3.202109262230_all.deb ...
Unpacking linux-headers-5.15.0-051500rc3 (5.15.0-051500rc3.202109262230) ...
Selecting previously unselected package linux-headers-5.15.0-051500rc3-generic.
Preparing to unpack linux-headers-5.15.0-051500rc3-generic_5.15.0-051500rc3.202109262230_amd64.deb ...
Unpacking linux-headers-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
Selecting previously unselected package linux-image-unsigned-5.15.0-051500rc3-generic.
Preparing to unpack linux-image-unsigned-5.15.0-051500rc3-generic_5.15.0-051500rc3.202109262230_amd64.deb ...
Unpacking linux-image-unsigned-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
Selecting previously unselected package linux-modules-5.15.0-051500rc3-generic.
Preparing to unpack linux-modules-5.15.0-051500rc3-generic_5.15.0-051500rc3.202109262230_amd64.deb ...
Unpacking linux-modules-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
Setting up linux-headers-5.15.0-051500rc3 (5.15.0-051500rc3.202109262230) ...
dpkg: dependency problems prevent configuration of linux-headers-5.15.0-051500rc3-generic:
linux-headers-5.15.0-051500rc3-generic depends on libc6 (>= 2.34); however:
Version of libc6:amd64 on system is 2.33-0ubuntu5.
dpkg: error processing package linux-headers-5.15.0-051500rc3-generic (--install):
dependency problems - leaving unconfigured
Setting up linux-image-unsigned-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-5.11.0-37-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-5.11.0-37-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-5.15.0-051500rc3-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.15.0-051500rc3-generic
Setting up linux-modules-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
Processing triggers for linux-image-unsigned-5.15.0-051500rc3-generic (5.15.0-051500rc3.202109262230) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.15.0-051500rc3-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-051500rc3-generic
Found initrd image: /boot/initrd.img-5.15.0-051500rc3-generic
Found linux image: /boot/vmlinuz-5.11.0-37-generic
Found initrd image: /boot/initrd.img-5.11.0-37-generic
Found linux image: /boot/vmlinuz-5.11.0-16-generic
Found initrd image: /boot/initrd.img-5.11.0-16-generic
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings
done
Errors were encountered while processing:
linux-headers-5.15.0-051500rc3-generic
我怎样才能使这张无线网卡正常工作?
答案1
似乎无法让内核 5.15 工作,所以我必须更改为 5.14
通过禁用安全启动并更改为内核 5.14.9 来解决
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline
打开主线,然后选择5.14.9
。单击安装。然后重新启动并启动到启动管理器并禁用安全启动。