2

I've seen a pro github link in the comments for the following question on how to get the Wi-Fi in Ubuntu 18.04 to work. Using the following command:

lspci | grep Wireless

I saw that my driver was rtl8188ee. Whereas my Wi-Fi does not work,connecting by cable works flawlessly. I used the following commands from the README from the github site:

sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
sudo make install
sudo modprobe -r rtl8188ee

and it worked, but only once! After a reboot, typing:

sudo modprobe rtl8188ee

gives the following error:

$ sudo modprobe rtl8188ee
modprobe: ERROR: could not insert 'rtl8188ee': Exec format error

How should I proceed?

abu_bua
  • 10,783

2 Answers2

0

you probably need to replace old buggy kernel module with your newly compiled one and make system aware of it

Try the following:

  1. lsmod | grep rtl8188ee - see if the module is loaded
  2. sudo modprobe -rv rtl8188ee - unload old module
  3. cd ~/path/to/compiled/module -
  4. sudo cp rtl8188ee.ko /lib/modules/$(uname -r)/kernel/drivers/- copy new module to current kernel lib directory so you dont accidentally delete it in your home folder
  5. sudo modprobe -v rtl8188ee- enable module again. This should suffice since the module is in default kernel lib directory, however I recommend issuing sudo update-initramfs -u at last.
  6. Reboot and see if this helps

Hope this helps

Update: Just noticed the last comment that you solved it yourself. Anyways I'll just leave this answer in case at can help anyone else

0

My rtl8188ee Started Working After Updating & Installing net-tools

After installing Ubutnu 18.04 on Toshiba laptop with rtl8188ee wireless card I could see wifi networks but could not connect. However,I was able to connect via ethernet and solve my issue. This step is the simplest possible fix to get you connected to WiFi.

Update and Install net-tools and reboot:

sudo apt update && sudo apt -y dist-upgrade
sudo apt install net-tools
sudo reboot

I have found that with a current 4.15 Kernel, my rtl8188ee is working perfectly.

Above steps have upgraded you to 18.04.02 and your WiFi should now connect. If not, proceed to the next step using Ethernet connection.

Linux Kernel 4.17+ Has Latest Drivers

This question has led me to a newer and improved answer (found here) for installing the latest Realtek drivers.

Kernels above 4.17 have the newest RTL drivers, so to upgrade to the latest drivers just install the HWE Kernel.

Note: Upgrading to the latest kernel made it impossible to install the amdgpu drivers downloaded from AMD... DKMS on the amdgpu/amdgpu-pro install seems to only work with stock Ubuntu kernel. This may affect other DKMS installs as well!

Let's see what kernel you have:

uname -r

If you kernel version is less than 4.17 you need to install the HWE kernel:

sudo apt install linux-generic-hwe-18.04
sudo reboot

Now you should be good to go!

Joshua Besneatte
  • 4,773
  • 5
  • 23
  • 42