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
相关推荐
chlk12314 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑15 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件15 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒16 小时前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号1 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash1 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
Sinclair2 天前
简单几步,安卓手机秒变服务器,安装 CMS 程序
android·服务器
木心月转码ing3 天前
WSL+Cpp开发环境配置
linux