ROS2 foxy版本安装指南(ARM64架构系统,Ubuntu20.04)

系统条件

arm 64
Ubuntu20.04
卡了我一天!服了。。。
设备是NVIDIA Jetson 套件,是arm64系统的,所以网上的帖子没一个有用的,对我来说就是垃圾。
上来先写明系统条件,有几大镜像源,官方的,国内清华源,阿里的,中科大的等。搜索就能找到,注意和自己的系统/版本匹配!!!

遇坑:

E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/main/binary-amd64/Packages  404  Not Found [IP: 185.125.190.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

官方的源为啥会出现此问题??binary-amd64为何会没有??
不过回想起来,我对我的一番操作也是无语,居然不仔细思考一下,因为搜索这个问题的时候,基本都是让在源那里加[arch=amd64]
,依然会报错!你为啥不仔细思考一下呢??都说了没有amd64的包,还加[arch=amd64]这玩意管用?你是arm64的,所以应该换成[arch=arm64]啊!

# 默认注释了源码仓库,如有需要可自行取消注释
deb [arch=arm64] https://mirrors.ustc.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal main main restricted universe multiverse
deb [arch=arm64] https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb [arch=arm64] https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb [arch=arm64] https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu-ports/ focal-proposed main restricted universe multiverse

这是中科大的源,前面加上[arch=arm64],其中ubuntu-ports表示是arm架构的。
终于不报错了,第一步就卡了半天,无语。。。
这可是第一步

sudo apt update && sudo apt install locales

这步不行,后面都是白搭!

必须记录下来,顺便喷一喷。

后面的安装步骤按照官网教程一步一步来就行了,祝成功!

你可能感兴趣的:(ubuntu,linux,运维,ROS2)