GNU/Linux Ubuntu Add ROS 2 Repository Guide

November 17, 2021 | By the+gnu+linux+evangelist | Filed in: Tutorial.

GNU/Linux Ubuntu Adding ROS 2 Repository Guide

You Are Welcome! The Tutorial Shows You Step-by-Step How to Add ROS 2 Repository in Ubuntu GNU/Linux Based OSes.

And ROS for Ubuntu is a flexible Framework for writing Robot Software.

So this Repo Setup is Valid for All the Ubuntu Based Platforms like:

  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Pop!_OS
  • Voyager
  • Trisquel
  • LXLE
  • feren OS
  • Peppermint
  • Q4OS
  • Linux Ultimate Edition
GNU/Linux Ubuntu Add ROS 2 Repository Guide
  1. 1. Launching Terminal

    How to Quick-Start with Command Line on Ubuntu

    Command Line Ubuntu QuickStart Guide
  2. 2. Setting up Locale

    Now to make sure you have a Locale that Supports UTF-8
    First, Check it:

    locale
    If the Output Do Not contains “UTF-8“, then Execute these Command Series:

    sudo apt update && sudo apt install locales
    sudo locale-gen en_US en_US.UTF-8
    sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
    export LANG=en_US.UTF-8
    Last, verify it again with:
    locale
  3. 3. Adding Universe Repo

    First, to Check if it’s already Enabled with:

    apt-cache policy | grep universe
    If you Don’t see an Output line containing “universe“, then follow the below Instructions.
    Then to Add Universe Repository for Ubuntu
    Execute one by one:

    sudo apt update
    sudo apt install software-properties-common
    sudo add-apt-repository universe
    sudo apt update
  4. 4. Adding ROS Repo

    Then to Add ROS Repository for Ubuntu
    For Ubuntu 20.04+ based Desktops, and so also for: Mint 20.x, Elementary OS 6.x, Zorin OS 16.x, Bodhi 6.x, Lite 5.x… Run:

    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
    Instead, for Ubuntu 18.04, Mint 19.x, Elementary OS 5.x, Zorin OS 15.x, Bodhi 5.x, Lite 4.x… Play:
    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
  5. 5. Adding ROS GPG Key

    Again to Add ROS GPG Signature Key
    Simply play:

    sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg
    In case, to Install cURL:
    sudo apt install curl
  6. 6. Refreshing Ubuntu Sources

    Next to Refresh Ubuntu Apt Repo Sources
    Play:

    sudo apt update
    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress