cilynx / rtl88x2bu

rtl88x2bu driver updated for current kernels.

Home Page:http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dkms add : Error! DKMS tree already contains: rtl88x2bu-5.8.7.1

sebma opened this issue · comments

commented

Hi,
I've just upgraded from Ubuntu 20.04 LTS to 22.04 and the new 5.19.0-46-generic kernel was installed.
But during the install I saw no dkms build running.
Here is the situation :

$ uname -r
5.19.0-46-generic
$ cd ~/git/drivers/cilynx/rtl88x2bu
$ git br
* 5.8.7.1_35809.20191129_COEX20191120-7777
$ ./deploy.sh
.......................................

sent 27.55M bytes  received 12.68K bytes  55.12M bytes/sec
total size is 27.50M  speedup is 1.00
Error! DKMS tree already contains: rtl88x2bu-5.8.7.1
You cannot add the same module/version combo more than once.
commented

Found a solution as I noticed dkms is actually a bash script :

$ file $(which dkms)
/usr/sbin/dkms: Bourne-Again shell script, ASCII text executable, with very long lines
$ sudo bash -x dkms add -m rtl88x2bu -v 5.8.7.1 2>&1 | tail -15
+ [[ -L /var/lib/dkms/rtl88x2bu/5.8.7.1/source ]]
+ die 3 'DKMS tree already contains: rtl88x2bu-5.8.7.1' 'You cannot add the same module/version combo more than once.'
+ ret=3
+ shift
+ error 'DKMS tree already contains: rtl88x2bu-5.8.7.1' 'You cannot add the same module/version combo more than once.'
+ exec
+ echo -n 'Error! '
Error! + for s in "$@"
+ echo 'DKMS tree already contains: rtl88x2bu-5.8.7.1'
DKMS tree already contains: rtl88x2bu-5.8.7.1
+ for s in "$@"
+ echo 'You cannot add the same module/version combo more than once.'
You cannot add the same module/version combo more than once.
+ [[ yes = yes ]]
+ exit 3
$ sudo unlink /var/lib/dkms/rtl88x2bu/5.8.7.1/source
$

Now, the dkms add worked 😄

Waiting for the dkms build to finish ...

commented

The build was successful and the drivers works. 😄