Ubuntu mate 16.04安装ROS

官方文档有详细的安装步骤:
http://wiki.ros.org/kinetic/Installation/Ubuntu
配置Ubuntu属性如下:
https://help.ubuntu.com/community/Repositories/Ubuntu
使用vi 编辑/etc/apt/sourse.list,快速掌握VI的使用见网址:
http://c.biancheng.net/cpp/html/2735.html
使用的源如下,有些不能验证通过
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.neusoft.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.cqu.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.zju.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main contrib non-free rpi
deb http://mirrors.sohu.com/raspbian/raspbian/ stretch main contrib non-free rpi

在更新是提示无法获得锁,使用ps -aux |grep apt 查看相关进程
sudo kill 进程,再次sudo apt update成功
sudo apt upgrade
再次根据官方文档安装Ros

http://wiki.ros.org/kinetic/Installation/Ubuntu

总结如下:
sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
sudo rosdep init
rosdep update
echo “source /opt/ros/kinetic/setup.bash” >> ~/.bashrc
source ~/.bashrc

创建交换分区:
https://www.jianshu.com/p/36a960470b35

你可能感兴趣的:(Ros,Raspberry,Pi)