首页 新闻 会员 周边 捐助

阿里云 debian 镜像源问题:"The repository 'http://mirrors.aliyun.com/debian bookworm InRelease' is not signed"

0
悬赏园豆:30 [已解决问题] 解决于 2025-09-16 22:49

今天一个项目跑 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.

请问如何解决这个问题?

dudu的主页 dudu | 高人七级 | 园豆:24827
提问于:2025-09-16 22:38
< >
分享
最佳答案
0

奇怪,重新 build 又正常了,期间出现过磁盘空间满的问题,可能是这个引起的

dudu | 高人七级 |园豆:24827 | 2025-09-16 22:46

今天再次遇到,的确是磁盘空间满引起的

dudu | 园豆:24827 (高人七级) | 2025-09-18 19:08
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册