when i typed sudo apt-get update in terminal, it gave me this error:
E: Malformed line 1 in source list /etc/apt/sources.list.d/gazebo-latest.list (dist)
E: The list of sources could not be read.
I looked into gazebo-latest.list file. there is a line
deb http://packages.osrfoundation.org/gazebo/ubuntu quantal main
How can i fix this problem
quantal
there should betrusty
in yourgazebo-latest.list
file. It represent the version of ubuntu you are using while resynchronizing your software index with server (like when you usesudo apt-get update
). Edit this line to look likedeb http://packages.osrfoundation.org/gazebo/ubuntu/ trusty main
. It should work. Also mention that you are using 14.04 in your question by editing it, so that it will not be marked as duplicate. – g_p Jan 22 '15 at 11:04sudo nano /etc/apt/sources.list.d/gazebo-latest.list
to open this file in editor. Edit it and press Ctrl+o to save and Ctrl+x to exit. – g_p Jan 23 '15 at 01:51