Can't open Synaptic Package Manager

Asked by dsiddens

Binary package hint: update-manager

E:Malformed line 176 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read.
Go to the repository dialog to correct the problem. E:_Cache->open () failed, please report.

Hardy 8.04; Kernel Linux 2.6.24-19-generic; GNOME 2.22.2
Processor AMD Turion 64 Mobile Technology Ml-44

Question information

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

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. The error you're seeing is caused by a syntax problem in your /etc/apt/sources.list on line 176. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs.

In the meantime, please post your /etc/apt/sources.list in the support tracker for further assistance

Thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Please copy and paste the contents of your /etc/apt/sources.list here.

Thank you

Revision history for this message
Steven Rose (steveydoteu) said :
#3

As requested above post your /etc/apt/sources.list

It it more likely than not something like a simple typing error on line 176 which is not allowing it to parse the file correctly.

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#4

Hello

You have added some incorrect lines to your file /etc/apt/sources.list, which probably should have been executed in a terminal instead.
To resolve this you need to edit the file /etc/apt/sources.list and remove the referred line(s) that should not be there.
As a guide, sources.list should only contain lines that start "deb", "deb-src", "cdrom" or a "#" symbol, anything else is wrong and should not be there. Please refer to the error message, which should contain a line number.
To edit the sources.list file, press ALT+F2 at the Ubuntu desktop and then type the following command in the box, depending on your Ubuntu flavour:
For Ubuntu:
gksudo gedit /etc/apt/sources.list
For Kubuntu:
kdesudo kwrite /etc/apt/sources.list
Exactly as you see it there, then press enter/return. Enter your password when prompted and edit the file in the editor as advised above. You should then save and quit the editor.
The program which reads /etc/apt/sources.list should work again.

For ubuntu 7.10 please paste the below:

#deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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 gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse

For ubuntu hardy (8.04 paste the below)

## a “general” sources.list for Hardy Heron; all sources are uncommented.

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

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

## Major bug fix updates produced after the final release of the
## distribution.

deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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

## universe WILL NOT receive any review or updates from the Ubuntu security
## team.

deb http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe

deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy-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://archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy multiverse

deb http://archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-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://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted

Save the source list

Run the update manager

gksu "update-manager -c"

Regards

Bhavani Shankar.

Revision history for this message
dsiddens (angel03) said :
#5

from /etc/apt/sources.list

deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release amd64 (20080423)]/ hardy
main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:

## 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.
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:

## 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://us.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner

# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ hardy main universe restricted
multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main
multiverse restricted
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe main
multiverse restricted
deb http://us.archive.ubuntu.com/ubuntu/ hardy-proposed universe main
multiverse restricted

deb http://ppa.launchpad.net/exaile-devel/ubuntu hardy main

deb-src http://archive.ubuntu.com/ubuntu hardy-proposed universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy-security universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hardy-updates universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy restricted main multiverse
universe
deb http://archive.ubuntu.com/ubuntu/ hardy-backports restricted main
multiverse universe
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed restricted main
multiverse universe
deb http://archive.ubuntu.com/ubuntu/ hardy-security restricted main
multiverse universe
deb http://archive.ubuntu.com/ubuntu/ hardy-updates restricted main
multiverse universe
deb http://asher256-repository.tuxfamily.org ubuntu french
deb http://cl.naist.jp/~eric-n/ubuntu-nlp hardy all
# deb-src http://cl.naist.jp/~eric-n/ubuntu-nlp hardy all
deb http://deb.opera.com/opera etch non-free
deb http://debian.geole.info/ etch main contrib non-free
# deb-src http://debian.geole.info/ etch main contrib non-free
deb http://debian.geole.info/ etch-backports main contrib non-free
# deb-src http://debian.geole.info/ etch-backports main contrib non-free
deb http://dl.google.com/linux/deb/ stable non-free
deb http://dl.google.com/linux/deb/ testing non-free
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://download.tuxfamily.org/3v1deb feisty 3v1n0 suspend2
deb-src http://download.tuxfamily.org/3v1deb feisty 3v1n0
deb http://download.tuxfamily.org/geubuntu/ gutsy/
deb http://e17.dunnewind.net/ubuntu gutsy e17
deb http://e17.dunnewind.net/ubuntu hardy e17
# deb-src http://e17.dunnewind.net/ubuntu hardy e17
# deb
http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu
feisty/
deb http://getswiftfox.com/builds/debian unstable non-free
deb http://lprod.org/deb/hardy/ ./
# deb-src http://lprod.org/deb/hardy/ ./
deb http://mi.mirror.garr.it/ubuntu hardy-backports main restricted
universe multiverse
# deb-src http://mi.mirror.garr.it/ubuntu hardy-backports main
restricted universe multiverse
deb http://morgoth.free.fr/ubuntu hardy-backports main
# deb-src http://morgoth.free.fr/ubuntu hardy-backports main
deb http://ppa.launchpad.net/do-core/ubuntu hardy main
deb http://ppa.launchpad.net/gilir/ubuntu hardy main universe
deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main
deb http://ppa.launchpad.net/mvo/ubuntu hardy main
deb http://snapshots.ekiga.net/debian/ sid main
deb http://ubuntu.davromaniak.eu hardy-depomaniak all
# deb-src http://ubuntu.davromaniak.eu hardy-depomaniak all
deb http://us.ubuntu.cafuego.net/dists/hardy-cafuego/ hardy-cafuego #Cafuego
deb http://wine.budgetdedicated.com/apt hardy main
# deb-src http://wine.budgetdedicated.com/apt hardy main

****************************
marcobra wrote:
> Your question #38318 on update-manager in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/38318
>
> Status: Open => Needs information
>
> marcobra requested for more information:
> Please copy and paste the contents of your /etc/apt/sources.list here.
>
> Thank you
>
>

Revision history for this message
dsiddens (angel03) said :
#6

Thanks Bhavani Shankar, that solved my question.