跳到主要内容

docker问题

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/*' returned a non-zero code: 100

解决办法

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

再重新执行docker