E:Malformed line 59 in source list /etc/apt/sources.list (dist parse)

Asked by Girish Cholayill

Issue - Update manager not functioning,does not read the complete packages,gets error -

Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Malformed line 59 in source list /etc/apt/sources.list (dist parse)'

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Girish Cholayill
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

You need to dress the row 59 of /etc/apt/sources.list repository sources files

To do it from terminal type:

gksudo gedit /etc/apt/sources.list

if you are in trouble doing it please copy and paste the entire file content here

Revision history for this message
Girish Cholayill (maverick129) said :
#2

Unable to dress row 59,Please advice.Thanks

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

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

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

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
deb http://archive.ubuntu.com/ubuntu maverick main multiverse universe
deb http://ppa.launchpad.net/synce/ubuntu intrepid main
deb-src http://ppa.launchpad.net/synce/ubuntu intrepid main
deb http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb http://ppa.launchpad.net/synce/ubuntu11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu11.04 main

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

There are errors in lines at the end of your sources.list

open a terminal (ctrl-alt-t) and issue the command

gksudo gedit /etc/apt/sources.list

you will be asked for your password (please enter it when asked so) and will then open an editor with your soucres listed loaded.

Youe have to replace the lines that currently read

deb http://ppa.launchpad.net/synce/ubuntu intrepid main
deb-src http://ppa.launchpad.net/synce/ubuntu intrepid main
deb http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb http://ppa.launchpad.net/synce/ubuntu11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu11.04 main

by these lines:

deb http://ppa.launchpad.net/synce/ubuntu natty main
deb-src http://ppa.launchpad.net/synce/ubuntu natty main

Then save the file and close the editor, and retry with update-manager

Revision history for this message
Girish Cholayill (maverick129) said :
#4

Tried your suggestion,still no go.any other ideas,i could try ??? Thanks

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the result of the following:

open a terminal (ctrl-alt-t) and issue the command

sudo apt-get update

you will be asked for your password (please enter it, and note that you will not get any feedback, no echo, not even '*' placeholders).
When the command has finished please select all output (edit - select all), copy it (edit - copy) and paste it into a new message of this question thread.

Revision history for this message
Girish Cholayill (maverick129) said :
#6

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

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#7

Please open a Terminal window (Ctrl+Alt+T) and run this command:

lsb_release -a; echo; cd /etc/apt; ls -l sources.list.d; echo; cat sources.list

To do that, select the command (if it's split into two lines in your email, select it at https://answers.launchpad.net/ubuntu/+source/apt/+question/166550 instead), copy it to the clipboard, then paste it into the Terminal and press enter to run it.

That will, among other things, provide information revealing whether or not there were any problems in your editing of the configuration file.

Then select all the text in the Terminal (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here.

Revision history for this message
Girish Cholayill (maverick129) said :
#8

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty

total 36
-rw-r--r-- 1 root root 180 2011-07-28 13:50 google-talkplugin.list
-rw-r--r-- 1 root root 180 2011-07-28 13:50 google-talkplugin.list.save
-rw-r--r-- 1 root root 179 2011-07-28 13:50 maverick-partner.list
-rw-r--r-- 1 root root 179 2011-07-28 13:50 maverick-partner.list.save
-rw-r--r-- 1 root root 128 2011-07-28 13:50 tiheum-equinox-natty.list
-rw-r--r-- 1 root root 128 2011-07-28 13:50 tiheum-equinox-natty.list.save
-rw-r--r-- 1 root root 102 2011-07-28 13:50 ubuntu-wine-ppa-lucid.list
-rw-r--r-- 1 root root 102 2011-07-03 22:56 ubuntu-wine-ppa-lucid.list.distUpgrade
-rw-r--r-- 1 root root 102 2011-07-28 13:50 ubuntu-wine-ppa-lucid.list.save

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

The output does not contain all information as requested, please issue the command

cat /etc/apt/sources.list

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#10

That is very unusual output for the command I gave you, though it is expected output if you left something off the end of the command I gave you. Unfortunately, since you did not provide *all* the text from the Terminal (as I had requested), I cannot know for sure what went wrong. Did you perhaps also neglect to my advice about copying it from https://answers.launchpad.net/ubuntu/+source/apt/+question/166550 if it was split into two lines in your email?

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

... and copy/paste the output into a new message

Revision history for this message
Girish Cholayill (maverick129) said :
#12

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

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

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

deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
deb http://archive.ubuntu.com/ubuntu maverick main multiverse universe
deb http://ppa.launchpad.net/synce/ubuntu natty main
deb-src http://ppa.launchpad.net/synce/ubuntu natty main
deb http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb http://ppa.launchpad.net/synce/ubuntu11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu11.04 main

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#13

It looks like you never edited /etc/apt/sources.list. Did you follow Manfred Hampl's instructions in post #3 (as numbered at https://answers.launchpad.net/ubuntu/+source/apt/+question/166550)?

Revision history for this message
Girish Cholayill (maverick129) said :
#14

Yes I have already tried the same,,but issue still remains,can you provide me with any alternatives i could try ???

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Can you follow the instructions as given above, or is there a problem when trying so?
Do you see error messages?

Revision history for this message
Girish Cholayill (maverick129) said :
#16

I have tried all the steps as stated above & no it does not give any error messages,i get the error message only when i try to use the update manger or the software sources or try to Open the Synaptic Packet manager,could you tell me what exactly is the problem with my system ???

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

Ok, then try again:

open a terminal (ctrl-alt-t) and issue the command

gksudo gedit /etc/apt/sources.list

you will be asked for your password (please enter it when asked so) and will then open an editor with your soucres listed loaded.

In the editor window scroll down to the end and delete the last lines that read as follows:

deb http://archive.ubuntu.com/ubuntu maverick main multiverse universe
deb http://ppa.launchpad.net/synce/ubuntu intrepid main
deb-src http://ppa.launchpad.net/synce/ubuntu intrepid main
deb http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu 11.04 main
deb http://ppa.launchpad.net/synce/ubuntu11.04 main
deb-src http://ppa.launchpad.net/synce/ubuntu11.04 main

when you have deleted these lines save the file and close the editor window.

Then try the command
sudo apt-get update
again, and copy/paste all output that you receive to a new message in this question document as done before

Revision history for this message
Girish Cholayill (maverick129) said :
#18

Ign http://security.ubuntu.com natty-security InRelease
Ign http://in.archive.ubuntu.com natty InRelease
Ign http://in.archive.ubuntu.com natty-updates InRelease
Get:1 http://security.ubuntu.com natty-security Release.gpg [198 B]
Get:2 http://in.archive.ubuntu.com natty Release.gpg [198 B]
Ign http://ppa.launchpad.net natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://archive.canonical.com maverick InRelease
Get:3 http://security.ubuntu.com natty-security Release [27.2 kB]
Get:4 http://in.archive.ubuntu.com natty-updates Release.gpg [198 B]
Get:5 http://archive.canonical.com maverick Release.gpg [198 B]
Get:6 http://ppa.launchpad.net natty Release.gpg [316 B]
Get:7 http://in.archive.ubuntu.com natty Release [39.8 kB]
Get:8 http://archive.canonical.com maverick Release [5,925 B]
Get:9 http://ppa.launchpad.net natty Release.gpg [316 B]
Get:10 http://ppa.launchpad.net natty Release [9,727 B]
Get:11 http://security.ubuntu.com natty-security/main Sources [63.5 kB]
Get:12 http://archive.canonical.com maverick/partner i386 Packages [7,774 B]
Get:13 http://in.archive.ubuntu.com natty-updates Release [27.2 kB]
Get:14 http://ppa.launchpad.net natty Release [9,730 B]
Get:15 http://ppa.launchpad.net natty/main Sources [3,799 B]
Get:16 http://ppa.launchpad.net natty/main i386 Packages [4,435 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Ign http://archive.canonical.com maverick/partner TranslationIndex
Get:17 http://in.archive.ubuntu.com natty/main Sources [862 kB]
Get:18 http://ppa.launchpad.net natty/main Sources [1,430 B]
Get:19 http://ppa.launchpad.net natty/main i386 Packages [1,646 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Get:20 http://security.ubuntu.com natty-security/restricted Sources [14 B]
Get:21 http://security.ubuntu.com natty-security/universe Sources [9,829 B]
Get:22 http://security.ubuntu.com natty-security/multiverse Sources [658 B]
Get:23 http://security.ubuntu.com natty-security/main i386 Packages [165 kB]
Get:24 http://security.ubuntu.com natty-security/restricted i386 Packages [14 B]
Get:25 http://security.ubuntu.com natty-security/universe i386 Packages [31.9 kB]
Get:26 http://security.ubuntu.com natty-security/multiverse i386 Packages [2,074 B]
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Ign http://archive.canonical.com maverick/partner Translation-en_IN
Ign http://archive.canonical.com maverick/partner Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_IN
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_IN
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://dl.google.com stable InRelease
Ign http://security.ubuntu.com natty-security/main Translation-en_IN
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-en_IN
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_IN
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en_IN
Ign http://security.ubuntu.com natty-security/universe Translation-en
Get:27 http://in.archive.ubuntu.com natty/restricted Sources [4,104 B]
Get:28 http://in.archive.ubuntu.com natty/universe Sources [4,380 kB]
Get:29 http://dl.google.com stable Release.gpg [198 B]
Get:30 http://in.archive.ubuntu.com natty/multiverse Sources [155 kB]
Get:31 http://in.archive.ubuntu.com natty/main i386 Packages [1,550 kB]
Get:32 http://dl.google.com stable Release [1,347 B]
Get:33 http://in.archive.ubuntu.com natty/restricted i386 Packages [8,986 B]
Get:34 http://in.archive.ubuntu.com natty/universe i386 Packages [6,021 kB]
Get:35 http://dl.google.com stable/main i386 Packages [767 B]
Ign http://dl.google.com stable/main TranslationIndex
Get:36 http://in.archive.ubuntu.com natty/multiverse i386 Packages [183 kB]
Ign http://in.archive.ubuntu.com natty/main TranslationIndex
Ign http://in.archive.ubuntu.com natty/multiverse TranslationIndex
Ign http://in.archive.ubuntu.com natty/restricted TranslationIndex
Ign http://in.archive.ubuntu.com natty/universe TranslationIndex
Get:37 http://in.archive.ubuntu.com natty-updates/main Sources [98.1 kB]
Get:38 http://in.archive.ubuntu.com natty-updates/restricted Sources [14 B]
Get:39 http://in.archive.ubuntu.com natty-updates/universe Sources [22.1 kB]
Get:40 http://in.archive.ubuntu.com natty-updates/multiverse Sources [1,893 B]
Get:41 http://in.archive.ubuntu.com natty-updates/main i386 Packages [286 kB]
Get:42 http://in.archive.ubuntu.com natty-updates/restricted i386 Packages [14 B]
Get:43 http://in.archive.ubuntu.com natty-updates/universe i386 Packages [80.2 kB]
Get:44 http://in.archive.ubuntu.com natty-updates/multiverse i386 Packages [4,267 B]
Ign http://in.archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://in.archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://in.archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://in.archive.ubuntu.com natty-updates/universe TranslationIndex
Ign http://in.archive.ubuntu.com natty/main Translation-en_IN
Ign http://in.archive.ubuntu.com natty/main Translation-en
Ign http://in.archive.ubuntu.com natty/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com natty/multiverse Translation-en
Ign http://in.archive.ubuntu.com natty/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com natty/restricted Translation-en
Ign http://in.archive.ubuntu.com natty/universe Translation-en_IN
Ign http://in.archive.ubuntu.com natty/universe Translation-en
Ign http://in.archive.ubuntu.com natty-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/main Translation-en
Ign http://in.archive.ubuntu.com natty-updates/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://in.archive.ubuntu.com natty-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://in.archive.ubuntu.com natty-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com natty-updates/universe Translation-en
Ign http://dl.google.com stable/main Translation-en_IN
Ign http://dl.google.com stable/main Translation-en
Fetched 14.1 MB in 1min 35s (148 kB/s)
Reading package lists... Done

Hey it worked,The Update manager & the Synaptic manager are working now !!!

What did we do ???

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

> What did we do ???
We helped you repair the error in the configuration file containing the addresses of the software package servers. The error most probably was created by an attempt to update the link to the synce private package archive.

As the above commands have removed the linkj to the synce ppa, there is one action that you might still want to do to re-add it:
Open a terminal and issue the following command:

sudo add-apt-repository ppa:synce/ubuntu