If apt-get install/update fails such as 404-Error message:

Failed to fetch http://......ubuntu1... 404 Not Found

Then fexecute following command for install missing packages:

apt-get update --fix-missing