synaptic problem

Asked by Eihab Abdelmagid

When I try to start Synaptic, I got this message ''E: Type ‘“deb’ is not known on line 57 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.''
Could anyone help?

Question information

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

System -> Administration -> Software Sources
Choose all the checkboxes under Downloadable from Internet and CLOSE it.

Now invoke Synaptic Package manager. If you still get the same error, please paste the contents of /etc/apt/sources.list

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#2

eihab@eihab-desktop:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
eihab@eihab-desktop:~$

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

Did you try adding software sources as i mentioned above?
Please try that out first. Then launch Synaptic.

If you get the error again even after that, please open /etc/apt/sources.list in gedit and copy paste here all the lines which dont start with a #

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#4

hi metallicatony
I did as you told me and got the same message;
eihab@eihab-desktop:~$ /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
eihab@eihab-desktop:~$

Revision history for this message
metallicatony (metallicatony) said :
#5

Hi.. if you type /etc/apt/sources.list and press enter in the bash prompt.. clearly you will get the error what you have got.
Please paste the CONTENTS of the file /etc/apt/sources.list
Use a editor (eg: gedit) and open the file. Copy the contents and paste it here please.

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#6

Hi there,
I got this as well;
E: Type ‘“deb’ is not known on line 53 in source list /etc/apt/sources.list
E: Unable to lock the list directory

E: Type ‘“deb’ is not known on line 53 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.

Revision history for this message
metallicatony (metallicatony) said :
#7

Hi..
Until unless you paste the contents of /etc/apt/sources.list file here, no one would be able to help you out. Please do that. I'm sorry to tell this.

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#8

Hi I got this ;
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ gutsy main restricted #Added by software-properties
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates restricted main multiverse universe #Added by software-properties

## 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://gb.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://gb.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://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://gb.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://gb.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://gb.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 restricted main multiverse universe #Added by software-properties
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-proposed restricted main multiverse universe #Added by software-properties
“deb http://www.getautomatix.com/apt edgy main”
“deb http://www.getautomatix.com/apt dapper main”
sudo aptitude update
sudo aptitude upgrade

Revision history for this message
Zombie (initramfs) said :
#9

Eihab Abdelmagid,

Fire up a Terminal (Applications > Accessories > Terminal) and type the following code:
sudo gedit /etc/apt/sources.list
An editor opens, navigate to the end of the file and comment out the last two deb entries.
It should look like this:
#“deb http://www.getautomatix.com/apt edgy main”
#“deb http://www.getautomatix.com/apt dapper main”

With Regards,
Zombie.

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

Hello Eihab..

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

Save the source list

Run the update manager

gksu "update-manager -c"

Or sudo apt-get update

Hope it helps

Bhavani Shankar.

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#11

Thanks Bhavani Shankar, that solved my question.
Best Regards
Eihab

Revision history for this message
Eihab Abdelmagid (eihabmail) said :
#12

Thanks Bhavani Shankar, that solved my question.