栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu focal Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

E: 仓库 “https://mirrors.ustc.edu.cn/ubuntu focal Release” 没有 Release 文件。 N: 无法安全地用该源进行更新,所以默认禁用该源。

 

sudo apt-get update   如下:

 

解决方法如下:

删除软件源里的所有http链接

(此图为删除之后的情况:)

 

然后关闭窗口;

在终端打开,输入      sudo apt update

再输入     sudo gedit /etc/apt/sources.list

因为我的是20.04版本,所以复制了这一段:

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

大家根据自己的版本来复制进去,可以参考

Ubuntu 20.04更换下载源详细教程_王菜鸟的博客-CSDN博客_ubuntu更换下载源

保存后退出,

再输入     

sudo apt update

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

sudo apt update

参考这个:在Ubuntu20.04中安装ROS Noetic_华青水上的博客-CSDN博客_ubuntu20.04安装ros

 的前三步就行啦

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/297805.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号