Up ROS Noetic Ninjemys のインストール 作成: 2021-02-22
更新: 2021-02-22


  1. Setup 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'


  2. Setup keys
      $ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654


  3. Installation
      $ sudo apt update
      $ sudo apt install ros-noetic-desktop-full
      備考


  4. Environment setup
      $ vi ~/.bashrc
      最下行の下に,つぎの2行を書く:
      source /opt/ros/noetic/setup.bash
      source ~/catkin_ws/devel/setup.bash




    備考 (2021-03-01)
    ros-noetic-desktop-full のインストールは,つぎのメッセージで終了:
    E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libg/libgdata/libgdata-common_0.17.12-1_all.deb Undetermined Error [IP: 2001:67c:1360:8001::23 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    そこで,libgdata-common_0.17.12-1_all.deb を wget で取得:
    $ wget http://ports.ubuntu.com/ubuntu-ports/pool/main/libg/libgdata/libgdata-common_0.17.12-1_all.deb --2021-03-01 17:03:09-- http://ports.ubuntu.com/ubuntu-ports/pool/main/libg/libgdata/libgdata-common_0.17.12-1_all.deb Resolving ports.ubuntu.com (ports.ubuntu.com)... 2001:67c:1360:8001::23, 2001:67c:1360:8001::24, 91.189.88.142, ... Connecting to ports.ubuntu.com (ports.ubuntu.com)| 2001:67c:1360:8001::23|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3392 (3.3K) [application/x-debian-package] Saving to: ‘libgdata-common_0.17.12-1_all.deb’ libgdata-common_0.17. 100%[======================>] 3.31K --.-KB/s in 0.001s 2021-03-01 17:03:10 (3.25 MB/s) - ‘libgdata-common_0.17.12-1_all.deb’ saved [3392/3392]
    そして改めて, $ sudo apt install ros-noetic-desktop-full 無事終了