我一直无法从gcc和相关的主要 Ubuntu 存储库中获取错误。我已经运行sudo apt update --fix-missing
并且sudo apt upgrade
错误保持不变。
查看http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-9/我可以验证 a) 服务器是否正确响应 b) 那里有档案要获取,而不是那些版本apt 正在寻找。
为什么 apt 寻找不同的版本?如何重置或重建 apt 用于版本号的任何列表?
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]