Getting and ROS error when using sudo apt commad
I am getting following error when using sudo apt commands in Ubuntu 20.04.2 LTS
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros2.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros2.list (Component)
E: The list of sources could not be read.
Please add the output of
cat /etc/apt/sources.list.d/ros2.list
to your question.Use the
edit
button/link to edit it.I am having the same problem