问题描述
- Ubuntu22.04
- 已安装ros2
- 终端报错内容:
jackie@MS-7E06:~/z_ws_ros2$ sudo apt update
[sudo] password for jackie:
Get:1 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Get:1 file:/var/cuda-repo-ubuntu2204-12-1-local InRelease [1,572 B]
Hit:2 http://mirrors.aliyun.com/ubuntu jammy InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu jammy-security InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://packages.microsoft.com/repos/code stable InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 https://download.docker.com/linux/ubuntu jammy InRelease
Get:8 http://packages.ros.org/ros2/ubuntu jammy InRelease [208 B]
Err:8 http://packages.ros.org/ros2/ubuntu jammy InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:9 https://nvidia.github.io/libnvidia-container/stable/deb/amd64 InRelease
Get:10 https://nvidia.github.io/libnvidia-container/experimental/deb/amd64 InRelease [1,489 B]
Reading package lists... Done
E: Failed to fetch http://packages.ros.org/ros2/ubuntu/dists/jammy/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://packages.ros.org/ros2/ubuntu jammy InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
目前的解决办法,获取有更好的,以后再更新
cd /etc/apt/sources.list.d
rm ros2.list* # 删除与报错项对应的文件
sudo apt update
参考资料
ROS2安装时执行sudo apt update报错E: The repository ‘http://packages.ros.org/ros/ubuntu jammy Release‘ does
标签:ros,http,InRelease,jammy,ubuntu,packages,ros2 From: https://www.cnblogs.com/jackie2455/p/17986729