Im not sure what to do

Asked by jordan

Whenever I try to open Add/Remove programs It wont let me for some reason and shows this message:

"Failed to check for installed and available applications

This is a major failure of you software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-getupdate' and sudo apt=get install-f'."

And there is also their is now a red circle with a white line appeared in the panel. This one says:

A unresolvable problem occurred while initializing package information. please report this bug against the update-manager' package and include the following error message:

'E:type`for` is not known on line 62 in source list /etc/apt/sources.list, E:The list of sources could not be read.'

If anyone knows what i can do to fix it or if i should report it to anyone it would be rely useful.

Thanks
Jordan

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gord Allott
Solved:
Last query:
Last reply:
Revision history for this message
Gord Allott (gordallott) said :
#1

please post the contents of the file /etc/apt/sources.list here:

Revision history for this message
jordan (jordan-young) said :
#2

i dont know what the contents are =/ I just installed Ubuntu today and this came up =/ I still dont know how to do anything in it rely so if there is away to find out the contents please could you let me know?

Revision history for this message
Gord Allott (gordallott) said :
#3

goto applications -> accessories -> text editor

then goto file and open in the text editor that opens. navigate to the directory /etc/apt/ and open the file sources.list
paste the contents here.

Revision history for this message
jordan (jordan-young) said :
#4

This what you were after?

# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-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://gb.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-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://gb.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-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://gb.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ intrepid-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 intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse

deb http://security.ubuntu.com/ubuntu/ intrepid-security restricted main multiverse universe
For Ubuntu Hardy (8.04):

Revision history for this message
Best Gord Allott (gordallott) said :
#5

the last line 'For Ubuntu Hardy (8.04):' needs to have a # infront of it,
open a terminal (applications -> accessories -> terminal) and type 'gksu gedit' in the terminal
then open the file /etc/apt/sources.list again
goto the last line in the file, it should say "For Ubuntu Hardy (8.04):" and replace it with "#For Ubuntu Hardy (8.04):" (without the quote marks),
now save the file

close the text editor and run the command 'sudo apt-get update' in a terminal. everything should be fixed now.

Revision history for this message
jordan (jordan-young) said :
#6

Thanks Gord Allott, that solved my question.