Mange / rtl8192eu-linux-driver

Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
1.32k stars 435 forks source link

Error! DKMS tree already contains: rtl8192eu-1.0 #156

Closed bringmemyaxe closed 4 years ago

bringmemyaxe commented 4 years ago

I have Mercusys MW300UM. When I had Xubuntu 19.04, I followed instructions from here, and it worked pretty well. Now I have Xubuntu 19.10 and I've done the same instructions (but it doesn't work anymore for some reason). The output didn't show any errors, though Wi-Fi did not work:

robert@robert-MCP61M-M3:~/mw300um-linux-driver$ sudo dkms add .

Creating symlink /var/lib/dkms/rtl8192eu/1.0/source ->
                 /usr/src/rtl8192eu-1.0

DKMS: add completed.
robert@robert-MCP61M-M3:~/mw300um-linux-driver$ sudo dkms install rtl8192eu/1.0

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' all KVER=5.3.0-24-generic..............................................
cleaning build area...

DKMS: build completed.

8192eu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.3.0-24-generic/updates/dkms/

depmod........

Backing up initrd.img-5.3.0-24-generic to /boot/initrd.img-5.3.0-24-generic.old-dkms
Making new initrd.img-5.3.0-24-generic
(If next boot fails, revert to initrd.img-5.3.0-24-generic.old-dkms image)
update-initramfs...............

DKMS: install completed.

When I wrote /sbin/ip a, the device didn't show up.

I was redirected to this repository, that's why now I've tried this repository's instructions and got this error:

robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms add .
Error! DKMS tree already contains: rtl8192eu-1.0
You cannot add the same module/version combo more than once.

What should I do?

SatanicRaw commented 4 years ago

First, remove the old module, what does dkms status show?

bringmemyaxe commented 4 years ago
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ dkms status
nvidia, 390.129, 5.3.0-18-generic, x86_64: installed
nvidia, 390.129, 5.3.0-24-generic, x86_64: installed
rtl8192eu, 1.0, 5.3.0-24-generic, x86_64: installed

What's the right command to remove the old module?

SatanicRaw commented 4 years ago

dkms uninstall -k 5.3.0-24-generic rtl8192eu

bringmemyaxe commented 4 years ago
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms uninstall -k 5.3.0-24-generic rtl8192eu
Error! Invalid number of arguments passed.
Usage: uninstall <module>/<module-version> or
       uninstall -m <module>/<module-version> or
       uninstall -m <module> -v <module-version>
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms uninstall rtl8192eu -k 5.3.0-24-generic
Error! Invalid number of arguments passed.
Usage: uninstall <module>/<module-version> or
       uninstall -m <module>/<module-version> or
       uninstall -m <module> -v <module-version>
SatanicRaw commented 4 years ago

Mistaken, try as it is written in the output of DKMS dkms uninstall -m rtl8192eu -v 1.0

bringmemyaxe commented 4 years ago
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms uninstall rtl8192eu/1.0

-------- Uninstall Beginning --------
Module:  rtl8192eu
Version: 1.0
Kernel:  5.3.0-24-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

8192eu.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.3.0-24-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.......

update-initramfs...............

DKMS: uninstall completed.

Then I rebooted. And tried again:

robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms add .
Error! DKMS tree already contains: rtl8192eu-1.0
You cannot add the same module/version combo more than once.
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ dkms status
nvidia, 390.129, 5.3.0-18-generic, x86_64: installed
nvidia, 390.129, 5.3.0-24-generic, x86_64: installed
rtl8192eu, 1.0, 5.3.0-24-generic, x86_64: built
robert@robert-MCP61M-M3:~/rtl8192eu-linux-driver$ sudo dkms uninstall -m rtl8192eu -v 1.0
Error! The module rtl8192eu 1.0 is not currently installed.
This module is not currently ACTIVE for kernel 5.3.0-24-generic (x86_64).
SatanicRaw commented 4 years ago

Ok, try dkms remove rtl8192eu/1.0 --all

bringmemyaxe commented 4 years ago

That worked and at last the driver works fine, I appreciate your help so much :)