Open fangpeng0011 opened 1 year ago
Err:9 http://deb.debian.org/debian stretch/main amd64 Packages 404 Not Found Ign:10 http://deb.debian.org/debian stretch/main all Packages Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages Err:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages 404 Not Found Reading package lists... W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file. W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file. E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. ERROR: Service 'crawl_scrapyd_logparser' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y vim' returned a non-zero code: 100
添加替换repository RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
参考地址:https://unix.stackexchange.com/questions/743839/apt-get-update-failed-to-fetch-debian-amd64-packages-while-building-dockerfile-f
Err:9 http://deb.debian.org/debian stretch/main amd64 Packages 404 Not Found Ign:10 http://deb.debian.org/debian stretch/main all Packages Ign:11 http://deb.debian.org/debian stretch-updates/main all Packages Err:12 http://deb.debian.org/debian stretch-updates/main amd64 Packages 404 Not Found Reading package lists... W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file. W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file. W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file. E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. ERROR: Service 'crawl_scrapyd_logparser' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y vim' returned a non-zero code: 100
添加替换repository RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
参考地址:https://unix.stackexchange.com/questions/743839/apt-get-update-failed-to-fetch-debian-amd64-packages-while-building-dockerfile-f