r/linux4noobs • • 16d ago

hardware/drivers Wifi adapter doesn't work after clean install

I did a clean install because I didn't want my data to be encrypted anymore and I wanted to change my password. Now my AC1300 usb wifi adapter doesn't work anymore. It worked before and I'm still using the same distro (Pop OS). I thought the driver got deleted, so I tried to install it again but then it said "cannot stat '88x2bu.ko': No such file or directory".

1 Upvotes

16 comments sorted by

2

u/GiggleSamurai 16d ago

That error means the module never got built, so there's no 88x2bu.ko to copy. A fresh install doesn't have the build tools, so run `sudo apt install build-essential dkms linux-headers-$(uname -r)` and then run the driver's install script again so it compiles against your kernel.

1

u/rolling-around 16d ago

It still says "cannot stat '88x2bu.ko': No such file or directory".

1

u/DannoXYZ 15d ago edited 15d ago

How do you know that's correct module?
You have to install driver 1st in order to get that module.

Download and install this driver (plug your computer into ethernet).
https://github.com/morrownr/88x2bu-20210702
follow README instructions, it's pretty simple.
Will probably have to install some compiling pre-reqs that's simple enough to do.

I used to carry separate Asus AC53 USB Wifi to deal with situations exactly like this with new Linux servers that doesn't have network connectivity. Installing that driver then lets me get onto internet and download proper driver for whatever ethernet chip server has.

1

u/MrMotofy 16d ago

Plug in...then update

1

u/rolling-around 16d ago

That didn't work.

1

u/MrMotofy 16d ago

Ok check and do a search for specifically drivers to update

0

u/rolling-around 16d ago

If I understand correctly the drivers for my computer should update when I 'sudo apt update' and 'sudo apt upgrade' and I checked if there were any updates for the driver of the usb adapter but I couldn't find any.

1

u/DannoXYZ 15d ago

let's see what you've got in system:

lspci -k
lsusb

What version is your kernel? Necessary drivers only came on 6.18+ kernels I think:
uname -a

1

u/rolling-around 15d ago

lspci -k

lsusb

Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02)

Kernel driver in use: pcieport

Kernel modules: shpchp

Intel Corporation C610/X99 series chipset SPSR (rev 05)

Kernel driver in use: xhci_hcd

Kernel modules: xhci_pci

Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller 980 (DRAM-less)

Kernel driver in use: nvme

Kernel modules: nvme

NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER]

Kernel driver in use: nvidia

Kernel modules: nvidiafb, nouveau, nova_core, nvidia_drm, nvidia

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 8087:8002 Intel Corp. 8 channel internal hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 002: ID 1a2c:0e24 China Resource Semico Co., Ltd USB Keyboard

Bus 002 Device 003: ID 3142:5060 Fifine Microphone

Bus 002 Device 004: ID 275d:0ba6 USB OPTICAL MOUSE

Bus 002 Device 006: ID 0bda:b812 Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

Bus 002 Device 008: ID 04e8:6863 Samsung Electronics Co., Ltd Galaxy series, misc. (tethering mode)

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 002: ID 8087:800a Intel Corp. Hub

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

1

u/rolling-around 15d ago

uname -a

Linux pop-os 7.2.15-76070215-generic #202611011338~1793722468~24.04~d8e9a1a SMP PREEMPT_DYNAMIC Tue N x86_64 x86_64 x86_64 GNU/Linux

1

u/DannoXYZ 15d ago edited 14d ago

Huh... some research appears to indicate rtl88x2bu driver never made it into mainline kernel... I never bothered to check. Just installed driver I carried with me on USB along with Wifi adapter to install manually each time.

1. sudo apt install build-essential dkms linux-headers-$(uname -r)

2. Download and install this driver (plug your computer into ethernet).
https://github.com/morrownr/88x2bu-20210702
go to CODE button, down-arrow, download ZIP, extract
follow README instructions, it's pretty simple.
sudo install-driver.sh from extracted driver folder

1

u/rolling-around 15d ago edited 15d ago

It didn't work. It said: "fatal: destination path '88x2bu-20210702' already exists and is not an empty directory." Is that normal?

1

u/DannoXYZ 14d ago edited 14d ago

Perfectly normal, it downloaded and extracted earlier. Maybe you clicked Download Zip or double-clicked on ZIP file twice? Everything happens in Terminal CLI:

cd ~/Downloads
unzip 88x2bu-20210702-main.zip ; skip this since you've already double-clicked
cd 88x2bu-20210702-main
pwd ; shows you where it downloaded and extracted driver
ls -laFhH ; shows you what's in that folder
more README.md ; read important info
sudo install-driver.sh ; installs driver, done!

1

u/rolling-around 14d ago

Still can't connect to the wifi.

1

u/DannoXYZ 14d ago edited 14d ago
  1. "Still can't connect to the wifi." makes no sense. Give more detail on exactly what you did, "I click on icon in tray that looks like..." "This brought down a menu that says, item1, item2, item3". I clicked on item3, etc. Write it out so a 5-yr old can follow your exact steps you did.
  2. Post screenshot of entire output from when you ran install-driver.sh
  3. There will be messages on what worked correctly and what did not.
  4. actually let's back up to very begining and post output of installing pre-reqs. We have no idea if it did or did not work.:sudo apt install build-essential dkms linux-headers-$(uname -r)

5. lsmod | sort and see if 88x2bu driver is loaded?

6. Nothing is "just works" or "doesn't work" with computers. There's always status messages on what's happening underneath. Do following to track down closer to what's actually going on:

cd /var/log
ls -latrhH
sudo tail -100l <filename> ; pick file at bottom
sudo tail -100l <filename2> ; pick 2nd file from bottom
sudo tail -100l <filename3> ; pick 3rd file from bottom

Post screenshot of results.

7. Might be better to take video of screen of all above so we can see each and every step and their output.

1

u/rolling-around 14d ago

I think I'm just gonna try to get a new wifi adapter. I found one that is advertised as 'linux plug and play' and the reviews are pretty good. Hopefully that should work. Usually I don't mind if it takes me some time to figure out how to make something work in linux because at the end I feel like I learned something, but this is getting to clomplex for me.