Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 precise-updates/havana main

deb-src precise-updates/havana main


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

share|improve this question
up vote 3 down vote accepted

Why is there a html page in your sources?


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 '14 at 9:26
@JayFitz it will work when removed :) – Rinzwind Apr 10 '14 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 '14 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 precise-updates/havana main
deb-src precise-updates/havana main

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


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.