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
相关推荐
IT成长日记13 分钟前
【Docker基础】Docker数据持久化与卷(Volume)介绍
运维·docker·容器·数据持久化·volume·
热爱生活的猴子16 分钟前
阿里云服务器正确配置 Docker 国内镜像的方法
服务器·阿里云·docker
物联网老王2 小时前
Ubuntu Linux Cursor 安装与使用一
linux·运维·ubuntu
艾伦_耶格宇4 小时前
【ACP】阿里云云计算高级运维工程师--ACP
运维·阿里云·云计算
一位摩羯座DBA4 小时前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组4 小时前
CentOS配置网络
linux·网络·centos
计算机毕设定制辅导-无忧学长5 小时前
西门子 PLC 与 Modbus 集成:S7-1500 RTU/TCP 配置指南(一)
服务器·数据库·tcp/ip
weixin_307779135 小时前
Hive集群之间迁移的Linux Shell脚本
大数据·linux·hive·bash·迁移学习
漫步企鹅5 小时前
【蓝牙】Linux Qt4查看已经配对的蓝牙信息
linux·qt·蓝牙·配对
cui_win6 小时前
【网络】Linux 内核优化实战 - net.core.flow_limit_table_len
linux·运维·网络