由于不知是windows更新还是其他原因,双系统的Ubuntu 18.04在一次重启后就没有WiFi功能了。没办法只能重新安装rtl8821ce驱动,我的系统内核是5.4.0-53-generic,
1.打开rtl8821ce文件夹,再打开makefile文件夹,找到如下图所示区域,修改成文件所在地址,
我的地址是~/rtl8821ce
然后make clean
再make
在此make失败了,出现了两个错误,意思是内核上少了某个靶向模块,反正一直都make出错,
后来我输入sudo mokutil --disable-validation
再输入两次密码
之后再make也还是出错,没办法,只有去重启,
结果重启一下出现九秒蓝屏几行代码,不知什么意思,可能是上面的代码关闭了某项功能,结果重启开机就有WiFi了。这有可能是机缘巧合,毕竟我都没有make成功,还有后面的安装命令也没有输入,结果重启好了,可能是恢复了之前安装好的驱动。
在终端输入:ifconfig
结果显示如下:
enp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:d8:61:04:e2:9e txqueuelen 1000 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (本地环回)
RX packets 183 bytes 14451 (14.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 183 bytes 14451 (14.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.31.51 netmask 255.255.255.0 broadcast 192.168.31.255
inet6 fe80::8c8d:a208:47c9:7aa1 prefixlen 64 scopeid 0x20
ether 1c:1b:b5:0b:e8:a2 txqueuelen 1000 (以太网)
RX packets 6969 bytes 2328535 (2.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3856 bytes 390465 (390.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
说明安装了WiFi无线驱动。
我借鉴的方法地址:https://tntaxin.blog.csdn.net/article/details/88424360?spm=1001.2014.3001.5506