docker出现gpgerror:atleastoneinvalidsignaturewasencountered相关问题及解决方法

为何一再沦落 为何一再沦落     2022-12-02     402

关键词:


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下载镜像出现failedtoregisterlayer:symlink....问题(代码片段)

在用Docker下载RabbitMQ的时候出现如下问题    个人解决方案:重启Docker。    若重启还是无法解决问题,可以先关闭Dockersystemctlstopdocker    然后把已下载的相关的容器删掉和配置文件删除    重启Docker候再次尝... 查看详情

macbookpro打开docker出现thedatacouldn’tbereadbecauseitismissing

环景:MacBookPro13macOS11.4问题描述:启动docker出现Thedatacouldn’tbereadbecauseitismissing解决方案:前往docker官网重新下载桌面版安装即可 查看详情

docker社区和企业版出现了

Docker社区和企业版出现了今天早上去官网看文档,一进去发现主页变了,映入眼帘的便是:joinusatDockercon,April17,2017。一脸蒙蔽的我往下翻了翻,发现做了这么久的解决方案,docker企业版都支持,但是收费!!!!而且,Dockercon是... 查看详情

win10安装docker安装出现的问题

...ProgramFilesOracleVirtualBoxVBoxManage.exe   这个估计是安装docker时默认安装的orclevirtualbox太老了,只需要把自带的virtualbox卸载掉,重启之后再从下面的地址选择最新的安装即可  virtualbox下载地址:https://www.virtualbox.org/wiki/Downloads2... 查看详情

在 docker 容器中运行 jenkins 代理,jenkins 管道和 /var/run/docker.socket 出现问题

】在docker容器中运行jenkins代理,jenkins管道和/var/run/docker.socket出现问题【英文标题】:Runjenkinsagentindockercontainer,issuewithjenkinspipelineand/var/run/docker.socket【发布时间】:2018-03-1320:18:39【问题描述】:我创建了用于詹金斯代理奴隶的... 查看详情

Docker gradlew 构建失败并出现 HibernateException

】Dockergradlew构建失败并出现HibernateException【英文标题】:DockergradlewbuildfailswithHibernateException【发布时间】:2020-01-2718:41:00【问题描述】:我正在尝试对使用gradle和kotlin的springboot应用程序进行dockerize。我有一个看起来像这样的Dock... 查看详情

docker中出现容器未运行无法进入容器的操作

  查看详情

docker下jenkens打包出现gotpermissiondeniedwhiletryingtoconnecttothedockerdaemonsocketatuni

#进入Jenkins容器内(5c8为容器id)dockerexec-it-uroot5c8bash#修改docker权限chmod777/var/run/docker.sock 查看详情

docker mysql 出现错误:连接 ECONNREFUSED

】dockermysql出现错误:连接ECONNREFUSED【英文标题】:dockermysqlwithError:connectECONNREFUSED【发布时间】:2019-10-0820:34:16【问题描述】:尝试从微服务中连接数据库,连接数据库失败错误:连接ECONNREFUSED172.18.0.2:3306service/index.jsvarhttp=requir... 查看详情

Docker 构建失败并出现“找不到秘密 pip:未找到”错误

】Docker构建失败并出现“找不到秘密pip:未找到”错误【英文标题】:Dockerbuildfailswith\'secretpipnotfound:notfound\'error【发布时间】:2021-06-1602:50:20【问题描述】:我正在尝试构建一个docker映像,但得到了secretpipnotfound:notfound对此有什... 查看详情

centos8安装docker出现podman冲突(代码片段)

问题原因分析:Centos8使用yuminstalldocker-y时,默认安装的是podman-docker软件先删掉podman依赖yumerasepodmanbuildahcurlhttps://download.docker.com/linux/centos/docker-ce.repo-o/etc/yum.repos.d/docker-ce.repo#http 查看详情

是啥导致 Docker/Node 在负载下出现 ESOCKETTIMEDOUT 或 ECONNREFUSED 错误?

】是啥导致Docker/Node在负载下出现ESOCKETTIMEDOUT或ECONNREFUSED错误?【英文标题】:WhatcausestheESOCKETTIMEDOUTorECONNREFUSEDerrorunderloadwithDocker/Node?是什么导致Docker/Node在负载下出现ESOCKETTIMEDOUT或ECONNREFUSED错误?【发布时间】:2018-05-2516:06:33... 查看详情

Docker,Mongodb,Windows 上的 Spring Boot 出现连接被拒绝错误

】Docker,Mongodb,Windows上的SpringBoot出现连接被拒绝错误【英文标题】:Docker,Mongodb,SpringBootonWindowsgettingConnectionrefusederror【发布时间】:2019-07-2713:52:18【问题描述】:我正在使用MongoDB的默认docker映像,并尝试在windows框中使用简单... 查看详情

docker出现gpgerror:atleastoneinvalidsignaturewasencountered相关问题及解决方法

docker出现GPGerror:Atleastoneinvalidsignaturewasencountered相关问题及解决方法。W:GPGerror:http://mirrors.tuna.tsinghua.edu.cn/debianbusterInRelease:Atleastoneinvalidsignaturewasencountered.E:Therepositoryhttp://m 查看详情

centos8安装docker出现podman冲突(代码片段)

问题原因分析:Centos8使用yuminstalldocker-y时,默认安装的是podman-docker软件先删掉podman依赖yumerasepodmanbuildahcurlhttps://download.docker.com/linux/centos/docker-ce.repo-o/etc/yum.repos.d/docker-ce.repo#http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.r... 查看详情

docker挂载主机目录docker访问出现permissiondenied的解决办法

Docker挂载主机目录,访问相应的文件出现Premissiondenied的权限访问问题, [[email protected]soft]#dockerimagesREPOSITORY         TAG         IMAGEID     &... 查看详情

serverless云服务的出现以及docker容器带来的变化

Serverless云服务的出现以及docker容器带来的变化随着云服务的不断发展,很多公司都把自己的服务放在云上,通过云来管理各种服务。云服务的演进一开始是VM虚拟化技术的出现,再后来出现Iaas,基础架构即服务,通过虚拟化技... 查看详情

由于 Null 异常,.net core docker 容器在生产中退出并出现错误代码 139

】由于Null异常,.netcoredocker容器在生产中退出并出现错误代码139【英文标题】:.netcoredockercontainerexitedwitherrorcode139inproductionbecauseofNullException【发布时间】:2020-05-1116:52:10【问题描述】:我有一个带有.net核心网络应用程序的docker... 查看详情