小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
install (foxy)ROS2 failed with error
-
Run CMD Task:[sudo apt-cache search aptitude ]
[-]Result:successTraceback (most recent call last):
File "/tmp/fishinstall/install.py", line 123, in <module>
main()
File "/tmp/fishinstall/install.py", line 115, in main
run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/","."))
File "/tmp/fishinstall/tools/base.py", line 1297, in run_tool_file
if tool.run()==False: return False
File "/tmp/fishinstall/tools/tool_install_ros.py", line 390, in run
self.install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 383, in install_ros
ros_version = self.choose_and_install_ros()
File "/tmp/fishinstall/tools/tool_install_ros.py", line 324, in choose_and_install_ros
AptUtils.install_pkg('aptitude')
File "/tmp/fishinstall/tools/base.py", line 1236, in install_pkg
for key in dic.keys():
AttributeError: 'NoneType' object has no attribute 'keys' -
@2336400498 检查sudo apt update 结果是不是失败的
-
@小鱼 $ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Ign:2 http://packages.ros.org/ros/ubuntu jammy InRelease
Err:3 http://packages.ros.org/ros/ubuntu jammy Release
404 Not Found [IP: 64.50.233.100 80]
Hit:4 https://packages.microsoft.com/repos/code stable InRelease
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:6 http://ca.archive.ubuntu.com/ubuntu jammy InRelease
Hit:7 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:8 http://ca.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:9 http://ca.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:10 http://apt.puppet.com jammy InRelease
Reading package lists... Done
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file.
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. -
@573983271 在 install (foxy)ROS2 failed with error 中说:
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file.
重新跑下一键换源试试