双系统装完之后,Ubuntu系统连不上WIFI的问题
产生该问题的一个原因是由于Ubuntu系统没有无线网卡驱动。
- 在Ubuntu系统下,使用命令 “lshw -C network” 查询网卡状态,查询结果分为两部分,第二部分是关于无线网的,若发现“*-networkUNCLAMED”字样,说明没有无线网卡驱动。
- 由于我的笔记本无线网卡较新,版本为Realtek Device c822,
查看命令为:
lspci | grep -i net # Ethernet controller代表有线网卡、Network controller为无线网卡标志
- linux内核中没有兼容的网卡驱动,所以需要手动安装适配无线网卡的驱动程序,命令如下
sudo apt-get install git build-essential
git clone https://github.com/rtlwifi-linux/rtk_wifi_driver_rtl8822ce.git
cd rtk_wifi_driver_rtl8822ce
make
sudo make install
安装成功后重启电脑,就可以成功连上wifi啦!!!
当然,也可能会遇到需要升级内核的问题,可以参考文末的链接。
过程中可能会用到的一些命令:
- 查看系统版本
uname -r
- 查看无线网卡型号指令
lspci | grep -i net
返回以下消息:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
03:00.0 <span style="color:#ff0000;">Network controller</span>: Intel Corporation Device 24fd (rev 78)
其中Network controller后面的表示无线网卡,需要下载相应的无线网卡驱动。题外话,我当时是在windows系统的设备管理器中看到自己的无线网卡驱动型号,需要的是8265的驱动。
参考链接:
https://www.cnblogs.com/mybrave/p/8569405.html
https://blog.csdn.net/linzhineng44/article/details/78778143