How to fix Ubuntu Failed to fetch http://security.ubuntu.com/ubuntu/pool/main…

Do you get an error like the following when you are trying to download a package via apt-get?

E: Failed to fetch http://nl.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.31-0ubuntu9.2_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_5.4.0-90.101_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://nl.archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.31-0ubuntu9.2_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libasan5_9.3.0-17ubuntu1~20.04_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libgcc-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9_9.3.0-17ubuntu1~20.04_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9/g++-9_9.3.0-17ubuntu1~20.04_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.8/libpython3.8-dev_3.8.10-0ubuntu1~20.04.1_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://nl.archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.11.dfsg-2ubuntu1.2_amd64.deb  404  Not Found [IP: 213.136.12.213 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/python3.8/python3.8-dev_3.8.10-0ubuntu1~20.04.1_amd64.deb  404  Not Found [IP: 213.136.12.213 80]

Solution

The issue most likely has to do with that the Ubuntu package repositories have become outdated. Try the following:

sudo apt-get update

After this command has successfully executed, try the original apt-get command again. If it still doesn’t work, then check your internet connection to see if your Ubuntu machine can connect to the internet. You can do this by issueing the command ping google.com in a terminal.

Hope this helped you!

Published
Categorized as Ubuntu

By Leendert de Borst

Freelance software architect with 10+ years of experience. Expert in translating complex technical problems into creative & simple solutions.

Leave a comment

Your email address will not be published.