小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
第一步输入wget运行失败: failed: Temporary failure in name resolution. wget: unable to resolve host address ‘fishros.com’
-
nvidia@tegra-ubuntu:~$ wget http://fishros.com/install -O fishros && . fishros
--2022-04-21 13:18:09-- http://fishros.com/install
Resolving fishros.com (fishros.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘fishros.com’尝试修改 /etc/resolv.conf 中dns为:
nameserver 114.114.114.114
nameserver 1.2.4.8 仍然失败环境:linux远程ssh nvidia orin域控
主机环境:ubuntu20.04
宿主机orin环境:Linux tegra-ubuntu 5.10.104-tegra #32 SMP PREEMPT Wed Dec 7 12:05:38 CST 2022 aarch64 aarch64 aarch64 GNU/Linux -
@1130458020 电脑可以正常联网吗?ping baidu.com 试试
-
@小鱼 目前出现了四次换源失败,参考以前帖子,我的报错并没有出现类似NO_PUBKEY F42ED6FBAB17C654\ 所以无法通过sudo apt-key 这个指令添加,我该如何去做呢?当前系统架构为[arm64:focal] ubuntu20.04
整体报错代码如下:
[1]:仅更换系统源
[2]:更换系统源并清理第三方源
[0]:quit
请输入[]内的数字以选择:2
Run CMD Task:[sudo rm -rf /etc/apt/sources.list]
[-]Result:success
删除一个资源文件
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d]
[-]Result:success
Run CMD Task:[sudo mkdir -p /etc/apt/sources.list.d]
[-]Result:successRun CMD Task:[dpkg --print-architecture]
[-]Result:success
检测到当前系统架构为[arm64:focal],正在为你更换对应源..
替换完成,尝试第一次更新....
Run CMD Task:[sudo apt update]
[|] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [/] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [|] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [/] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [-]Result:code:100更新失败,开始更换导入方式并三次尝试...
Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9]
[]Executing: /tmp/apt-key-gpghome.GiSvGiPAPJ/gpg.1.sh --keyserver keyserver.ubuntu.com [-]Result:code:2Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517]
[]Executing: /tmp/apt-key-gpghome.JDBjkz4EkV/gpg.1.sh --keyserver keyserver.ubuntu.com [-]Result:code:2Run CMD Task:[sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853]
[]Executing: /tmp/apt-key-gpghome.vgxPT0WZJM/gpg.1.sh --keyserver keyserver.ubuntu.com [-]Result:code:2Run CMD Task:[apt-get install debian-keyring debian-archive-keyring]
[-]Result:success e and 0 not upgraded.to-xinerama-deve:Run CMD Task:[apt-key update]
[|]gpg: key 3B4FE6ACC0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ub[/]gpg: key D94AA3F0EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubu[|]gpg: key 871920D1991BC93C: "Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ub[-]Result:successRun CMD Task:[sudo apt update]
[|] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [/] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [|] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [/] Cannot initiate the connection to mirrors.ustc.edu.cn:443 (2001:da8:d800:95::110). [-]Result:code:100如果出现问题NO_PUBKEY XXXXXXXX,请手动运行添加指令:apt-key adv --keyserver keyserver.ubuntu.com --recv-keys XXXXXXXX
如:error: NO_PUBKEY 0E98404D386FA1D9
运行指令:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9镜像修复完成.....
Run CMD Task:[sudo apt update]
[-]Result:code:100 orts focal-security InRelease [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 52min 33s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 54min 2s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 51min 19s). Updates for this repository will not be applied.\n']
Run CMD Task:[dpkg --print-architecture]
[-]Result:success根据您的系统,为您推荐安装源为['http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/', 'http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/']
Run CMD Task:[sudo apt update]
[/] Cannot initiate the connection to mirrors.tuna.tsinghua.edu.cn:80 (2402:f000:1:400:[|] Cannot initiate the connection to mirrors.tuna.tsinghua.edu.cn:80 (2402:f000:1:400:[-]Result:code:100 orts focal-security InRelease [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu focal Release' does not have a Release file.\n", "E: The repository 'http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu focal Release' does not have a Release file.\n", 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 52min 19s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 53min 48s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 51min 5s). Updates for this repository will not be applied.\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic n[-]Result:success figure, nodelets, and pluginlib.换源后更新失败,第二次开始切换源,尝试更换ROS2源为华为源!
根据您的系统,为您推荐安装源为['https://repo.huaweicloud.com/ros/ubuntu/', 'https://repo.huaweicloud.com/ros2/ubuntu/']
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
[-]Result:successRun CMD Task:[sudo apt update]
[-]Result:code:100 orts focal-security InRelease [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 52min 5s). Updates for this repository will not be applied.\n', 'E: Release file for https://repo.huaweicloud.com/ros2/ubuntu/dists/focal/InRelease is not valid yet (invalid for another 286d 11h 5min 57s). Updates for this repository will not be applied.\n', 'E: Release file for https://repo.huaweicloud.com/ros/ubuntu/dists/focal/Release is not valid yet (invalid for another 286d 11h 6min 10s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 53min 33s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 50min 51s). Updates for this repository will not be applied.\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic n[-]Result:success figure, nodelets, and pluginlib.换源后更新失败,第三次开始切换源,尝试更换ROS2源为ROS2官方源!
根据您的系统,为您推荐安装源为['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]
[-]Result:successRun CMD Task:[sudo apt update]
[/] Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 [|] Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 [-]Result:code:100 orts focal-security InRelease [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'http://packages.ros.org/ros/ubuntu focal Release' no longer has a Release file.\n", "E: The repository 'http://packages.ros.org/ros2/ubuntu focal Release' does not have a Release file.\n", 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 51min 50s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 53min 19s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 50min 36s). Updates for this repository will not be applied.\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-end-effector - End-Effector package: provides a ROS-based set of standard []ros-noetic-mqtt-client - Provides a nodelet that enables connected ROS-based devices [|]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic n[-]Result:success figure, nodelets, and pluginlib.换源后更新失败,第四次开始切换源,尝试使用https-ROS2官方源~!
根据您的系统,为您推荐安装源为['https://packages.ros.org/ros/ubuntu/', 'https://packages.ros.org/ros2/ubuntu/']
Run CMD Task:[sudo rm -rf /etc/apt/sources.list.d/ros-fish.list]
[-]Result:successRun CMD Task:[sudo apt update]
[/] Cannot initiate the connection to packages.ros.org:443 (2605:bc80:3010::134). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:44[|] Cannot initiate the connection to packages.ros.org:443 (2605:bc80:3010::134). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:44[-]Result:code:100 orts focal-security InRelease [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', "E: The repository 'https://packages.ros.org/ros/ubuntu focal Release' no longer has a Release file.\n", "E: The repository 'https://packages.ros.org/ros2/ubuntu focal Release' does not have a Release file.\n", 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 51min 35s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 53min 4s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 50min 21s). Updates for this repository will not be applied.\n']
Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-end-effector - End-Effector package: provides a ROS-based set of standard []ros-noetic-mqtt-client - Provides a nodelet that enables connected ROS-based devices [|]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic n[-]Result:success figure, nodelets, and pluginlib.Run CMD Task:[sudo apt update]
[-]Result:code:100 focal InRelease [4,685 B]ase [114 kB]]apt更新失败,后续程序可能会继续尝试...,['\n', 'WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n', '\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 51min 30s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 290d 0h 52min 59s). Updates for this repository will not be applied.\n', 'E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 290d 0h 50min 16s). Updates for this repository will not be applied.\n', 'E: Release file for https://packages.ros.org/ros/ubuntu/dists/focal/InRelease is not valid yet (invalid for another 286d 11h 5min 34s). Updates for this repository will not be applied.\n', 'E: Release file for https://packages.ros.org/ros2/ubuntu/dists/focal/InRelease is not valid yet (invalid for another 286d 11h 5min 21s). Updates for this repository will not be applied.\n']
四次换源后都失败了,请及时联系小鱼获取解决方案并处理!
Run CMD Task:[sudo apt-cache search ros-base ]
[/]ros-noetic-end-effector - End-Effector package: provides a ROS-based set of standard []ros-noetic-mqtt-client - Provides a nodelet that enables connected ROS-based devices [|]ros-noetic-ros-base - A metapackage which extends ros_core and includes other basic n[-]Result:success figure, nodelets, and pluginlib. -
@1130458020 这样尝试
1.手动更换系统源-换成清华源试试
2.使用一键安装,选择不清理系统源,仅更换帝三王源主要错误可能是中科大的ubuntu-ports源问题
@1130458020 在 第一步输入wget运行失败: failed: Temporary failure in name resolution. wget: unable to resolve host address ‘fishros.com’ 中说:
E: Release file for https://mirrors.ustc.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 290d 0h 52min 19s)
-
-
@小鱼 qing hua yuan :
默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb-src http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
预发布软件源,不建议启用
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse