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 54 in source list /etc/apt/sources.list (dist parse)

Asked by keith jacob

when i start the update manager it gives meda error below and i cant install my jdk 6 for netbeans 6.9.1 to run am still new on linux .what can do pliz help
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 54 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read.'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

head -n 54 /etc/apt/sources.list | tail -n 1; echo; lsb_release -a

Thanks

Revision history for this message
keith jacob (kertsjacs) said :
#2

deb http://archive.canonical.com/lucid partner

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

Revision history for this message
keith jacob (kertsjacs) said :
#3

actionparsnip thanks for ur help.
when i typed this ( head -n 54 /etc/apt/sources.list | tail -n 1; echo; lsb_release -a)

this is what i got
deb http://archive.canonical.com/lucid partner

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

ok run:

gksudo gedit /etc/apt/sources.list

find this line:
deb http://archive.canonical.com/lucid partner

and change it to:
deb http://archive.canonical.com/ lucid partner

Not the SPACE before the word 'lucid'

Save the new file, close gedit and run:

sudo apt-get update

Is it now smooth?

Revision history for this message
keith jacob (kertsjacs) said :
#5

 actionparsnip
thank so much for ur help after editing that line updates started .

Revision history for this message
keith jacob (kertsjacs) said :
#6

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

If you wanted to add the partner repo, all you had to do was tick a box in software sources, there is no need to mess with that file.