rtl8852bu
rtl8852bu copied to clipboard
(solved) install-driver.sh error with dkms (nvidia driver involved)
@p7x404 said: I had to manually remove the driver from DKMS to be able to install the update.
sudo ./remove-driver.sh
: ---------------------------
: remove-driver.sh v20230801
: x86_64 (architecture)
: 5.15.0-78-generic (kernel version)
: ---------------------------
Removing a dkms installation.
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.64/source/dkms.conf does not exist.
rtl8852bu/1.19.3 has been removed
Removing 8852bu.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl8852bu-1.19.3
The driver was removed successfully.
You may now delete the driver directory if desired.
: ---------------------------
: install-driver.sh v20230718
: x86_64 (system architecture)
: x86_64 (gcc architecture)
: 6/6 (in-use/total processing units)
: 32600684 (total system memory)
: 5.15.0-78-generic (kernel version)
: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
: dkms:2.8
: SecureBoot disabled
: ---------------------------
Checking for previously installed drivers.
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/nvidia/430.64/source/dkms.conf does not exist.
: ---------------------------
Starting installation.
Installing 8852bu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8852bu-1.19.3
Error! DKMS tree already contains: rtl8852bu-1.19.3
You cannot add the same module/version combo more than once.
This driver may already be installed.
Run the following and then reattempt installation.
$ sudo ./remove-driver.sh
$sudo dkms status -c dkms.conf
nvidia, 430.64: added
nvidia, 535.86.05: added
rtl8852bu, 1.15.11, 5.15.0-76-generic, x86_64: installed
rtl8852bu, 1.19.3, 5.15.0-78-generic, x86_64: installedError! Could not locate dkms.conf file.
File: /var/lib/dkms/rtl8852bu/1.19.3/source/dkms.conf does not exist.
$sudo dkms remove -c dkms.conf -m rtl8852bu/1.19.3 --all