今天一个项目跑 CI 过程中 build 镜像时遇到的问题
Dockerfile 对应的配置
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list.d/debian.sources && \
sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list.d/debian.sources && \
apt-get update && apt-get install -y curl
报错信息如下
#28 [stage-4 6/7] RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list.d/debian.sources && sed -i s@/security.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list.d/debian.sources && apt-get update && apt-get install -y curl
#28 sha256:80836572a9ab8748771a6ccd8102d9399ff9b0a7d87504b1596a23a3bcdf2985
#28 0.545 Get:1 http://mirrors.aliyun.com/debian bookworm InRelease [151 kB]
#28 0.573 Get:2 http://mirrors.aliyun.com/debian bookworm-updates InRelease [55.4 kB]
#28 0.589 Get:3 http://mirrors.aliyun.com/debian-security bookworm-security InRelease [48.0 kB]
#28 0.631 Err:1 http://mirrors.aliyun.com/debian bookworm InRelease
#28 0.631 At least one invalid signature was encountered.
#28 0.669 Err:2 http://mirrors.aliyun.com/debian bookworm-updates InRelease
#28 0.669 At least one invalid signature was encountered.
#28 0.722 Err:3 http://mirrors.aliyun.com/debian-security bookworm-security InRelease
#28 0.722 At least one invalid signature was encountered.
#28 0.735 Reading package lists...
#28 0.748 W: GPG error: http://mirrors.aliyun.com/debian bookworm InRelease: At least one invalid signature was encountered.
#28 0.748 E: The repository 'http://mirrors.aliyun.com/debian bookworm InRelease' is not signed.
请问如何解决这个问题?
奇怪,重新 build 又正常了,期间出现过磁盘空间满的问题,可能是这个引起的
今天再次遇到,的确是磁盘空间满引起的