-1

I'm using Ubuntu 15.04. I was not able to update so I followed the instructions from this Ask Ubuntu answer. Now I'm getting these error messages when I run sudo apt-get update:

E: Type '<!DOCTYPE' is not known on line 1 in source list sud/etc/apt/sources.list 
E: The list of sources could not be read.

How can I fix this?

G S Srivatsa
  • 21
  • 1
  • 3

1 Answers1

0

Looks like your sources file is corrupted. Remove the corrupted source file by pressing Ctrl+Alt+T to open a terminal, and type in

sudo rm /etc/apt/sources.list

Then, type in sudo software-properties-gtk. This will open software-properties-gtk and a new sources.list will be created automatically.

Then change the server to US or to any other server of your choice. You must enable repositories from the new dialog in order to create new sources.list.

How do I restore the default repositories?

Neil
  • 4,585