I am using Python 37 as the basic image to create the project image, but there is a GPG signature error when executing apt get update during the construction process
The local operating system is Mac OS, and the docker environment is desktop for docker:
Docker version 20.10.7, build f0df350
Error details:
Err:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease At least one invalid signature was encountered. Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [107 kB] Err:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease At least one invalid signature was encountered. Err:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease At least one invalid signature was encountered. Err:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease At least one invalid signature was encountered. Reading package lists... Done W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal 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://ports.ubuntu.com/ubuntu-ports focal-updates InRelease: At least one invalid signature was encountered. E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default.
Solution:
docker image prune -a
Some images will be cleaned up and then built. There will be no errors
Similar Posts:
- [Solved] Err:12 http://security.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.11+9-0ubuntu2~20.04 404 Not Found [IP: 91.189.88.152 80]
- System update error: no_PUBKEY [How to Solve]
- apt-get: Could not resolve ‘archive.ubuntu.com’
- [Solved] Ubuntu sudo apt-get update Warning: Failed to fetch
- driver failed programming external connectivity on endpoint inspiring_mayer
- [Solved] Docker ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket – is it running?
- Linux Error: apt-get 404 not found [How to Solve]
- [Solved] gpg: keyserver receive failed: Invalid argument
- About the Ubuntu configuration file apache2 httpd.conf position
- [Solved] http: server gave HTTP response to HTTPS client