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
相关推荐
神梦流5 分钟前
GE 引擎的非标准数据流处理:稀疏张量与自定义算子在图优化中的语义保持
linux·运维·服务器
兜兜转转了多少年12 分钟前
从脚本到系统:2026 年 AI 代理驱动的 Shell 自动化
运维·人工智能·自动化
.小墨迹44 分钟前
apollo学习之借道超车的速度规划
linux·c++·学习·算法·ubuntu
Lsir10110_1 小时前
【Linux】中断 —— 操作系统的运行基石
linux·运维·嵌入式硬件
Sheffield1 小时前
command和shell模块到底区别在哪?
linux·云计算·ansible
历程里程碑1 小时前
Linux20 : IO
linux·c语言·开发语言·数据结构·c++·算法
郝学胜-神的一滴1 小时前
深入浅出:使用Linux系统函数构建高性能TCP服务器
linux·服务器·开发语言·网络·c++·tcp/ip·程序人生
承渊政道1 小时前
Linux系统学习【Linux系统的进度条实现、版本控制器git和调试器gdb介绍】
linux·开发语言·笔记·git·学习·gitee
技术路上的探险家1 小时前
Ubuntu下Docker与NVIDIA Container Toolkit完整安装教程(含国内源适配)
linux·ubuntu·docker
代码AC不AC2 小时前
【Linux】深入理解缓冲区
linux·缓冲区·标准错误