How do I add a repository Ubuntu Bionic
My output of
cat /etc/apt/sources.list.d/ros-latest.list
is
deb http:packages.ros.org/ros/ubuntu main
So I want to replace this as its missing the distribution name.
Searching at https://repogen.simplylinux.ch/generate.php I am shown the following:
###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ main
deb-src http://us.archive.ubuntu.com/ubuntu/ main
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ -security main
deb-src http://us.archive.ubuntu.com/ubuntu/ -security main
My question is: How do I replace my malformed repository with the one I found at the repogen website?
Thank you
Is
a typo? It seems to be missing the
//
betweenhttp:
andpackages.ros.org/..
.I wouldn 't use repogen for this: it seems to be slightly out-of-date (only lists Bionic (alpha 2)), it doesn't help you configure the ROS repositories and seems to be more geared towards setting up the main
sources.list
. For ROS you'd use an add-on file (ros-latest.list
) which is not part ofsources.list
, but placed in/etc/apt/sources.list.d/
(which is a directory, not a file).