-1

while installing ros i get the error

E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component) E: The list of sources could not be read

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

1

Running the following command will fix this issue:

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

Here is a bug report for the same.

Error404
  • 8,278
  • 3
  • 35
  • 60