【发布时间】:2021-10-17 14:44:01
【问题描述】:
我在运行 yaml 脚本的 Bitbucket Pipelines 上有一个暂存和生产服务器设置;
image: samueldebruyn/debian-git
name: Staging - Upload FTP
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD -v ftp://$FTP_HOST/$FTP_STAGING_PATH
- echo "Completed upload"
此脚本运行良好,并以相同格式在线广泛用于其他使用管道的人。
我在 Debian 11 发布成功构建之前 5-10 分钟提交到我的暂存服务器,然后发布 Debian 11 Release 所有后续版本我推送到暂存,或者生产导致构建失败并出现以下错误...
Ign:1 http://security.debian.org/debian-security stable/updates InRelease
Get:2 http://deb.debian.org/debian stable InRelease [113 kB]
Err:3 http://security.debian.org/debian-security stable/updates Release
404 Not Found [IP: 151.101.250.132 80]
Get:4 http://deb.debian.org/debian stable-updates InRelease [40.1 kB]
Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8178 kB]
Reading package lists...
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.
是我遗漏了什么,还是 Debian 11 只是破坏了很多管道?!
或者samueldebruyn/debian-git 现在已经过时了吗?
【问题讨论】:
-
在您的 apt/sources.list 中尝试
http://security.debian.org/debian-security stable-security Release。 -
我正在拉图片? samueldebruyn/debian-git 的 git repo 不再是可以依赖的有效 repo 了吗?
-
泊坞窗图像?如果是这样,图像似乎有一个损坏的 sources.list。
-
由于 docker 文件使用“未版本化”的基础镜像 (debian:stable-slim) 并且 stable-slim 在前几天发布到 debian 11,因此该镜像得到了很多更新可能没有准备好。它可能应该被锁定到 debian 10 slim,在那里它被测试并工作,直到 debian 11 的问题被解决。
-
也就是说,您看到的 repo 消息是一个警告,本身不应该破坏任何东西。问题是使用 apt 无法正确提取任何安全更新。
标签: debian bitbucket pipeline bitbucket-pipelines