错误!内核模块构建返回状态错误:5.15.0-52-generic (x86_64)

错误!内核模块构建返回状态错误:5.15.0-52-generic (x86_64)

当我尝试使用 apt 安装任何包时,出现以下错误。

ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl88x2ce-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-52-generic (x86_64)
Consult /var/lib/dkms/rtl88x2ce/35403/build/make.log for more information.
dpkg: error processing package rtl88x2ce-dkms (--configure):
 installed rtl88x2ce-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 rtl88x2ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

我正在使用 Ubuntu 22.04.1 LTS。我尝试应用以下解决方案发布,但出现同样的错误。

$ dkms status && uname -r
rtl8821ce/v5.5.2_34066.20200325, 5.15.0-48-generic, x86_64: installed (WARNING! Diff between built and installed module!)
rtl8821ce/v5.5.2_34066.20200325, 5.15.0-52-generic, x86_64: installed (WARNING! Diff between built and installed module!)
rtl88x2ce/35403, 5.15.0-52-generic, x86_64: installed
5.15.0-52-generic

我不知道如何修复构建模块和安装模块之间的差异。

$ dpkg -l | grep rtl88
iF  rtl88x2ce-dkms     35403  amd64  rtl88x2ce driver in DKMS format.

我从Github 仓库。

相关内容