gpt4 book ai didi

Bitbucket Pipelines apt-get 停止工作

转载 作者:行者123 更新时间:2023-12-03 02:20:57 25 4
gpt4 key购买 nike

我的 Bitbucket Pipelines 配置了一段时间,但今天我的构建在 apt-get 命令上开始失败:

我使用 java 8 docker 镜像:

 image: java:8

我需要安装 python

 # Install python
- echo "Install python"
- apt-get update
- apt-get install python-pip -q -y

构建在“apt-get”命令上开始失败:

+ apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Ign http://deb.debian.org jessie-backports InRelease
Get:2 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Ign http://deb.debian.org jessie-backports Release.gpg
Get:3 http://deb.debian.org jessie Release [148 kB]
Ign http://deb.debian.org jessie-updates Release
Ign http://deb.debian.org jessie-backports Release
Err http://deb.debian.org jessie-backports/main amd64 Packages

Get:4 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
404 Not Found
Err http://deb.debian.org jessie-backports/main amd64 Packages
404 Not Found
Fetched 10.1 MB in 7s (1395 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://deb.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Skipping cache upload for failed step
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

有什么变化吗?我需要调整我的配置吗?

最佳答案

正如其他答案所引用的,Jessie and Wheezy repositories have been removed from their normal locations 。当尝试在某些 Docker 镜像上运行 apt-get update 时,这将导致 404 错误。

除非您需要从 Docker 镜像中获取非常具体的内容,否则我建议您将其更改为使用 Debian Stretch 存储库的镜像。

在您的情况下,使用 java:8 图像,这已是 deprecated支持openjdk image 。我测试了 openjdk:8 并发现它使用 Stretch 并运行 apt-get update 正常。

我还写了一个official post on Atlassian Community具有类似的细节。如果我们发现任何其他可能与解决此问题相关的内容,我们将更新本文。

关于Bitbucket Pipelines apt-get 停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55364597/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com