0. 前提条件
1)配置国内的apt镜像源
sources.list配置:
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
sources.list.d里的raspi.list配置
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ buster main
2)我是PC上开了SSR(为了ros的国外源能安装),用网线和树莓派连接,通过ssh操作,树莓派使用了proxy代理的是PC上的端
1. 安装ROS的仓库
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-late
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key
C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update
sudo apt-get upgrade
2. 安装Bootstrap依赖
sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstal