9
2

More than 1 year has passed since last update.

メモ:Dockerビルドステップの「apt-get update」で「executor failed running」エラー

Last updated at Posted at 2023-06-18

Dockerビルド中に「RUN apt-get update」でエラーが出た。
GPG keyとかレポジトリへの接続の問題と思いきや、単にローカル環境の容量不足でした。

解決した方法

$ docker system prune
WARNING! This will remove:

  • all stopped containers
  • all networks not used by at least one container
  • all dangling images
  • all dangling build cache
    ...
    ...
    Total reclaimed space: 43.17GB

Error LOG

=> ERROR [4/7] RUN apt-get update 1.1s
[4/7] RUN apt-get update:
#0 0.753 Get:1 http://deb.debian.org/debian bookworm InRelease [147 kB]
#0 0.785 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
#0 0.789 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
#0 0.869 Err:1 http://deb.debian.org/debian bookworm InRelease
#0 0.869 At least one invalid signature was encountered.
#0 0.947 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#0 0.947 At least one invalid signature was encountered.
#0 1.036 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#0 1.036 At least one invalid signature was encountered.
#0 1.051 Reading package lists...
#0 1.078 W: GPG error: http://deb.debian.org/debian bookworm InRelease: At least one invalid signature was encountered.
#0 1.078 E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
#0 1.078 W: GPG error: http://deb.debian.org/debian bookworm-updates InRelease: At least one invalid signature was encountered.
#0 1.078 E: The repository 'http://deb.debian.org/debian bookworm-updates InRelease' is not signed.
#0 1.078 W: GPG error: http://deb.debian.org/debian-security bookworm-security InRelease: At least one invalid signature was encountered.
#0 1.078 E: The repository 'http://deb.debian.org/debian-security bookworm-security InRelease' is not signed.
ERROR: failed to solve: executor failed running [/bin/sh -c apt-get update]: exit code: 100


参考

微妙にログは違うけど、同じ内容だった
https://qiita.com/yukia3e/items/6e2536dd90d34a8b01cc
https://note.yu9824.com/error/2022/03/19/docker-debian-gpg-error.html

9
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
2