换源失败
-
建文件:/etc/apt/sources.list.d/ros-fish.list
Run CMD Task:[sudo apt update]
[][0.28s] 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRel[|][0.37s] 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InR[-][0.45s] 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InR[-][0.50s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.55s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.60s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.70s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.80s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.90s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[-][2.37s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.37s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.40s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.50s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.60s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.70s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.80s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[/][2.91s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[][3.02s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.02s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.11s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.21s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.31s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.41s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.51s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.61s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.71s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.81s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][3.91s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][4.01s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[|][4.11s] Certificate verification failed: The certificate is NOT trusted. The name in the certificate does not match the expected. Could not handshake: Err[-][4.22s] CMD Result:code:100apt更新失败,后续程序可能会继续尝试...,[]
Run CMD Task:[sudo apt search ros-base ]
[/][0.68s] ros-noetic-ros-base/now 1.5.0-1focal.20241118.195759 amd64 [已安装,[][0.68s] A metapackage which extends ros_core and includes other basic non-r[-][0.68s] CMD Result:success换源后更新失败,第四次开始切换源,尝试更换ROS源为http-ROS官方源!
根据您的系统,为您推荐安装源为['http://packages.ros.org/ros/ubuntu/', 'http://packages.ros.org/ros2/ubuntu/']
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
[-][0.00s] CMD Result:success创建文件:/etc/apt/sources.list.d/ros-fish.list
Run CMD Task:[sudo apt update]
[][0.23s] 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRel[|][0.29s] 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InR[-][0.34s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.41s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.50s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[|][0.69s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][0.69s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][0.70s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][0.80s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[][0.99s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][0.99s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.00s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.10s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.20s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.30s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.40s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.50s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.60s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.70s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.80s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][1.90s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.00s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][2.20s] CMD Result:code:100apt更新失败,后续程序可能会继续尝试...,[]
Run CMD Task:[sudo apt search ros-base ]
[/][0.75s] ros-noetic-ros-base/now 1.5.0-1focal.20241118.195759 amd64 [已安装,[][0.75s] A metapackage which extends ros_core and includes other basic non-r[-][0.75s] CMD Result:successRun CMD Task:[sudo apt update]
[][0.28s] 命中:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRel[|][0.34s] 命中:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InR[-][0.40s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.46s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.50s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.60s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.70s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.80s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][0.90s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.00s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.10s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.20s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.30s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.40s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.50s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.60s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[/][1.70s] 命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security InRe[|][2.19s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][2.19s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][2.20s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][2.30s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[][2.49s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.49s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.50s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.60s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.70s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.80s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][2.90s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.00s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.10s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.21s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.31s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.41s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[|][3.51s] 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics <info@osrfo[-][3.62s] CMD Result:code:100apt更新失败,后续程序可能会继续尝试...,[]
四次换源后都失败了,请及时联系小鱼获取解决方案并处理! -
pub (4)rsa4096/f42ed6fbab17c654 2019-05-30T00:40:54Z
uid Open Robotics info@osrfoundation.org
sig cert f42ed6fbab17c654 2021-05-29T05:59:45Z 2025-06-01T05:59:45Z ____________________ [selfsig]
sig cert f42ed6fbab17c654 2019-05-30T00:40:54Z 2021-05-29T00:40:54Z ____________________ [selfsig]
这个证书好像在今天早上6点过期了 -
我也是这样!!!!!
-
@3429494307 那咋解决啊哥
-
我也不知道,希望有大佬看到能解答吧,说起来ros1最后一个好像在今年5月最后一个版本(noetic)停止维护了
-
@3429494307 你们的是不是也无法运行
sudo apt update哇 -
@SFLEteasb 是的,出现如下报错
错误:6 http://packages.ros.org/ros/ubuntu focal InRelease
下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
获取:7 http://packages.ros.org/ros2/ubuntu focal InRelease [4,685 B]
错误:7 http://packages.ros.org/ros2/ubuntu focal InRelease
下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
正在读取软件包列表... 完成
W: GPG 错误:http://packages.ros.org/ros/ubuntu focal InRelease: 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
E: 仓库 “http://packages.ros.org/ros/ubuntu focal InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:http://packages.ros.org/ros2/ubuntu focal InRelease: 下列签名无效: EXPKEYSIG F42ED6FBAB17C654 Open Robotics info@osrfoundation.org
E: 仓库 “http://packages.ros.org/ros2/ubuntu focal InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 -
@3429494307 对的对的,一样的错误,这个是不是得等等国内的镜像站修复(?)
-
我也是这样,咋办啊
-
若密钥未更新且急需操作,可临时禁用签名验证:
sudo apt update --allow-insecure-repositories # 允许更新源
sudo apt install --allow-unauthenticated <包名> # 安装时忽略认证
问了deepseek,用了一下管用,可以试试 -
或者手动更新密钥
sudo apt-key del F42ED6FBAB17C654
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key | sudo tee /usr/share/keyrings/ros-archive-keyring.gpg > /dev/null
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt update -
@246942710 解决了,今天密钥更新了
pub (4)rsa4096/c1cf6e31e6bade8868b172b4f42ed6fbab17c654 2019-05-30T00:40:54Zuid Open Robotics info@osrfoundation.org
sig cert f42ed6fbab17c654 2025-04-30T12:39:34Z 2030-06-01T12:39:34Z ____________________ [selfsig]
sig cert f42ed6fbab17c654 2021-05-29T05:59:45Z 2025-06-01T05:59:45Z ____________________ [selfsig]
sig cert f42ed6fbab17c654 2019-05-30T00:40:54Z 2021-05-29T00:40:54Z ____________________ [selfsig]
用以下方式更新密钥
sudo apt-key del AB17C654 # 使用短ID(后8位)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654 -
@3429494307 已修复