当我尝试从 GitHub 安装某些内容甚至更新和升级系统时,会显示以下错误消息。这是 Kali 发行版上的。该问题与 Alpha 无线网络适配器的 Realtek 驱动程序有关。我陷入这种情况,所以我希望有人可以提供帮助。
例如,当我尝试升级系统(或从 GitHub 安装某些软件,尝试编译某些内容等)时,以下是输出:
8814au.ko.xz:
Uninstallation
Deleting from: /lib/modules/6.6.9-amd64/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...... dkms: running auto installation service for kernel 6.6.9-amd64.
88XXau.ko.xz:
Running module version sanity check.
Module version v5.6.4.2_35491.20191025 for 88XXau.ko.xz exactly matches what is already found in kernel 6.6.9-amd64.
DKMS will not replace this module.
You may override by specifying --force.
Error! Installation aborted.
Sign command: /lib/modules/6.6.9-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
/usr/src/realtek-rtl8814au-5.8.5.1~git20231211.866a910/dkms-make.sh..........................................................................................
Signing module /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20231211.866a910/build/8814au.ko
Cleaning build area...
8814au.ko.xz: Running module version sanity check.
Original module
No original module exists within this kernel
Installation
Installing to /lib/modules/6.6.9-amd64/updates/dkms/ depmod......
88XXau.ko.xz:
Running module version sanity check.
Module version v5.6.4.2_35491.20191025 for 88XXau.ko.xz
exactly matches what is already found in kernel 6.6.9-amd64.
DKMS will not replace this module.
You may override by specifying --force.
Error! Installation aborted.
dkms autoinstall on 6.6.9-amd64/x86_64 succeeded for realtek-rtl8814au
dkms autoinstall on 6.6.9-amd64/x86_64 failed for 8812au(6) realtek- rtl88xxau(6)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.6.9-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.6.9-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.6.9-amd64 (--configure):
installed linux-headers-6.6.9-amd64 package post-installation script subprocess returned error exit status 11
Setting up libtss2-sys1:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-swtpm0:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-libtpms0:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-device0:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-spi-helper0:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-cmd0:amd64 (4.0.1-7) ...
Setting up libtss2-tcti-mssim0:amd64 (4.0.1-7) ...
Setting up libtss2-esys-3.0.2-0:amd64 (4.0.1-7) ...
Setting up libopenconnect5:amd64 (9.12-1+b1) ...
Processing triggers for libc-bin (2.37-12) ... Errors were encountered while processing:
linux-headers-6.6.9-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)
安装一些软件后,我尝试升级操作系统,但由于同样的问题,我什至无法做到这一点。谁能帮我解决这个问题吗?
这是dkms status
:
8812au/5.6.4.2_35491.20191025, 6.6.9-amd64, x86_64: built
realtek-rtl8814au/5.8.5.1~git20231211.866a910, 6.6.9-amd64, x86_64: installed
realtek-rtl88xxau/5.6.4.2~git20231117.a3e0c0b, 6.6.9-amd64, x86_64: built
和uname -r
输出:
6.6.9-amd64
答案1
在 /usr/src/ 下查找模块的 dkms.conf
- 8812au
- 瑞昱-RTL8814AU
- 瑞昱-RTL88XXAU
每个对应的文件夹下都有一个名为
dkms.conf
在此文件中搜索字符串
AUTOINSTALL="yes"
到
AUTOINSTALL="no"
所以 dkms 不会尝试构建/安装它们。
sudo dkms remove 8812au/5.6.4.2_35491.20191025 -k 6.6.9-amd64
还
sudo dkms remove realtek-rtl88xxau/5.6.4.2~git20231117.a3e0c0b -k 6.6.9-amd64
和
sudo apt update && sudo dpkg --configure -a
但我无法帮助您确定哪个模块最适合您的无线局域网。