How do I remove a broken software source?

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

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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

Solution 2

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 *’.

Solution 3

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

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply