debian - W : Failed to fetch http://httpredir. debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 未找到

标签 debian bitbucket apt-get bitbucket-pipelines debian-jessie

[相关部分] 我的 bitbucket-pipeline 看起来像这样:

  - step:
      image: python:3.5.1
      name: upload to s3
      script:
        - export S3_BUCKET="elasticbeanstalk-us-east-1-122232355432"
        - export VERSION_LABEL=$(cat VERSION_LABEL)
        - apt-get update # required to install zip
        - apt-get install -y zip # required for packaging up the application
        - pip install boto3==1.3.0 # required for upload_to_s3.py
        - zip --exclude=*.git* -r /tmp/artifact.zip . # package up the application for deployment
        - python upload_to_s3.py # run the deployment script

然而,当我在 Bitbucket 中运行它时,我得到了 跟随错误 :
+ apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org jessie InRelease
Ign http://httpredir.debian.org jessie-updates InRelease
Get:2 http://httpredir.debian.org jessie Release.gpg [2420 B]
Ign http://httpredir.debian.org jessie-updates Release.gpg
Get:3 http://httpredir.debian.org jessie Release [148 kB]
Ign http://httpredir.debian.org jessie-updates Release
Err http://httpredir.debian.org jessie-updates/main amd64 Packages

Err http://httpredir.debian.org jessie-updates/main amd64 Packages

Err http://httpredir.debian.org jessie-updates/main amd64 Packages

Err http://httpredir.debian.org jessie-updates/main amd64 Packages

Err http://httpredir.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [824 kB]
Get:5 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 7s (1394 kB/s)
W: Failed to fetch http://httpredir.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.

似乎我使用的图像不再好,也许?
我该如何解决这个问题,或者至少找到另一个包含我需要的“图像”?我最初从 Bitbucket 文档示例中复制了这个管道,所以我不知道如何找到并用有效的东西替换图像。

另外,有什么方法可以让我在本地进行测试,这样我就不必每次都想测试时提交/推送吗?

最佳答案

我今天遇到了同样的问题

通过更新docker镜像版本解决
从 python:3.5.1 到 python:3.5.7 或 python:3.7.2

引用:https://community.atlassian.com/t5/Bitbucket-Pipelines-articles/Bitbucket-Pipelines-Apt-get-update-returning-404/ba-p/1042290#M54

关于debian - W : Failed to fetch http://httpredir. debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55377953/

相关文章:

python - matplotlib.animation : script works under Windows, 并在 Linux 下工作用于短动画,但对于较长的动画无限期挂起?

debian - 安装 VMware 工具失败并出现错误 :VGAuthService & Common Agent failed

debian - 我无法在 debian 上使用 uwsgi 正确设置 Bottle 的应用程序

regex - 从文本文件中提取电子邮件

laravel - BitBucket - 错误 : failed to push some refs

version-control - 如何实现这个 Mercurial+BitBucket 工作流程?

linux - 将 SSH key 添加到 authorized_keys : permission denied(publickey)

ubuntu - apt-get update, dist-upgrade, autoremove, autoclean 在单个 sudo 命令中

apt-get 使用 Multipass 更新 Ubuntu 20.04 VM 时哈希和不匹配

ubuntu - 更新后统一破坏