Wednesday, January 27, 2016

command line - how to edit (or delete) sources list in commandline (no text editor, cannot install any new packages on limeted install)

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

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...