Sources.list

Asked by Shreenesh

I had encountered a problem with my Update Manager which shows the following error " Type 'cd' is not known on line 53 in source list /etc/apt/sources.list"
So what is the suitable solution for this problem.

Shreenesh Raman
India

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tony Pursell (ajpursell) said :
#1

Hi Shreenesh.

The format of the cdrom line in /etc/apt/sources.list should be something like

deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main rest
ricted

To look at this file. In a terminal, type

cd /etc/apt
cat sources.list

Is there a line like that for a cdrom that is not correctly formatted? If you see what the problem is, here is how to fix it. First make a backup copy of the file with

cp sources.list sources.list.bak

then edit it with

gksudo gedit sources.list

Save the corrected file and try again with Update Manager.

If you see which line is wrong, but do not know how to correct it, just put # at the start of it.

Does this solve your problem? If it does please mark the question as Solved.

Tony

Revision history for this message
Shreenesh (shreenesh-raman) said :
#2

in source list it is given as "# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted #Added by software-properties"

Revision history for this message
Shreenesh (shreenesh-raman) said :
#3

I am Getting the following as an error " Error:Opening the cache (E:Type 'cd' is not known on line 53 in source list, The Sources of list could not be read.)"

Revision history for this message
Shreenesh (shreenesh-raman) said :
#4

This is My Sources.list File's Content

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy 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://in.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-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://in.archive.ubuntu.com/ubuntu/ hardy universe
deb http://in.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://in.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://in.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://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://in.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://in.archive.ubuntu.com/ubuntu/ hardy-security main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-security restricted main multiverse universe #Added by software-properties
deb http://in.archive.ubuntu.com/ubuntu/ hardy-security universe
deb http://in.archive.ubuntu.com/ubuntu/ hardy-security multiverse

cd/
cd\

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

Hi Shreenesh,

As a root user, remove the last two lines of your /etc/apt/sources.list file, which means removing these two:

cd/
cd\

Regards,

Mark

Can you help with this problem?

Provide an answer of your own, or ask Shreenesh for more information if necessary.

To post a message you must log in.