$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

GNU/Linux Ubuntu Add ROS 2 Repository Guide

November 17, 2021 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Adding ROS 2 Repo Guide

Hi! The Tutorial shows you Step-by-Step How to Add ROS 2 Repository in Ubuntu-Based GNU/Linux OSes.

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

So this Repo Setup is Valid for All the Ubuntu-based Distros 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
How to Add ROS Repository for Ubuntu-based Systems - Featured
  1. 1. Launching Terminal

    How to QuickStart 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 22.04/23.10 based Desktops, and so also for: Mint 21.x, Elementary OS 7.x, Zorin OS 17.x, Bodhi 7.x, Lite 6.x… Play:

    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
    So for Ubuntu 20.04/21.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 Repo Sources

    Next to Refresh Ubuntu Apt Repository Sources
    Play:

    sudo apt update
    But in case of Not found issue for the Non LTS Releases then you should try to amend the Repo Manualli like:
    sudo nano /etc/apt/sources.list.d/ros2.list
    And setting to the nearest LTS one. So for instance on Ubuntu 21.10 try to amend “impish” in “jammy”!
    Last, Update the Apt Sources again.
  7. 7. Installing ROS on Ubuntu

    Finally, to Install ROS 2 for Ubuntu

    ROS 2 Ubuntu Installation Guide

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