E:Malformed line 54 in source list /etc/apt/sources.list (dist), E:The list of sources could not be read.

Asked by Josephwd

I tried to find what was wrong but I cannot seem to see what a professional would see. I will paste below what I get from the Src list.

# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic 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/ karmic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.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://us.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://us.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://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.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://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://us.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/kubuntu-ppa/backports/ubuntu
jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty
main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu
jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty
main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty main

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan Dwyer
Solved:
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

From your terminal:

gksudo gedit /etc/apt/sources.list

and remove this last lines from your sources.list file.

deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu
jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty
main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu
jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty
main
deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu jaunty main
deb http://ppa.launchpad.net/kubuntu-ppa/staging/ubuntu jaunty main

and from your terminal, run the command:

sudo apt-get update && sudo apt-get upgrade

Revision history for this message
Best Ryan Dwyer (ryandwyer) said :
#2

The problem is caused by "jaunty main" and "main" being on lines by themselves. They should be part of the previous lines.

Revision history for this message
Tom (tom6) said :
#3

Hi :)

I agree with Ian. Ryan has a good point about words being broken onto new lines but that might just be caused by posting into the restricted width in Launchpad. The more confusing issue is likely to be that some lines refer to Karmic and others refer to the Jaunty release. Since the problem wasn't spotted until line 54 my money would be on this being an upgraded karmic that has somehow kept it's jaunty lines by mistake.

Deleting the Jaunty lines might remove access to something wanted from the ppa's so i would try a "find&replace" to change all "jaunty" to "karmic". It might not work but it might be worth a try. Alternatively you might navigate toi the relevant pages to check they exist before adding them as repositories.

Since this was an upgrade of the Ubuntu release then working through the Medibuntu worksheet would be fairly crucial to sort out multimedia again
https://help.ubuntu.com/community/Medibuntu

I hope something here helps!
Good luck and regards from
Tom :)

Revision history for this message
Josephwd (josephwd22) said :
#4

Awesome. With the power of both of you're responses I have solved this.

Long live Ubuntu

Thanks guys.

Revision history for this message
Josephwd (josephwd22) said :
#5

Thanks Ryan Dwyer, that solved my question.

Revision history for this message
Tom (tom6) said :
#6

Congrats, nicely done :))

Revision history for this message
rosee@polka.co.za (rosee) said :
#7

JUST INSTALLED UBUNTU 10.4 TRYING TO UPDATE FROM DVD 10.4 UPDATE SOFTWARE SOURCES OTHER SOFTWARE ERROR SCANNING THE CD E:FAILED TO MOUNT THE CDROM COULD ANYONE HELP

ROSE

Revision history for this message
Tom (tom6) said :
#8

Hi Rosee :)

Please could you use this link to post your own question about this?
https://answers.launchpad.net/ubuntu/+source/yelp/+addquestion

Do you have an Ubuntu 10.04 Cd that you could try to use as a boot-disk?
https://help.ubuntu.com/community/LiveCD

If you could try to get a LiveCd session working then that would help a lot, otherwise we would have to find another way

Good luck and regards from
Tom :)