Installing ROS Kinetic on Ubuntu 16.04: apt-get update fail [closed]

asked 2019-10-04 06:25:12 -0500

czjczjczj gravatar image

updated 2019-10-04 10:02:57 -0500

gvdhoorn gravatar image

hello,

when I tired installing ros, after I typed :"sudo apt-get update", I got the error below:
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (URI parse)
E: The list of sources could not be read.

Does anyone know how to solve it? Thanks for any help.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by czjczjczj
close date 2019-10-04 06:40:48.873471

Comments

Please see whether this is a duplicate of #q311593, #q322782 and/or #q198156 (note those Q&As are about Ubuntu Bionic, but everything there works for Xenial as well).

gvdhoorn gravatar imagegvdhoorn ( 2019-10-04 06:27:12 -0500 )edit

the suggestion in #q311593 works for me, which is

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

thanks.

czjczjczj gravatar imageczjczjczj ( 2019-10-04 06:40:03 -0500 )edit