我有一台 Linux AWS 机器,几天前我开始遇到这个问题:
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
Err http://deb.debian.org jessie-updates/main amd64 Packages
404 Not Found
100% [5 Packages 9098 kB]Fetched 10.1 MB in 1s (7356 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Exited with code 100
我的 CircleCI config.yml 错误在这里(安装 aweswebsli 时):
- run:
name: Install awsebcli
working_directory: ~/
command: |
sudo apt-get update
sudo apt-get install python-dev python-pip
sudo easy_install --upgrade six
sudo pip install urllib3==1.21.1
sudo pip install awsebcli==3.14.11
一些解决方案建议修改
/etc/apt/resources.list
但我在我的 AWS Linux 上找不到该文件夹/文件。
其他帖子建议替换此行
sudo apt-get update
和
apt-get -o Acquire::Check-Valid-Until=false update
没有成功。任何帮助都值得感激。
答案1
该错误与 Amazon 或您的 CircleCI 配置无关。Jessie
的存储库已移至 debian 的存档,您需要更新以下文件:
/etc/apt/sources.list
新内容需要:
deb http://archive.debian.org/debian/ jessie main
deb-src http://archive.debian.org/debian/ jessie main
deb http://security.debian.org jessie/updates main
deb-src http://security.debian.org jessie/updates main
有关详细信息,请参阅回答。