Package Manager not working

Asked by Chuck

I have muddled to find an answer among previous problems. I am ready to give up and just erase and re-install Ubuntu as I may have other minor problems. Is this information enough for a solution? Would it be easier to just re-install Ubuntu on my dual boot (win xp & ubuntu) or fix this mess I have?

I was at http://knowledge76.com/index.php/Installing_Restricted_Formats trying to install without any luck.

I was trying to:
sudo apt-get install libdvdcss2 w32codecs

E: Line 59 too long in source list /etc/apt/sources.list.
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.I was trying to:
sudo apt-get install libdvdcss2 w32codecs

E: Line 59 too long in source list /etc/apt/sources.list.
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

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:Line 59 too long in source list /etc/apt/sources.list., E:The list of sources could not be read.'

another message
E: Line 59 too long in source list /etc/apt/sources.list.
E: Unable to lock the list directory

I tried:
chuck@ubunt23:~$ sudo apt-get install -f
sudo: unable to resolve host ubunt23
[sudo] password for chuck:
E: Line 59 too long in source list /etc/apt/sources.list.
E: The list of sources could not be read.
chuck@ubunt23:~$

I tried:
chuck@ubunt23:~$ sudo dpkg --configure -a
sudo: unable to resolve host ubunt23
chuck@ubunt23:~$

I tried:
chuck@ubunt23:~$ aptitude -f remove
E: Line 59 too long in source list /etc/apt/sources.list.
E: Line 59 too long in source list /etc/apt/sources.list.
E: The list of sources could not be read.

Gimme your best shot and Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Chuck
Solved:
Last query:
Last reply:
Revision history for this message
Chuck (chux-industryinet) said :
#1

Let me add-- I went to /etc/apt/sources.list and tried to delete the bottom of the file but didn't have the darn authority to do it. I guess I was not at "root"??? How do I get There??

Revision history for this message
Ariel Cabral (acabral1961) said :
#2

using: sudo <the command>, for you case:
sudo gedit /etc/apt/sources.list
This command gives you root privileges, use your password when asked.
Hope this help, let me know.

Revision history for this message
Ariel Cabral (acabral1961) said :
#3

Also you can use the "gksu" command. i.e. gksu gedit /etc/apt/sources.list
Hope this help, let me know.

Revision history for this message
Chuck (chux-industryinet) said :
#4

Your help solved the problem. I used gksu gedit /etc/apt/sources.list. The sources.list was opened and I deleted the bottom of the list that was what I think was corrupted. I saved and closed out of the file. I went to Add/Remove. It said information was out of date and refreshed the list, I think. It seems fine and is working. So I wish to think you and suggest you'll hear from me again as I learn by "pushing" but I really don't "doodley" about all this. Thanks.

Problem Solved