linux升级内核后网卡丢失,【已解决】Ubuntu18.04 更新内核到4.19 后出现的网卡驱动失灵...

背景

本人的网卡是Intel Wireless-AC 9560,本来在Ubuntu18.04下使用Kernel 4.18时,网卡一切正常。但在将内核升级到4.19后,发现网卡失灵,右上角wifi图标消失,上不了网。。。qwq。。。于是开始了一番新的折腾.....

一、查看当前内核及网卡相关信息

内核版本:

(base) andrew@G7-Ubuntu:~$ uname -sr

Linux 4.19.0-041900-generic

网卡工作情况:

(base) andrew@G7-Ubuntu:~$ ps -A | grep NetworkManager

1013 ? 00:00:01 NetworkManager

网卡型号:

(base) andrew@G7-Ubuntu:~$ sudo lspci -vvnn | grep -A 9 Network

00:14.3 Network controller [0280]: Intel Corporation Wireless-AC 9560 [Jefferson Peak] [8086:a370] (rev 10)

Subsystem: Intel Corporation Device [8086:4030]

Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+

Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-

二、安装网卡相关硬件及驱动

1.  Intel无线网卡硬件下载及安装:

intel系列网卡硬件下载地址:

https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html

下载你自己网卡型号(上面查到的)对应的驱动,我的是这个:

a2ce30f560d2111b468c4c9b2d2f665b.png

解压后打开,进到目录里,把这个 iwlwifi-***.ucode文件 复制到 /lib/firmware:

sudo cp -i iwlwifi-9000-pu-b0-jf-b0-34.ucode /lib/firmware

4b28ce5482b1fe3677734a2f29a80c77.png

查看是否成功,输出的结果有上面这个ucode文件就说明成功了:

(base) andrew@G7-Ubuntu:~$ ll /lib/firmware

total 2644

drwxr-xr-x 3 root root 12288 Apr 4 16:41 ./

drwxr-xr-x 22 root root 4096 Mar 21 16:47 ../

drwxr-xr-x 2 root root 4096 Feb 25 2018 hp/

-rw-r--r-- 1 root root 2677620 Apr 4 16:41 iwlwifi-9000-pu-b0-jf-b0-34.ucode

-rw-r--r-- 1 root root 4032 May 24 2018 regulatory.db

-rw-r--r-- 1 root root 1182 May 24 2018 regulatory.db.p7s

2.  Broadcom无线网卡驱动下载及安装:

下载地址:(这个地址在一个Ubuntu的Apache服务器上)

http://ftp.ubuntu.com/ubuntu/ubuntu/pool/restricted/b/bcmwl/

在这里找一个最新的deb,点击后就可以下载,我下的是这个:

1ff3a56a770cf717e88c7ba98134165d.png

不想手动的可以直接粘代码:

wget -c http://ftp.ubuntu.com/ubuntu/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

进到下载目录,开始安装:

sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

我的安装过程是这样:(没装gdebi的可以跳过)

(base) andrew@G7-Ubuntu:~$ sudo gdebi ~/Downloads/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb

Reading package lists... Done

Building dependency tree

Reading state information... Done

Reading state information... Done

Broadcom 802.11 Linux STA wireless driver source

This package contains Broadcom 802.11 Linux STA wireless driver

for use with Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-,

BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based

hardware.

Do you want to install the software package? [y/N]:y

(Reading database ... 391929 files and directories currently installed.)

Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu4_amd64.deb ...

Removing all DKMS Modules

Done.

Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) over (6.30.223.271+bdcom-0ubuntu4) ...

Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu4) ...

Loading new bcmwl-6.30.223.271+bdcom DKMS files...

Building for 4.19.0-041900-generic

Building for architecture x86_64

Module build for kernel 4.19.0-041900-generic was skipped since the

kernel headers for this kernel does not seem to be installed.

modprobe: FATAL: Module wl not found in directory /lib/modules/4.19.0-041900-generic

update-initramfs: deferring update (trigger activated)

Processing triggers for initramfs-tools (0.130ubuntu3.7pop1) ...

update-initramfs: Generating /boot/initrd.img-4.19.0-041900-generic

三、更新grub + 重启

sudo update-grub

reboot

之后就一切都恢复正常啦。。。又可以愉快的玩耍了 hhhhhhhhhhh.....

上一张图:

Caption

有什么问题或疑问欢迎在评论区留言,我们一起讨论。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值