docker出现GPG error: At least one invalid signature was encountered 相关问题及解决方法

Posted 为何一再沦落

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker出现GPG error: At least one invalid signature was encountered 相关问题及解决方法相关的知识,希望对你有一定的参考价值。


docker出现GPG error: At least one invalid signature was encountered 相关问题及解决方法。

W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease: At least one invalid signature was encountered.
E: The repository http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease is not signed.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease is not signed.
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.
ERROR: Service flake8 failed to build : The command /bin/sh -c sed -i
s/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g /etc/apt/sources.list
&& apt-get update && apt-get install tzdata cron libboost-dev libboost-python-dev netcat -y
&& rm -rf /var/lib/apt/lists/*
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease: At least one invalid signature was encountered.
E: The repository http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease is not signed.
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease is not signed.
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.
ERROR: Service autotest failed to build : The command /bin/sh -c sed -i
s/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g /etc/apt/sources.list
&& apt-get update && apt-get install tzdata cron libboost-dev libboost-python-dev netcat -y
&& rm -rf /var/lib/apt/lists/*
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [121 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [248 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7856 B]
Fetched 8401 kB in 4s (2021 kB/s)

解决方法:

docker image prune -a 
docker container prune -a
docker system prune
docker system df

There are a few reasons why you encounter these errors:

There might be an issue with the existing cache and/or disc space. In order to fix it you need to clear the APT cache by executing: sudo apt-get clean and sudo apt-get update.

The same goes with existing docker images. Execute: docker image prune -f and docker container prune -f in order to remove unused data and free disc space.

If you don’t care about the security risks, you can try to run the apt-get command with the --allow-unauthenticated or --allow-insecure-repositories flag. According to the docs:

Ignore if packages can’t be authenticated and don’t prompt about it. This can be useful while working with local repositories, but is a huge security risk if data authenticity isn’t ensured in another way by the user itself.

Finally, on MacOS, where Docker runs inside a dedicated VM, you may need to increase the disk available to Docker from the Docker Desktop application (Settings -> Resources -> Advanced -> Disk image size).


以上是关于docker出现GPG error: At least one invalid signature was encountered 相关问题及解决方法的主要内容,如果未能解决你的问题,请参考以下文章

主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea

Linux下docker报错syntax error:unexpected protocol at end of statement

lea 0x4(%esp),%ecx 在 AT&T 语法中是啥意思?

ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

在springboot启动报错:No qualifying bean of type 'javax.sql.DataSource' available: expected at lea