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

I accidentally added this in a terminal:

sudo wget -0 /etc/apt/sources.list.d/medibuntu.list

after which I get this error:

E:not known on line 1 file /etc/apt/sources.list.d/medibuntu.list
E:Could not read source list

I saw that you already 'solved a similar problem ... can you help me

Original (italian):

gestore pacchetti bloccato

Ho inserito per sbaglio questo comando nel terminale:

sudo wget -0 /etc/apt/sources.list.d/medibuntu.list
dopodiche si e'bloccato gestione pacchetto e ricevo questo errore:
E:non riconosciuto alla riga 1nel file /etc/apt/sources.list.d/medibuntu.list
E:impossibile leggere elenco sorgenti

ho visto che hai gia' risolto un problema simile... mi puoi aiutare

share|improve this question
What is the content of the file /etc/apt/sources.list.d/medibuntu.list? Have you tried removing it and doind the apt-get update again? – LnxSlck Mar 9 '12 at 21:39
up vote 5 down vote accepted

What version of ubuntu are you using? You tried to add the gusty repository which was from something like ubuntu 7.10. So open the dialog where you can change your software sources (depends on which ubuntu youre using).

  • Synaptic - Settings>Repositories>Other Sources
  • Software Centre - Edit>Software sources>Other Sources

Remove the medibuntu sources from the list. Then

sudo apt-get update

If you want to add medibuntu correctly then use this command

sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
share|improve this answer
sto' usando lubuntu 11.10 lxde con synaptic-repository-altre fonti. – elvizz67 Mar 11 '12 at 21:36
cosa devo fare per rimuovere medibuntu dalla lista per poi poter usare il comando seguente di update ? cmq grazie per aiuto – elvizz67 Mar 11 '12 at 21:39
later on i understood how remove medibuntu from the list, but since i tried to put sudo apt-get update, it asked me a password that it was impossible to insert why ? – elvizz67 Mar 12 '12 at 20:44
i removed medibuntu sources from the list but, by the time i tried to digit sudo apt-get update and pushed enter, it was blocked with [sudo] password for luca : any idea ? – elvizz67 Apr 13 '12 at 19:36

if you know the software's name try 'dpkg -l | grep software' to find,then use 'sudo apt-get remove * --purge' or 'sudo dpkg -r *'.

share|improve this answer

Use Ubuntu tweak and purge the software sources you added,In Ubuntu Tweak 0.5.14, it is located in Package cleaner section

share|improve this answer
come elimino i software aggiunto, io uso lubuntu 11.10 lxde – elvizz67 Mar 11 '12 at 22:00
English translation please. – Prasad RD Mar 13 '12 at 5:20
@Prasad I know that I come a little late :) but, there you go: How do I delete additional software, I'm using Lubuntu 11.10 lxde – Lucio Jan 20 '13 at 1:13
@Lucio please start a new will get more answers :) – Prasad RD Jan 21 '13 at 7:16
@Prasad No, you don't understand. I was translating the comment of #elvizz67. Haha, nevermind.. – Lucio Jan 21 '13 at 19:36

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.