On taskbar I get a red warning icon that "A problem occurred when checking for the updates" When I click on Show Updates I get "Failed to the load the package list" in the details is the following: An unresolvable problem occurred while initializing

Asked by Dang Thanh An

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 3 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:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

head /etc/apt/sources.list

Thanks

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

The message tells you where the problem is..

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

So , the 3rd line is /etc/apt/sources.list is malformed .. and you must correct the line manually.

Open the file as administrator with the command below

gksudo gedit /etc/apt/sources.list

find the 3rd line and correct it.

If you don't know or you are not sure what to correct ,then give here the results as @actionparsnip suggested.

Thanks

Revision history for this message
Dang Thanh An (anlouis1802) said :
#3

There is no list after I command "gksudo gedit/etc/apt/sources.list

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#4

It wants a space between gedit and /

gksudo gedit /etc/apt/sources.list

Revision history for this message
Dang Thanh An (anlouis1802) said :
#5

output appeared in text editor type like:
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
which line has to change?

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

Change

deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner

To

deb http://archive.canonical.com/ quantal partner
deb-src http://archive.canonical.com/ quantal partner

Revision history for this message
Dang Thanh An (anlouis1802) said :
#7

and then?

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

Save the new file, close gedit and run:

sudo apt-get update

Revision history for this message
Dang Thanh An (anlouis1802) said :
#9

Thanks actionparsnip, that solved my question.

Revision history for this message
zainab kapadia (kapadiaz90) said :
#10

head /etc/apt/sources.list:
i got this o/p

# 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://ubuntu.pesat.net.id/archive/ precise main restricted
deb-src http://ubuntu.pesat.net.id/archive/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ubuntu.pesat.net.id/archive/ precise-updates main restricted

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

run:

gksudo gedit /etc/apt/sources.list

remove the top 3 lines:

# 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.

Save the new file, close gedit and run:

sudo apt-get update

Is it now smooth?

Thanks

Revision history for this message
zainab kapadia (kapadiaz90) said :
#12

i got this as the o/p aftr i deleted the first three lines:

E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list
E: The list of sources could not be read.

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

sudo rm /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update

Revision history for this message
zainab kapadia (kapadiaz90) said :
#14

done now!!!..
thank u soo much..