我的操作系统:
uname -a
Linux debian 5.10.0-0.bpo.5-amd64 #1 SMP Debian 5.10.24-1~bpo10+1 (2021-03-29) x86_64 GNU/Linux
我的 r8168-dkms 有问题;每次我安装其他软件包时,这都会出现在输出的末尾:
Setting up r8168-dkms (8.046.00-1) ...
Removing old r8168-8.046.00 DKMS files...
------------------------------
Deleting module version: 8.046.00
completely from the DKMS tree.
------------------------------
Done.
Loading new r8168-8.046.00 DKMS files...
Building for 5.10.0-0.bpo.5-amd64
Building initial module for 5.10.0-0.bpo.5-amd64
Error! Bad return status for module build on kernel: 5.10.0-0.bpo.5-amd64 (x86_64)
Consult /var/lib/dkms/r8168/8.046.00/build/make.log for more information.
dpkg: error processing package r8168-dkms (--configure):
installed r8168-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
r8168-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
如何解决这个问题?
答案1
您可以安装较新的r8168-dkms (8.048.03-1~bpo10+1)来自反向移植的包在我的系统上编译良好(相同的内核版本)。
如果尚未完成,请将以下行添加到您的/etc/apt/sources.list
deb http://deb.debian.org/debian buster-backports main contrib non-free
启用向后移植存储库。
然后运行
sudo apt update
sudo apt -t buster-backports install r8168-dkms
安装软件包。