windows11 ,ubuntu20.04双系统,ubuntu没有wifi的解决方式

Ubuntu20系统安装完后没有WIFI_modprobe:error:could not insert '8852be':invalid a-CSDN博客

ubuntu 20.04 设置国内镜像源(阿里源、清华源)_ubuntu 20.04 镜像源-CSDN博客

Ubuntu20.04无法直接连接无线网络 解决方法_ubuntu20.04连接wifi-CSDN博客

1.先查在win11上查看网络适配器型号:

Windows+x-->设备管理器-->网络适配器-->查看自己的无线网络适配器(我的是Realtek RTL8852BE)

2.添加ubuntu20.04的镜像源,focal版本。命令:lsb_release -a。

  1. git下载RTL8852BE编译安装。

  2. 重启电脑。

查询版本

先查询自己系统的版本号:

命令:lsb_release -a:

ma@cw:~$ lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 20.04.6 LTS

Release: 20.04

Codename: focal

可以看出我系统版本是 Ubuntu 20.04.6 LTS,注意这个开发代号Codename,Ubuntu每一个版本都有一个代号,这个一定要跟国内源对应,否则会出问题。

阿里云镜像

镜像地址

通过以下地址可以看到阿里云Ubuntu各个版本的镜像地址,从中选择自己的系统版本就好,一定要选择Codename对应的版本。

镜像地址: 阿里云Ubuntu镜像:https://developer.aliyun.com/mirror/ubuntu

ubuntu 20.04 LTS (focal) 配置如下

我系统版本是20.04,所以可以从下面镜像信息中看到都是focal代号的。

deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

更换方法

1.备份

sudo cp /etc/apt/sources.list /etc/apt/sources.list.back

1

2.编辑

打开vim编辑器,把sources.list文件中所有的deb文件全部注释掉或者删除掉,然后把上面给的国内镜像复制去就可以。

vim /etc/apt/sources.list

1

3.更新

sudo apt update

sudo apt upgrade

Ubuntu20系统安装完后没有WIFI

查看后发现是缺少网卡,经过查询之后,发现是HRex39/rtl8852be

然后查询了Kernel版本

复制代码
$ uname -srm
Linux 5.15.0-67-generic x86_64

然后进行下载安装

Build(for kernel < 5.18)

Turn off your Security Boot in BIOS

关上安全模式

复制代码
git clone https://github.com/HRex39/rtl8852be.git
cd rtl8852be
make -j8
sudo make install
sudo modprobe 8852be

然后就好了

遇到问题:

有次重启之后发现wifi又不见了,sudo make install 正常,但是在 sudo modprobe 8852be会出错

错误显示:

modprobe: ERROR: could not insert '8852be': Invalid argument.

解决办法:

卸载后重装RTL8852BE网卡驱动

执行命令:

复制代码
cd rtl8852be
sudo make uninstall
sudo make clean 
make  
sudo make install
sudo modprobe 8852be
相关推荐
phoenix09812 分钟前
ansible部署lnmp-allinone
linux·运维·ansible
winds~44 分钟前
【git】 撤销revert一次commit中的某几个文件
linux·c++
iY_n1 小时前
Linux网络基础
linux·网络·arm开发
硅上观道1 小时前
打造 NixOS 开发环境 (1):为什么选择 Nix
linux
phoenix09812 小时前
Linux入门DAY27
linux·运维·服务器
xw53 小时前
免费的个人网站托管-PinMe篇
服务器·前端
♞沉寂4 小时前
信号以及共享内存
linux·c语言·开发语言
egoist20234 小时前
【Linux仓库】进程创建与进程终止【进程·柒】
linux·运维·服务器·进程创建·写时拷贝·进程终止
大锦终4 小时前
【Linux】文件系统
linux·服务器·c++