For some reason, the rtl8821ce WiFi hardware works poorly or not at all on most Linux distros. The driver used in the Linux kernel for this hardware is outdated or for other reasons that I don't know about, it doesn't work properly. The solution to this problem is a driver developed by a friend from Portugal and placed on GitHub.
In this guide, we want to build and install this driver on our Ubuntu (I suppose this guide will work in other Debian/Ubuntu-based distros like Linux Mint).
Warning: Before proceeding, take a snapshot of your system for safety.
Open a Terminal and follow along:
Update your APT:
sudo apt update
Install the necessary tools:
sudo apt install bc module-assistant build-essential dkms git
rtl8821ce-dkmsif it is present:
sudo apt remove rtl8821ce-dkms
Clone the driver and get in the directory of the cloned driver:
&& cd rtl8821ce
Prepare/Build the driver:
sudo m-a prepare
If the output has
Couldn't create the /usr/src/linux symlink!, try again
Install the driver:
Open a new terminal and run:
sudo nano /etc/modprobe.d/blacklist.conf
blacklist rtw88_8821ceto the end and save the file
Restart the system and... Done!