geerlingguy / drupal-container

Drupal container for running Drupal sites with Docker, built with Ansible.
https://hub.docker.com/r/geerlingguy/drupal/
44 stars 26 forks source link

apt-get update causes errors. makes image unusable on intel Mac #36

Closed frob closed 2 years ago

frob commented 2 years ago

If I run the command:

docker run -it geerlingguy/drupal:latest bash

And then run apt-get update in the container session I get this as a result:

Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 https://packages.sury.org/php buster InRelease [6837 B]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Err:3 https://packages.sury.org/php buster InRelease
  At least one invalid signature was encountered.
Err:2 http://security.debian.org/debian-security buster/updates InRelease
  At least one invalid signature was encountered.
Err:1 http://deb.debian.org/debian buster InRelease
  At least one invalid signature was encountered.
Err:4 http://deb.debian.org/debian buster-updates InRelease
  At least one invalid signature was encountered.
Reading package lists... Done
W: GPG error: https://packages.sury.org/php buster InRelease: At least one invalid signature was encountered.
E: The repository 'https://packages.sury.org/php buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
frob commented 2 years ago

Not sure if thee is a command that will describe my system.

macOS Monterey 12.3.1 2.3Ghz Quad-Core Intel core i7 Docker version 20.10.13, build a224086

geerlingguy commented 2 years ago

Hmm... CI is pushing new image versions, so I wonder if something changed with the build since a while back. I'm still basing my work off the arm64 version built last 10 months ago :/

frob commented 2 years ago

After way too much time spent debugging the issue was solely on my machine. Docker Desktop for Mac had run out of space and this manifested as broken gpg keys. I removed all my stale images with docker image prune -a everything started working again.

geerlingguy commented 2 years ago

@frob - Weird! Adding that to my mental notes of things to remember to check if weird things happen in Docker...