How to install Realtek rtl8821ce wireless network adapter drivers in Ubuntu machine

Linux Ubuntu lovers!

More often, when you install Linux OS in your machine, your already installed wireless network adapter may not work.

It means that you will not be able to connect to your internet if you do not have a physical cable or maybe your laptop does not have Ethernet port.

It happened to me when I installed Ubuntu 20.04.1 LTS in my Hp Pavilion 690 Core i5 9400F desktop, which has an inbuilt wireless network adapter.

So I followed the following steps to solve the problem.

Step 1: Check if your machine has the adapter installed!

If you are using  the latest laptop, you may not worry, but if it is a desktop, then run the following command to check if there is indeed a wireless adapter, product description and the vendor:

lshw -C network

See the output:

You can see that the machine has both a wireless interface and an Ethernet interface. It also shows the product description and the product vendor.

Step 2: Download from

Use this link  to download the repository from GitHub.

Now you are asking yourself how you will download the repository when your machine cannot connect to the internet. Well, you have some options;

  • If you have another machine, which has access to the internet, you could use it, then transfer the files to the Ubuntu machine.
  • You could create a hotspot using your smartphone and tether using a USB cable or Bluetooth. You cannot tether on WI-FI because your Ubuntu machine’s adapter is not working!
  • If you have Ethernet cable, you could use it.

Step 3: Extract the repository file and rename it to rtl8821ce

Extract the repo file from step 2, put it somewhere in your machine, say Downloads folder, and then rename the resultant folder to rtl8821ce.

Navigate into the rtl8821ce folder (change directory) and run the following commands:

sudo apt install bc module-assistant build-essential dkms

If you see this,

It is understandable – you just installed your OS, and you may need to update apt, so run the following command:

sudo apt update

Updating apt will need internet. You can use one of the options we described in step 2.

If sudo apt install bc module-assistant build-essential dkms runs okay, you will see this:

Next, run the following command,

sudo m-a prepare

Then this one:

sudo ./

If you see this;-

It means the file does not have the required permissions. Run the following command to change the file permissions, then run sudo ./ again

sudo chmod a+w

Wait for sudo ./ to run to completion and restart your machine.

Now try to search for your available wireless networks, and you will be able to connect.

I hope you were successful.

You May Also Like