I found the solution. I installed the driver for the usb wifi adapter successfully using the following:
sudo apt-get update
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make all
sudo make install
sudo modprobe 8188eu.ko
and then I used the following command:
sudo lshw -C network
to get the internal wifi driver file name and then add it to blacklist
sudo -H gedit /etc/modprobe.d/blacklist
and add the following line to the end of the file:
blacklist xxxxx
where xxxx
is the internal wifi driver file name.
Restart and Ubuntu should now work with the usb adapter.
Note: if your internal wifi is fine then you don't need to blacklist it, i only did that because it was tuened off by hardware switch and doesn't want to turn on again and it turns off the usb wifi as well so i had to blacklist it.
git clone https://github.com/lwfinger/rtl8188eu
andmake all
should be added:cd rtl8188eu
– NapierDeltic Jan 01 '17 at 12:17sudo lshw -C network
displayed me only my ethernet drivers, no wifi driver - so i skipped the last few steps and it worked – Tushar Goswami Sep 05 '17 at 05:20sudo modprobe 8188eu.ko
becomessudo modprobe 8188eu
andsudo -H gedit /etc/modprobe.d/blacklist
becomessudo -H gedit /etc/modprobe.d/blacklist.conf
. Worked for me. – Piyush Patel May 22 '20 at 22:40lshw -C network
? – buncis Oct 13 '21 at 08:10