Kernel

如何設置r8168-kms?

  • May 16, 2021

我的作業系統:

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)

如何解決問題?

您可以從 backports 安裝更新的r8168-dkms (8.048.03-1~bpo10+1)包,它在我的系統上編譯得很好(相同的核心版本)。

如果尚未完成,請將以下行添加到您的/etc/apt/sources.list

deb http://deb.debian.org/debian buster-backports main contrib non-free

啟用 backports 儲存庫。

然後執行

sudo apt update
sudo apt -t buster-backports install r8168-dkms

安裝軟體包。

相關:bugs.debian.org/cgi-bin/bugreport.cgi?bug=960091

引用自:https://unix.stackexchange.com/questions/647647