Configure your Debian repositories
Configure your Debian repositories to allow "contrib" and "non-free". You can follow the Debian guide for instructions on doing this.
Setup your sources.list
Setup your computer to accept software from packages.ros.org. ROS Melodic ONLY supports Stretch (Debian 9) for debian packages.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Source Debs are also available |
Set up your keys
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654