PDA

View Full Version : [ubuntu] broke my sources.list



Bluestars
August 8th, 2010, 12:16 PM
I was trying to install Tor and deleted a couple lines out of the sources.list. I think I may have deleted something I wasn't supposed to. When I try to run the Update Manager I get "An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: 'E:Malformed line 56 in source list /etc/apt/sources.list (dist), E:The list of sources could not be read.'" How can I fix this?

Nick_Jinn
August 8th, 2010, 12:18 PM
Did you enable the archive repositories? You dont need those. Try uninstalling them.

Hopefully thats it.

xoomer.ap
August 8th, 2010, 12:41 PM
What in line #56 of this file?

Bluestars
August 8th, 2010, 12:49 PM
No, I don't have the archives enabled. How do I tell which line is 56? When i gedit /etc/apt/sources.list none of the lines are numbered. Is there a way to set it to show numbering? Sorry I'm a noob. If you would like I could post everything it lists.

xoomer.ap
August 8th, 2010, 12:55 PM
Sorry, I'm not familiar with GEdit, try to activate numbering in options...
Anyway, count up lines in mind, if you want... ;)

oldos2er
August 8th, 2010, 06:06 PM
In gedit, Ctrl-I then type in 56.

Bluestars
August 8th, 2010, 09:14 PM
I rebooted and now my internet doesn't connect on Ubuntu. I had to get on Windows partition to post this. line 56 is deb http://deb.torproject.org/torproject.org/dists/lucid/main/

xoomer.ap
August 8th, 2010, 10:00 PM
Try to insert commenting symbol "#" in the begin of line:

# deb http://deb.torproject.org/torproject...ts/lucid/main/ (http://deb.torproject.org/torproject.org/dists/lucid/main/)
then try:

sudo apt-get update

oldos2er
August 8th, 2010, 11:33 PM
That line should be deb http://deb.torproject.org/torproject.org lucid main

Bluestars
August 10th, 2010, 12:39 AM
Thanks! It seems adding the # fixed the problem. How would I now go about getting Tor?

oldos2er
August 10th, 2010, 01:17 AM
sudo apt-get update && sudo apt-get install tor

https://help.ubuntu.com/community/Tor