Correct 404 Errors When Installing a Package - Linux Ubuntu

If you are using an older version of Ubuntu, you may have already encountered 404 errors when you try to update or install packages with the apt-get command. Failure to deposit old packages that changed server. Here's how to fix this error.

1-The easiest solution is to update your version of Ubuntu. In a Terminal window, enter the following command and press Enter.

sudo apt-get dist-upgrade


2-Your system is updated. After a reboot, you will no longer have a 404 error when installing or updating a package.


3-If you do not want to update your Ubuntu, you must tell the system to use another repository for the packages. Open a terminal and enter the command

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list



4-Lastly, enter the command

sudo apt-get update



5-You now use the old package warehouse and will no longer have a 404 error when installing or updating a package.

Commentaires