参考官网:http://wiki.ros.org/kinetic/Installation/Ubuntu
1.2 Setup your sources.list
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
1.3 Set up your keys
1. 由于从waiwang下载的原因,,需要设置代理终端,再下载即可
(此处需要daili,12333是代理软件http的端口号,将下面两句指令写入.bashrc中可在新终端使用)
【其他方式:(也许可行)参考:https://blog.csdn.net/weixin_43311920/article/details/114796748】
export http_proxy="http://127.0.0.1:12333"
export https_proxy="http://127.0.0.1:12333"
k@k-v-m:~$ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
OK
1.4
sudo apt-get update
1.5
sudo apt-get install ros-kinetic-desktop-full
1.6
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
1.7
sudo rosdep init
rosdep update
出现以下问题:
发现源网址可以ping通 所以加入以下网址的ip,再次运行即可:
sudo gedit /etc/hosts
199.232.28.133 raw.githubusercontent.com
151.101.228.133 raw.github.com
1.8
roscore
rosrun turtlesim turtlesim_node
成功: