This question already has an answer here:
I am running lubuntu (actually kodibuntu) as my server. whilst attempting to add a package there was an error in the sourceslist. config rendering synaptic package manager useless.
I cant change the file as a have no text editor installed (and no way to install one it seems); (I really only have chrome browser that is gui).
What is the simplest way to either edit the file in the command line or remove it. I have enabled the root account but am not 100% confident that i will not do something stupid such as make root the owner of my home directory without having gksu nautilus installed.
is there a command to undo a change in sources list? I could boot a live cd and edit the file but again this would have me tapping commands in as root and probably break the whole system.
if somebody could point me in the right direction it would be appreciated, even just some way to install a text editor. would nano be installed? thanks