我有一个从 USB 记忆棒运行的 xubuntu,最近更新到了 22.04,但升级未能安装 broadcom 无线驱动程序(我需要),现在我的系统坏了,不允许我使用 wifi。
我已尝试按照说明进行操作这里但无济于事;broadcom-sta-common 和 broadcom-sta-source 的安装很好,但是当我运行时,sudo apt install broadcom-sta-dkms
我得到以下信息:
Building dependency tree... Done
Reading state information... Done
broadcom-sta-dkms is already the newest version (6.30.223.271-17).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up broadcom-sta-dkms (6.30.223.271-17) ...
Removing old broadcom-sta-6.30.223.271 DKMS files...
Deleting module broadcom-sta-6.30.223.271 completely from the DKMS tree.
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 5.15.0-46-generic
Building initial module for 5.15.0-46-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/broadcom-sta-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.15.0-46-generic (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
dpkg: error processing package broadcom-sta-dkms (--configure):
installed broadcom-sta-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
broadcom-sta-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
输出/var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log
为:
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 5.15.0-46-generic (x86_64)
Mon 15 Aug 15:55:34 BST 2022
CFG80211 API is prefered for this kernel version
Makefile:89: Neither CFG80211 nor Wireless Extension is enabled in kernel
KBUILD_NOPEDANTIC=1 make -C /lib/modules/5.15.0-46-generic/build M=`pwd`
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-46-generic'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [Makefile:749: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-46-generic'
make: *** [Makefile:181: all] Error 2
我不知道我该跑去哪里,或者怎么跑make oldconfig && make prepare
。
有什么建议吗?我真的很想不是必须执行全新安装...