Ubuntu – I can’t do anything in APT: “E:Type ‘sudo’ is not known”


I can't install anything or do anything without ubuntu giving me

E:Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/spotify.list
E:The list of sources could not be read

I only want to install adobe flash.

How can I fix this?

Best Answer

  • Welcome to Ubuntu, you will be good to go with a little more experience.

    I assume you manually edited the file /etc/apt/sources.list.d/spotify.list and you now have a typo in the file.

    Open the file in any editor (sudo nano /etc/apt/sources.list.d/spotify.list ) and fix it.

    If you do not know the syntax, post the contents of the file here.

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