E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

In this article, we will see the different solutions for below error message.

E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?

E Unable to fetch some archives, maybe run apt-get update or try with –fix-missing

Reason:

The reason for this is that it is now out of support and no longer receiving updates and security patches.

Solution:

If you want to continue using an outdated release then edit /etc/apt/sources.list and change archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com.

You can do this with sed:

sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Then run the below command:

sudo apt-get update && sudo apt-get dist-upgrade