问题描述
在ubuntu20.04系统上安装ros环境,需要更新数据源,使用sudo apt-get update命令进行更新,报错
:: The repository "http://mirrors,ustc.edu.cn/ros/ubuntu jammy Release' does nothave a Release file.N: Updating from such a repository can't be done securely, and is therefore disaled by default .
N: See apt-secure(8) manpage for repository creation and user configuration deta
iIs.N: http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease: Key is stoed in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
具体如下图所示:
解决方案:
修改系统源文件sources.list的源地址;如果未解决,检查网络是否被监控,切换其他网络试试,例如开一个手机热点;更新过于老旧或者缺少的软件包。
详细解决步骤:
1.修改系统文件source