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
相关推荐
柳鲲鹏1 小时前
交叉编译:strip: Unable to recognise the format of the input file xx.c.o
linux·运维·服务器
六六六六六66661 小时前
Ubuntu22.04安装Ibus的中文输入法
linux
Le1Yu1 小时前
微服务拆分以及注册中心
linux·运维·服务器
code_ing-1 小时前
【Linux】Linux基本指令
linux·笔记
zzzsde2 小时前
【Linux】linux基础指令入门(1)
linux·运维·学习
moxiaoran57532 小时前
nginx中proxy_pass配置
运维·服务器·nginx
uxiang_blog2 小时前
Linux下如何在vim里使用异步编译和运行?
linux·vim·asynctasks.vim·asyncrun.vim
weixin_379880922 小时前
.Net Core WebApi集成Swagger
java·服务器·.netcore
leellun2 小时前
在Centos上安装Python指定版本
linux·运维·centos