casual-silva / NewsCrawl

狠心开源企业级舆情新闻爬虫项目:支持任意数量爬虫一键运行、爬虫定时任务、爬虫批量删除;爬虫一键部署;爬虫监控可视化; 配置集群爬虫分配策略;👉 现成的docker一键部署文档已为大家踩坑
523 stars 137 forks source link

如果遇到这种错误,请修改Dockerfile #6

Open fangpeng0011 opened 1 year ago

fangpeng0011 commented 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