Score:0

Cant install wifi driver for Realtek wireless adapter

us flag

I should preface I'm almost completely new to Linux, especially installment-wise so please bear with me. I got a new HP computer and installed Linux Ubuntu 20.04 from a bootable USB that I created from the instructions on the Ubuntu website. I went on to install it with another offical tutorial. Before that the laptop only had FreeDOS installed.

Ubuntu installation didnt show up on the Boot menu, I needed to hold F10 to get into BIOS and now whenever I start it, it needs to be booted up from GNU grab menu. However, the wifi doesnt work, because the driver isnt installed.

Using lspci the network controller is shown to be Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter. I searched up this tutorial to help me install the driver. I downloaded it on another computer, used an USB to transfer it to the new computer, unzipped it, and executed the first few commands as shown.

When I tried to use the make command however, I got an error stating that the command isnt found but can be installed with sudo apt install make. Trying to run this command gives another error, stating Package make is not available, but it is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'make' has no installation candidate.

I dug up old posts, and some old users suggested using the sudo apt-get install build-essential and similar commands to reinstall make. That also gave an error that package build-essential couldnt be found (I also tried using TAB instead of enter which was supposed to work on Ubuntu 20.04).

Some suggested using sudo apt-get update before build-essential, but that also thew several errors. Err:1 http://security.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'it.archive.ubuntu.com' and 3 quite similar looking ones. It appears I've run into a circular problem, I need to install the Wi-fi driver, but I need internet connection to do that.

Im running out of ideas, so any and all help is much appreaciated.

Knud Larsen avatar
by flag
linux-firmware https://packages.ubuntu.com/focal-updates/all/linux-firmware/filelist provides rtlwifi/rtl8821*
yomag1234 avatar
us flag
@KnudLarsen I tried sudo apt install (-ing) them, but it says unsupported file [filename] given on commandline. Was I supposed to do something different?
chili555 avatar
cn flag
If you are able to either borrow a temporary ethernet connection from a neighbor or friend, or else use tethering to your phone, it is a two minute process. If not, it is a three day (if we're lucky!) process. Which process may I use for an answer? Welcome to Ask Ubuntu.
yomag1234 avatar
us flag
@chili555 thanks, i went ahead and did that, but the the files are still unsupported. i also tried sudo apt-get install -y linux-firmware and rebooting but that didnt seem to work either. oh yeah i did the usb tethering thingy
chili555 avatar
cn flag
"but the the files are still unsupported" Meaning what, exactly?
Score:1
cn flag

With a temporary internet connection by tethering, open a terminal and do:

sudo apt update
sudo apt install rtl8821ce-dkms

Reboot. Your wireless should now be working. You may need to disable Secure Boot in the BIOS/EFI.

yomag1234 avatar
us flag
wow, after hours of struggling this worked instantly. Thank you so much!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.