I keep getting failed to fetch errors from the primary Ubuntu repository for gcc and related. I have run sudo apt update --fix-missing
and sudo apt upgrade
and the errors remain the same.
Looking at http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-9/ I can verify that a) the server is responding properly and b) there are archives there to fetch, just not the versions that apt is looking for.
Why is apt looking for different versions? How do I reset or rebuild whatever list apt is using for version numbers?
Err:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.2
404 Not Found [IP: 185.125.190.39 80]
Ign:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-100.113
Err:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dev amd64 2.31-0ubuntu9.2
404 Not Found [IP: 185.125.190.39 80]
Err:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libc6-dbg amd64 2.31-0ubuntu9.2
404 Not Found [IP: 185.125.190.39 80]
Err:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9-base amd64 9.3.0-17ubuntu1~20.04
404 Not Found [IP: 185.125.190.39 80]
Err:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 cpp-9 amd64 9.3.0-17ubuntu1~20.04
404 Not Found [IP: 185.125.190.39 80]
Err:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.3.0-17ubuntu1~20.04
404 Not Found [IP: 185.125.190.39 80]
Err:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcc-9-dev amd64 9.3.0-17ubuntu1~20.04
404 Not Found [IP: 185.125.190.39 80]
Err:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gcc-9 amd64 9.3.0-17ubuntu1~20.04
404 Not Found [IP: 185.125.190.39 80]
Err:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-libc-dev amd64 5.4.0-100.113
404 Not Found [IP: 185.125.190.39 80]
Unable to correct missing packages.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-9/gcc-9-base_9.3.0-17ubuntu1~20.04_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-9/cpp-9_9.3.0-17ubuntu1~20.04_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
/var/lib/apt/lists/
- may contain some broken/outdated package lists. Aftersudo apt update
should be as good as new.