Realtek RTL8821CE 802.11 AC PCIE 适配器问题

Realtek RTL8821CE 802.11 AC PCIE 适配器问题

我正在使用 HP M01-F0xxx 台式机,该台式机配有 Realtek RTL8821CE 802.11 AC PCIE 适配器,运行 Ubuntu 20.04。当我尝试访问 WiFi 设置时,设置菜单中出现一条消息,提示“未找到 WiFi 适配器”。我进入附加驱动程序部分软件与更新应用程序并查看此内容(截屏)。

不知道该怎么做。我运行 lspci -v,我的无线适配器出现了以下问题

09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
    Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter:
    Flags: fast devsel, IRQ 255
    I/O ports at e000 [disabled] [size=256]
    Memory at fcc00000 (64-bit, non-prefetchable) [disabled] [size=64K]
    Capabilities: <access denied>

我尝试禁用安全启动并重新启动 PC,但没有任何效果。有人知道吗?我运行了命令sudo dkms statussudo dmesg | grep -i rtl结果rfkill list all如下:

username@username-HP-Desktop-M01-F0xxx:~$ sudo dkms status
[sudo] password for username: 
rtl8821ce, 5.5.2.1: added
username@username-HP-Desktop-M01-F0xxx:~$ sudo dmesg | grep -i rtl
[    1.678357] r8169 0000:0a:00.0 eth0: RTL8168h/8111h, 00:68:eb:9a:54:d1, XID 541, IRQ 47
[    5.211204] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[    5.214487] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    5.214490] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[    5.216227] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[    5.216474] Bluetooth: hci0: RTL: cfg_sz 10, total sz 31990
[    6.307374] Bluetooth: hci0: RTL: fw version 0x829a7644
username@username-HP-Desktop-M01-F0xxx:~$ rfkill list all
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

我尝试使用页面但是在下载过程中我收到了一些错误消息:

username@username-HP-Desktop-M01-F0xxx:~$ sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease                                                  
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]                                  
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]                                                                                                                                      
Reading package lists... Done                                                                                                                                                                                     
E: Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 2h 15min 31s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 2h 45min 19s). Updates for this repository will not be applied.
E: Release file for http://us.archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 2h 16min 17s). Updates for this repository will not be applied.
username@username-HP-Desktop-M01-F0xxx:~$ sudo apt-get install rtl8821ce-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
rtl8821ce-dkms is already the newest version (5.5.2.1-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up rtl8821ce-dkms (5.5.2.1-0ubuntu3) ...
Removing old rtl8821ce-5.5.2.1 DKMS files...

------------------------------
Deleting module version: 5.5.2.1
completely from the DKMS tree.
------------------------------
Done.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.8.0-43-generic
Building initial module for 5.8.0-43-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8821ce-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-43-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dpkg: error processing package rtl8821ce-dkms (--configure):
 installed rtl8821ce-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

我注意到此驱动程序的稍新版本在变更日志中包含以下内容:

  • 修复针对 v5.8 内核的构建(LP:#1884648)

让我们尝试安装它。使用有效的互联网连接:

sudo dkms remove rtl8821ce/5.5.2.1 --all
wget http://mirrors.kernel.org/ubuntu/pool/universe/r/rtl8821ce/rtl8821ce-dkms_5.5.2.1-0ubuntu4_all.deb 
sudo dpkg -i rtl8821*.deb

重启。有什么改善吗?

相关内容