AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

[Bug] Docker镜像无法构建

Open tihSdoolB opened this issue 3 months ago • 1 comments

在提问之前...

  • [x] 我已经搜索了现有的 issues
  • [x] 我在提问题之前至少花费了 5 分钟来思考和准备
  • [x] 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • [x] 我正在使用最新版的 Alas

描述你的问题

猜测是因为bullseye backports仓库已经EOL

如何复现

在项目根目录执行podman compose

预期行为

No response

相关 Logs

STEP 1/5: FROM python:3.7-slim-bullseye
STEP 2/5: WORKDIR /app/AzurLaneAutoScript
--> Using cache 3a8cb9fe6234d1b74e8890dd86c0543c2c5044b9cf1a0d7506749ff349019d6f
--> 3a8cb9fe6234
STEP 3/5: COPY requirements.txt /tmp/requirements.txt
--> Using cache 1f2393a4f1e0d6133598c7753566612141b0505672d321926a623be4e9b15dfc
--> 1f2393a4f1e0
STEP 4/5: RUN echo "deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\ndeb https://mirrors.aliyun.com/debian-security/ bullseye-security main\ndeb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main\ndeb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\ndeb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib" > /etc/apt/sources.list  && apt update  && apt install -y git adb libgomp1 openssh-client  && git config --global --add safe.directory '*'  && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  && echo 'Asia/Shanghai' > /etc/timezone  && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple  && pip install -r /tmp/requirements.txt  && rm /tmp/requirements.txt  && rm -r ~/.cache/pip

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 https://mirrors.aliyun.com/debian bullseye InRelease [75.1 kB]
Get:2 https://mirrors.aliyun.com/debian-security bullseye-security InRelease [27.2 kB]
Get:3 https://mirrors.aliyun.com/debian bullseye-updates InRelease [44.0 kB]
Ign:4 https://mirrors.aliyun.com/debian bullseye-backports InRelease
Get:5 https://mirrors.aliyun.com/debian bullseye/contrib Sources [43.2 kB]
Get:6 https://mirrors.aliyun.com/debian bullseye/main Sources [8500 kB]
Get:7 https://mirrors.aliyun.com/debian bullseye/non-free Sources [81.0 kB]
Get:8 https://mirrors.aliyun.com/debian bullseye/contrib amd64 Packages [50.4 kB]
Get:9 https://mirrors.aliyun.com/debian bullseye/non-free amd64 Packages [96.4 kB]
Get:10 https://mirrors.aliyun.com/debian bullseye/main amd64 Packages [8066 kB]
Err:11 https://mirrors.aliyun.com/debian bullseye-backports Release
  404  Not Found [IP: 183.214.1.62 443]
Get:12 https://mirrors.aliyun.com/debian-security bullseye-security/main Sources [257 kB]
Get:13 https://mirrors.aliyun.com/debian-security bullseye-security/main amd64 Packages [403 kB]
Get:14 https://mirrors.aliyun.com/debian bullseye-updates/main Sources [7908 B]
Get:15 https://mirrors.aliyun.com/debian bullseye-updates/main amd64 Packages [18.8 kB]
Reading package lists...
E: The repository 'https://mirrors.aliyun.com/debian bullseye-backports Release' does not have a Release file.
Error: building at STEP "RUN echo "deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib\ndeb https://mirrors.aliyun.com/debian-security/ bullseye-security main\ndeb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main\ndeb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib\ndeb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib\ndeb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib" > /etc/apt/sources.list  && apt update  && apt install -y git adb libgomp1 openssh-client  && git config --global --add safe.directory '*'  && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime  && echo 'Asia/Shanghai' > /etc/timezone  && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple  && pip install -r /tmp/requirements.txt  && rm /tmp/requirements.txt  && rm -r ~/.cache/pip": while running runtime: exit status 100
ERROR:podman_compose:Build command failed
Error: short-name "alas" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"

截图

No response

还有别的吗?

No response

tihSdoolB avatar Sep 20 '25 02:09 tihSdoolB

可以尝试镜像换源参考https://github.com/LmeSzinc/AzurLaneAutoScript/pull/4634

XingHeYuZhuan avatar Sep 20 '25 15:09 XingHeYuZhuan