My package manager will not run

Asked by jbapt

This is the error when I try to run my package manager.

E: Type 'sudo' is not known on line 1 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.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
arochester
Solved:
Last query:
Last reply:
Revision history for this message
Best arochester (arochester) said :
#1

The first line of your sources list is wrong. You need to make the line ineffective.

In a Terminal input: gksudo gedit /etc/apt/sources.list

Put a # at the beginning of the first line.

Save gedit. Exit gedit. Try again

Revision history for this message
zvacet (ivicakolic) said :
#2

Advice that arochester give you is good but if you want to correct your source list type in terminal

cat /etc/apt/sources.list

and post output here so we can correct it.This is optional because with arochester tip you will be fine.

Revision history for this message
jbapt (jbapt) said :
#3

Thanks arochester, that solved my question.

Revision history for this message
jbapt (jbapt) said :
#4

After doing the the following, "gksudo gedit /etc/apt/sources.list

Put a # at the beginning of the first line.

Save gedit. Exit gedit. Try again"

I received the following error

E: Type 'sudo' is not known on line 51 in source list /etc/apt/sources.list

To correct it, I deleted the last lines which read,
sudo apt-key add -
sudo apt-get update

Everything works fine now. thx goes to arochester and zvacet