Software Update not working

Asked by wisdomnko

After installing Adobe Reader, I started getting the following error. 'E:Malformed line 54 in source list /etc/apt/sources.list (URI parse). I have tried fixing it using past fixing from the support sight but no luck.

Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
wisdomnko (wis3634) said :
#1

I have tried the following :

$ sudo apt-get clean
$ cd /var/lib/apt
$ sudo mv lists lists.old
$ sudo rm -rf lists.old
$ sudo mkdir -p lists/partial
$ sudo apt-get clean
$ sudo apt-get update

Revision history for this message
mycae (mycae) said :
#2

We need to see the contents of that file. Can you open a terminal (Ctrl+Alt+T), then copy and paste this command

cat /etc/apt/sources.list

Then paste the result back here?

Revision history for this message
wisdomnko (wis3634) said :
#3

deb http://us.archive.ubuntu.com/ubuntu/ oneiric-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ oneiric-proposed restricted main multiverse universe
deb http://extras.ubuntu.com/ubuntu oneiric main #Third party developers repository
deb-src http://us.archive.ubuntu.com/ubuntu/ oneiric-proposed restricted main multiverse universe #Added by software-properties
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http//archive.canonical.com/ natty partner
deb-src http//archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner
deb http://archive.canonical.com/ natty partner
deb-src http://archive.canonical.com/ natty partner

Revision history for this message
Best mycae (mycae) said :
#4

And that is all of it? The initial error suggested that it was longer.

Anyway, here is a problem:

deb http//archive.canonical.com/ natty partner

note the lack of a : between http and // - which is incorrect.

Also, you can remove the duplicate entries.

to edit the file, run

gksudo gedit /etc/apt/sources.list

Revision history for this message
wisdomnko (wis3634) said :
#5

Thanks mycae, that solved my question.