Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Before i start, i've tried the solution from this thread

How do I remove a malformed line from my sources.list?

but unfortunately, the steps performed in that thread are already covered for me. The error I'm getting is:

Malformed line 3 in source list /etc/apt/sources.list.d/cloudarchive-havana.list (dist)
E: The list of sources could not be read.

I'm not too sure what is causing this but it won't allow me to use the ubuntu software center or perform any updates.

Here is the output from the malformed directory:

deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main

deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main

deb http://docs.openstack.org/havana/install-guide/install/apt/content/basics-packages.html

Can anyone point me in the direction of a solution please?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Why is there a html page in your sources?

deb http://docs.openstack.org/havana/install-guide/install/apt/content/basics-packages.html

This does not belong in sources.list since it is not of a normal format.

Compare it to the other 2 and you will see the sources.list needs 4 sections and there are only 2 on this like. It is missing precise-updates/havana and main

share|improve this answer
    
I'm not sure, whoever was working with this last has been since let go, i'll remove it and see how i get on, cheers –  Jay Fitz Apr 10 at 9:26
    
@JayFitz it will work when removed :) –  Rinzwind Apr 10 at 9:27
    
It worked a charm, thanks for the help, ill choose your answer (have to wait 10 minutes) :P –  Jay Fitz Apr 10 at 9:28

The last line doesn't look right, I've never seen a ppa source ending as "something.html" so you could try commenting it and leaving the file like this:

deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main
deb-src http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/havana main
#deb http://docs.openstack.org/havana/install-guide/install/apt/content/basics-packages.html

To edit the file, open a terminal and type this:

gksu gedit /etc/apt/sources.list.d/cloudarchive-havana.list

Then, try to run an update again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.