Wednesday, January 9, 2019

apt - Cannot update and terminal says sources could not be read





$ sudo apt-get update
E: Type ' < !DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list
E: The list of sources could not be read.


As the error points out, the /etc/apt/sources.list.d/medibuntu.list file is causing the issue. That file is used (in the past) to get list of packages maintained as part of Medibuntu. But, "Medibuntu has now been shut down, the packages were either obsolete, unnecessary or moved to the official Ubuntu archive.". Therefore, it is better to remove that file from your machine.



Run the following command to remove that file:



sudo rm /etc/apt/sources.list.d/medibuntu.list




Then run sudo apt-get udpate


No comments:

Post a Comment

11.10 - Can&#39;t boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...