尝试安装各种包,apt
但在安装过程中遇到 403 和 404 错误代码,尽管我有另外 2 个可以正常获取包的设备(不是同一设备类型)。
一些信息:
- 笔记本电脑很旧,配有奔腾
x86_64
- 尝试切换源列表
software & updates
(尝试过主列表、美国列表和镜像列表)但无济于事。 - 我和许多其他人面临着同样的问题
firefox
。openjdk-8-jdk
- 面临问题,
python3-pip
但切换到镜像后运行sudo apt update && sudo apt install python3-pip
似乎解决了它(但其余问题并没有解决)。 - 尝试了不同的 ISP,但无济于事。
- 已尝试
$ sudo apt install --fix-missing && sudo apt install openjdk-8jdk
,但输出相同。 - 尝试了 jdk11 但给出完全相同的错误输出。
这是完整日志:
$ sudo apt install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libgif7 libice-dev libpthread-stubs0-dev libsm-dev libx11-dev
libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless x11proto-core-dev x11proto-dev xorg-sgml-doctools
xtrans-dev
Suggested packages:
default-jre libice-doc libsm-doc libx11-doc libxcb-doc libxt-doc openjdk-8-demo openjdk-8-source visualvm icedtea-8-plugin fonts-ipafont-gothic fonts-ipafont-mincho
fonts-wqy-microhei fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ca-certificates-java fonts-dejavu-extra java-common libatk-wrapper-java libatk-wrapper-java-jni libgif7 libice-dev libpthread-stubs0-dev libsm-dev libx11-dev
libxau-dev libxcb1-dev libxdmcp-dev libxt-dev openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless x11proto-core-dev x11proto-dev
xorg-sgml-doctools xtrans-dev
0 upgraded, 22 newly installed, 0 to remove and 17 not upgraded.
Need to get 39.5 MB/43.5 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.ubuntu.com/mirrors.txt Mirrorlist [528 B]
Ign:5 http://ubuntu.mirror.ac.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:2 http://ubuntu.dts.mg/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://ubuntu.dts.mg/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://ubuntu.dts.mg/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://ubuntu.mirror.ac.za/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://ubuntu.mirror.ac.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 https://mirrors.united.cd/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://mirror.marwan.ma/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://mirror.marwan.ma/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:5 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://mirrors.united.cd/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://mirrors.united.cd/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://mirror.wiru.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://mirror.wiru.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://deb-mirror.habari.co.tz/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://deb-mirror.habari.co.tz/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:5 http://deb-mirror.habari.co.tz/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:4 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:4 https://mirror.marwan.ma/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:4 https://mirror.wiru.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://mirror.hostafrica.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 https://mirror.wiru.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://mirror.aptus.co.tz/pub/ubuntuarchive focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://ubuntu.mirror.rain.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://ubuntu.mirror.rain.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:5 http://download.nust.na/pub/ubuntu/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://mirror.hostafrica.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:5 http://ubuntu.dts.mg/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:5 http://mirror.lnx-solutions.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:3 http://download.nust.na/pub/ubuntu/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://download.nust.na/pub/ubuntu/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:5 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
Ign:4 http://mirror.lnx-solutions.com/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
Err:4 https://mirror.hostafrica.co.za/ubuntu focal-updates/universe amd64 openjdk-8-jdk-headless amd64 8u312-b07-0ubuntu1~20.04
404 Not Found [IP: 41.188.34.241 80]
Ign:3 http://mirror.aptus.co.tz/pub/ubuntuarchive focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
Err:2 https://ubuntu-mirror.cloud.mu/ubuntu focal-updates/universe amd64 openjdk-8-jre-headless amd64 8u312-b07-0ubuntu1~20.04
404 Not Found [IP: 41.188.34.241 80]
Err:5 https://ubuntu-mirror.cloud.mu/ubuntu-ports focal-updates/universe amd64 openjdk-8-jdk amd64 8u312-b07-0ubuntu1~20.04
404 Not Found [IP: 155.232.191.230 80]
Err:3 http://mirror.lnx-solutions.com/ubuntu focal-updates/universe amd64 openjdk-8-jre amd64 8u312-b07-0ubuntu1~20.04
404 Not Found [IP: 41.188.34.241 80]
Fetched 528 B in 51s (10 B/s)
E: Failed to fetch https://mirrors.united.cd/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u312-b07-0ubuntu1~20.04_amd64.deb 404 Not Found [IP: 41.188.34.241 80]
E: Failed to fetch http://mirror.lnx-solutions.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u312-b07-0ubuntu1~20.04_amd64.deb 404 Not Found [IP: 41.188.34.241 80]
E: Failed to fetch https://mirror.hostafrica.co.za/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u312-b07-0ubuntu1~20.04_amd64.deb 404 Not Found [IP: 41.188.34.241 80]
E: Failed to fetch http://mirror.aptus.co.tz/pub/ubuntuarchive/pool/universe/o/openjdk-8/openjdk-8-jdk_8u312-b07-0ubuntu1~20.04_amd64.deb 404 Not Found [IP: 155.232.191.230 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?