不能再使用 apt-update

不能再使用 apt-update

我再也无法使用 apt-get update。而且我经常无法再安装任何东西。每次我使用 ap-get update 时都会得到这个输出

root@raspberrypi:/home/pi# sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Ign:3 https://download.docker.com jessie InRelease
Ign:4 https://download.docker.com jessie Release
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Ign:5 https://download.docker.com jessie/main armhf Packages
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Err:5 https://download.docker.com jessie/main armhf Packages
  404  Not Found [IP: 2600:9000:21c7:b000:3:db06:4200:93a1 443]
Ign:6 https://download.docker.com jessie/main all Packages
Ign:7 https://download.docker.com jessie/main Translation-en_GB
Ign:8 https://download.docker.com jessie/main Translation-en
Reading package lists... Done
E: Failed to fetch https://download.docker.com/dists/jessie/main/binary-armhf/Packages  404  Not Found [IP: 2600:9000:21c7:b000:3:db06:4200:93a1 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

我尝试删除 docker 存储库。我能够删除其中的一些,但现在无法继续 :(

有人知道该怎么办吗?

我提前谢谢你

答案1

我意识到https://download.docker.com/dists/jessie/main/binary-armhf/Packages(你电脑里的 URL 存储库)也返回了 404 错误,经过一番搜索后,我发现https://download.docker.com/linux/debian/dists/jessie/stable/binary-armhf/问题解决得很好。所以我的看法是 Docker 已将其存储库移至其他目录。可以通过编辑用于获取软件包的 URL 来解决这个问题。

尝试添加此行/etc/apt/sources.list

deb https://download.docker.com/linux/debian/dists/jessie/stable/binary-armhf jessie devel admin

并注释掉下面这一行,看起来类似这样:

deb https://download.docker.com/dists/jessie/stable/binary-armhf jessie devel admin

(请注意第二行不包含linux/debian/

相关内容