Previous custom wifi driver causes kernel install errors SOLVED

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Flemur
Level 17
Level 17
Posts: 7069
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Previous custom wifi driver causes kernel install errors SOLVED

Post by Flemur » Sat Mar 24, 2018 4:41 pm

Solution:

Code: Select all

sudo rm -r /var/lib/dkms/8192cu
Edit: Better solution: see JeremyB's post further down.

Previously I had installed a custom 8192cu driver (for realtek usb wifi), but I no longer need it (new device!), and since then when I try to install a new kernel (not just the one below), I get this stuff ...

/var/lib/dkms/8192cu/1.10/build/make.log says:

Code: Select all

DKMS make.log for 8192cu-1.10 for kernel 4.15.12-041512-generic (x86_64)
...
make[1]: *** [/var/lib/dkms/8192cu/1.10/build/core/rtw_cmd.o] Error 1
Makefile:1520: recipe for target '_module_/var/lib/dkms/8192cu/1.10/build' failed
make: Entering directory '/usr/src/linux-headers-4.15.12-041512-generic'
...
make: *** [_module_/var/lib/dkms/8192cu/1.10/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.12-041512-generic'
~               


The custom driver install consisted of:

Code: Select all

sudo apt-get install linux-headers-generic build-essential dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
sudo modprobe 8192cu
(or reboot?)
How can I completely undo any custom driver stuff so I don't get the warnings/errors about a driver I no longer use?

Thanks!
Last edited by Flemur on Fri Mar 30, 2018 2:13 pm, edited 1 time in total.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
catweazel
Level 19
Level 19
Posts: 9182
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Previous custom wifi driver causes kernel install errors SOLVED

Post by catweazel » Mon Mar 26, 2018 1:02 am

Flemur wrote:
Sat Mar 24, 2018 4:41 pm
Thanks!
You're welcome.

As you didn't get any replies at all, I can only assume that there are more people like me than I had previously thought. "Like me" meaning, subscribes to the notion of 'physician, heal thyself!" :lol:
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

User avatar
Flemur
Level 17
Level 17
Posts: 7069
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Previous custom wifi driver causes kernel install errors SOLVED

Post by Flemur » Mon Mar 26, 2018 8:45 am

catweazel wrote:
Mon Mar 26, 2018 1:02 am
As you didn't get any replies at all, I can only assume that there are more people like me than I had previously thought. "Like me" meaning, subscribes to the notion of 'physician, heal thyself!" :lol:
Heck I don't know anything, so I follow the Xkcd philosophy of debugging.
https://xkcd.com/627/
or :
computer_problems.png
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

JeremyB
Level 20
Level 20
Posts: 10860
Joined: Fri Feb 21, 2014 8:17 am

Re: Previous custom wifi driver causes kernel install errors SOLVED

Post by JeremyB » Mon Mar 26, 2018 5:16 pm

Use commands like

Code: Select all

sudo dkms remove 8192cu/1.10 --all
This will remove the dkms 8192cu module from all kernels

Code: Select all

sudo dkms uninstall 8192cu/1.10
This will uninstall 8192cu from dkms
Additionally you may wish to

Code: Select all

sudo rm -r /usr/src/8192cu-1.10
To remove the source code from /usr/src/

User avatar
Flemur
Level 17
Level 17
Posts: 7069
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Previous custom wifi driver causes kernel install errors SOLVED

Post by Flemur » Fri Mar 30, 2018 2:11 pm

JeremyB wrote:
Mon Mar 26, 2018 5:16 pm
Use commands like

Code: Select all

sudo dkms remove 8192cu/1.10 --all
...
Thanks!
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

Post Reply

Return to “Software & Applications”