I am using an HP M01-F0xxx desktop with a Realtek RTL8821CE 802.11 AC PCIE adapter running Ubuntu 20.04. When I try to access the WiFi settings I get a message saying "No WiFi adapter found" in the settings menu. I go into the Additional Drivers section of the Software & Updates app and see this (screenshot).
Not sure what to do. I run lspci -v and this comes up for my wireless adapter
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>I've tried disabling secure boot and rebooting my PC but this did nothing. Anyone have any ideas? I ran commands sudo dkms status, sudo dmesg | grep -i rtl and rfkill list all and these are the results:
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: noI've attempted to download the drivers using the instructions on this page but I got a few error messages during the download:
username@username-HP-Desktop-M01-F0xxx:~$ sudo apt-get update
Hit:1 focal InRelease
Get:2 focal-security InRelease [109 kB]
Get:3 focal-updates InRelease [114 kB]
Get:4 focal-backports InRelease [101 kB]
Reading package lists... Done
E: Release file for is not valid yet (invalid for another 2h 15min 31s). Updates for this repository will not be applied.
E: Release file for is not valid yet (invalid for another 2h 45min 19s). Updates for this repository will not be applied.
E: Release file for 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) 8 1 Answer
I notice that the slightly newer version of this driver includes, in the Changelog:
- Fix build against v5.8 kernel (LP: #1884648)
Let's try to install it instead. With a working internet connection:
sudo dkms remove rtl8821ce/5.5.2.1 --all
wget
sudo dpkg -i rtl8821*.debReboot. Is there any improvement?
1