[SOLVED] No Wifi On Fresh Install [20.2]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
yassir56032
Level 1
Level 1
Posts: 12
Joined: Sat Oct 23, 2021 10:12 am

[SOLVED] No Wifi On Fresh Install [20.2]

Post by yassir56032 »

Just installed linux mint on my laptop and I can't seem to get wifi to work. I got dual boot and win10 seems to have wifi working. Wifi has never worked on linux so far (even on my usb install) . I even did a reinstall of the OS and no luck.
here's what I got from running

Code: Select all

$ wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
$cat wireless-info.txt | nc termbin.com 9999
https://termbin.com/5jgj
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kc1di
Level 18
Level 18
Posts: 8178
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: No Wifi On Fresh Install [20.2]

Post by kc1di »

You have a realtek wifi card and it will need firmware and drivers to work.
See here for instructions on getting that done - You will need a Ethernet connection to download the correct files.
https://easylinuxtipsproject.blogspot.c ... altek.html
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: No Wifi On Fresh Install [20.2]

Post by JeremyB »

Code: Select all

sudo apt install git dkms
git clone https://github.com/lwfinger/rtl8723du.git
sudo dkms add ./rtl8723du
sudo dkms install rtl8723du/0.1
Reboot
yassir56032
Level 1
Level 1
Posts: 12
Joined: Sat Oct 23, 2021 10:12 am

Re: No Wifi On Fresh Install [20.2]

Post by yassir56032 »

Code: Select all

sudo apt install git dkms
git clone https://github.com/lwfinger/rtl8723du.git
sudo dkms add ./rtl8723du
sudo dkms install rtl8723du/0.1
Reboot
the line

Code: Select all

sudo dkms install rtl8723du/0.1
keeps returning an error:

Code: Select all

Kernel preparation unnecessary for this kernel.  Skipping...
Building module:
cleaning build area....(bad exit status: 2)
make -j2 KERNELRELEASE=5.4.0-89-generic -C /lib/modules/5.4.0-89-generic/build M=/var/lib/dkms/rtl8723du/0.1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.4.0-89-generic (x86_64)
Consult /var/lib/dkms/rtl8723du/0.1/build/make.log for more information.
here's the contents of make.log:

Code: Select all

DKMS make.log for rtl8723du-0.1 for kernel 5.4.0-89-generic (x86_64)
Sun 24 Oct 2021 04:01:42 PM +04
make: Entering directory '/usr/src/linux-headers-5.4.0-89-generic'
/var/lib/dkms/rtl8723du/0.1/build/Makefile:63: /usr/src/linux-headers-5.4.0-89-generic/hal/phydm/phydm.mk: No such file or directory
make[1]: *** No rule to make target '/usr/src/linux-headers-5.4.0-89-generic/hal/phydm/phydm.mk'.  Stop.
make: *** [Makefile:1762: /var/lib/dkms/rtl8723du/0.1/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-89-generic'
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: No Wifi On Fresh Install [20.2]

Post by JeremyB »

Must be something wrong with the dkms file, for now do

Code: Select all

cd rtl8723du
make
sudo make install
Reboot
yassir56032
Level 1
Level 1
Posts: 12
Joined: Sat Oct 23, 2021 10:12 am

Re: No Wifi On Fresh Install [20.2]

Post by yassir56032 »

You have a realtek wifi card and it will need firmware and drivers to work.
See here for instructions on getting that done - You will need a Ethernet connection to download the correct files.
[url]https://easylinuxtipsproject.blogspot.c ... altek.html[/url]
I've installed the correct drivers for my wifi card just now, which has the chipset RTL8723DU (unless there is a difference between RTL8723DU and RTL8723DU Wireless?). After going through the installation via synaptic, specifically it's rtl8723du-dkms version (5.2.15.2~focal2).

I of course still don't get wifi though, trying to reload the module:

Code: Select all

sudo modprobe -r rtl8723du
modprobe: FATAL: Module rtl8723du not found.

sudo modprobe -r rtl8723du-dkms
modprobe: FATAL: Module rtl8723du-dkms not found.
synaptic shows the module though, it's clearly here, but it doesn't actually work. I've also tried to reinstall it. Going to try to reboot but I doubt that'll do it.
yassir56032
Level 1
Level 1
Posts: 12
Joined: Sat Oct 23, 2021 10:12 am

Re: No Wifi On Fresh Install [20.2]

Post by yassir56032 »

Must be something wrong with the dkms file, for now do

Code: Select all

cd rtl8723du
make
sudo make install
Reboot
That did it, thanks a lot! Now I just need to fix the found on this thing and I'm all set :)
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: [SOLVED] No Wifi On Fresh Install [20.2]

Post by JeremyB »

After a kernel update you will need to

Code: Select all

cd rtl8723du
make clean
make
sudo make install
Locked

Return to “Beginner Questions”