从 DKMS 树中彻底删除模块版本:7906

从 DKMS 树中彻底删除模块版本:7906

我最近遇到了 WiFi 问题,它运行得有点混乱,我在安装其他应用程序时注意到问题似乎来自软件包backport-iwlwifi-7906,但我不太确定如何解决它...我不认为我在切换到 Ubuntu 19.10 之前遇到过这个问题。

我看见这个问题已经,但就我而言,网络已被识别,所以我不确定该修复程序是否适用于我的情况,并且我不想冒险在不知道是否是个好主意的情况下尝试某些操作,从而完全破坏我的 WiFi!

以下是我lshw -C network针对相应设备的输出:

*-network
   description: Wireless interface
   product: Wireless 8260
   vendor: Intel Corporation
   physical id: 0
   bus info: pci@0000:02:00.0
   logical name: wlp2s0
   version: 3a
   serial: e4:a7:a0:cc:24:87
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
   configuration: broadcast=yes driver=iwlwifi driverversion=5.3.0-23-generic
       firmware=36.77d01142.0 ip=192.168.1.19 latency=0 link=yes multicast=yes
       wireless=IEEE 802.11
   resources: irq:129 memory:df000000-df001fff

这是我的lspci -nnk | grep 0280 -A2输出:

02:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3]
    (rev 3a)
Subsystem: Intel Corporation Dual Band Wireless-AC 8260 [8086:1010]
Kernel driver in use: iwlwifi

以下是我在运行时收到的完整消息,apt-get upgrade当时其他所有内容均已升级:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
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.
Setting up backport-iwlwifi-dkms (7906-0ubuntu1) ...
Removing old backport-iwlwifi-7906 DKMS files...

------------------------------
Deleting module version: 7906
completely from the DKMS tree.
------------------------------
Done.
Loading new backport-iwlwifi-7906 DKMS files...
Building for 5.3.0-23-generic
Building initial module for 5.3.0-23-generic
ERROR: Cannot create report: [Errno 17]
  File exists: '/var/crash/backport-iwlwifi-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.3.0-23-generic (x86_64)
Consult /var/lib/dkms/backport-iwlwifi/7906/build/make.log for more information.
dpkg: error processing package backport-iwlwifi-dkms (--configure):
 installed backport-iwlwifi-dkms package post-installation script subprocess
 returned error exit status 10
Errors were encountered while processing:
 backport-iwlwifi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

非常感谢您的帮助,我不确定还有哪些其他信息可能有用,所以请告诉我是否应该运行任何其他命令来获得更多输出!

编辑:按照 heynnema 的建议后,内容如下/var/lib/dkms/backport-iwlwifi/7906/build/make.log(抱歉,我不太理解这个日志,对 Linux/Ubuntu 的技术不太了解,所以我不确定哪些行是相关的,哪些不相关):

DKMS make.log for backport-iwlwifi-7906 for kernel 5.3.0-23-generic (x86_64)
Sat 23 Nov 15:34:09 EET 2019
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o conf.o conf.c
cc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer   -c -o zconf.tab.o zconf.tab.c
cc   conf.o zconf.tab.o   -o conf
#
# configuration written to .config
#
make[5]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/compat/main.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/main.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/core.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/fw.o
  LD [M]  /var/lib/dkms/backport-iwlwifi/7906/build/compat/compat.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/sysfs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/status.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/driver-ops.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/radiotap.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/nvm.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/ops.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/sta_info.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/util.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/xvt.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/user-infc.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/reg.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/wep.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/aead_api.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/utils.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/wpa.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/utils.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/scan.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/fw.o
/var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/utils.c: In function ‘iwl_mvm_get_sync_time’:
/var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/utils.c:1468:14: error: implicit declaration of function ‘ktime_get_boot_ns’; did you mean ‘ktime_get_raw_ns’? [-Werror=implicit-function-declaration]
 1468 |  *boottime = ktime_get_boot_ns();
      |              ^~~~~~~~~~~~~~~~~
      |              ktime_get_raw_ns
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/scan.o
cc1: some warnings being treated as errors
make[9]: *** [scripts/Makefile.build:290: /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm/utils.o] Error 1
make[8]: *** [scripts/Makefile.build:519: /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/mvm] Error 2
make[8]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/nvm.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/rx.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/nl80211.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/debugfs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/mlme.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/offchannel.o
  LD [M]  /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi/xvt/iwlxvt.o
make[7]: *** [scripts/Makefile.build:519: /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel/iwlwifi] Error 2
make[6]: *** [scripts/Makefile.build:519: /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless/intel] Error 2
make[5]: *** [scripts/Makefile.build:519: /var/lib/dkms/backport-iwlwifi/7906/build/drivers/net/wireless] Error 2
make[5]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/ht.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/ibss.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/agg-tx.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/agg-rx.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/sme.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/vht.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/he.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/chan.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/ethtool.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/ibss.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/mesh.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/ap.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/iface.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/trace.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/ocb.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/pmsr.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/debugfs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rate.o
  GEN     /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/shipped-certs.c
  GEN     /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/extra-certs.c
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/shipped-certs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/extra-certs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/michael.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/tkip.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/aes_cmac.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/aes_gmac.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/fils_aead.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/cfg.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/ethtool.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rx.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/spectmgmt.o
  LD [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/wireless/cfg80211.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/tx.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/key.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/util.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/wme.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/chan.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/trace.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/mlme.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/tdls.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/ocb.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/led.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/debugfs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/debugfs_sta.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/debugfs_netdev.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/debugfs_key.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/pm.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rc80211_minstrel.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rc80211_minstrel_ht.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rc80211_minstrel_debugfs.o
  CC [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/rc80211_minstrel_ht_debugfs.o
  LD [M]  /var/lib/dkms/backport-iwlwifi/7906/build/net/mac80211/mac80211.o
make[4]: *** [Makefile:1655: _module_/var/lib/dkms/backport-iwlwifi/7906/build] Error 2
make[3]: *** [Makefile.build:6: modules] Error 2
make[2]: *** [Makefile.real:100: modules] Error 2
make[1]: *** [Makefile:43: modules] Error 2
make: *** [Makefile:30: default] Error 2

下面是dkms status

backport-iwlwifi, 7906: added

答案1

从@Pilot6的评论中,我认为这个包可能不是必需的,所以用了一个sweet sudo apt-get remove backport-iwlwifi-dkms,解决了这个问题。仍然不确定我是如何安装这个包的,但至少现在一切似乎都很好!

我唯一还不确定的是:现在apt-get告诉我dkms不再需要它了,删除它安全吗?我以为这dkms是一个相当核心的软件包,但同样,我在这里还是个新手。

答案2

您可以通过以下方式彻底删除此模块

sudo dkms remove backport-iwlwifi/7906 --all

如果这不起作用,您可以通过以下方式手动将其从 dkms 树中删除

sudo rm -r /var/lib/dkms/backport-iwlwifi

请小心,不要在此命令中输入错误,否则可能会删除一些有用的东西。

通过这种方式删除是相当安全的,因为dkms它不会在其他地方存储信息apt

源必须存储在中/usr/src,您也可以从那里删除,但这不会影响任何东西。

答案3

另一个解决方案:

就我的情况而言,上述所有方法均无效(重启后,它再次出现)。因此,在我从 PC(Jetson Nano)上拆下 wifi 模块后,它已被移除。

相关内容