cant update

Asked by t477 on 2010-03-20

I am using ubuntu 9.10 and cant update or install or remove programs i get this massedge
"Could not initialize the package information

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:Type 'sudo' is not known on line 57 in source list /etc/apt/sources.list, E:The list of sources could not be read.'"

I have tried a lot and am getting no ware how can i fix this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
dnairb
Solved:
2010-03-21
Last query:
2010-03-21
Last reply:
2010-03-20
Best dnairb (dnairb) said : #1

The problem lies in the file /etc/apt/sources.list, specifically the word "sudo" appears on line 57.

To fix this:

Open a terminal (Applications --> Accessories --> Terminal) and type gksudo gedit /etc/apt/sources.list and enter your password.

To view line numbers Edit --> Preferences --> Display Line Numberss

On line 57, find the word "sudo" and delete it.

Save the file, close the text editor and try updating again.

t477 (tomsfries477) said : #2

I did this and it did not help.

To fix this:

Open a terminal (Applications --> Accessories --> Terminal) and type
gksudo gedit /etc/apt/sources.list and enter your password.

To view line numbers Edit --> Preferences --> Display Line Numberss

On line 57, find the word "sudo" and delete it.

Save the file, close the text editor and try updating again.

this did not fix my problem i still get the same messedge. what ells can i try?
pleas help me if you can i dont realy want to reinstall i have already done that several times this mouth for different problems

dnairb (dnairb) said : #3

OK. Open the /etc/apt/sources.list as before, and copy the output here. We can check that the file is correct.

t477 (tomsfries477) said : #4

deb http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42 feisty avant-window-navigator # deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ua.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ua.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ua.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic universe
deb http://ua.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ua.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://ua.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ua.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://ua.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner

deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
gedit /etc/apt/sources.list
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
sudo apt-get update
sudo apt-get install chromium-browser

dnairb (dnairb) said : #5

You need to deleted the last few lines of the file.
So, as before:

Open a terminal (Applications --> Accessories --> Terminal) and type gksudo gedit /etc/apt/sources.list and enter your password.

Deleted the following at the end of the file:

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
sudo apt-get update
sudo apt-get install chromium-browser

Save the file, close the text editor and try updating again.

dnairb (dnairb) said : #6

Update:

The parts to delete are:

gedit /etc/apt/sources.list
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
sudo apt-get update
sudo apt-get install chromium-browser

t477 (tomsfries477) said : #7

Thanks its final working know.That fixed it i am trying to figure Linux out but i do like it and plan on staying with it thanks for your Help!!