repository-is-not-signed-in-docker-build

docker编译的时候

复制代码
FROM ubuntu:latest  
RUN apt-get update  && apt-get install -y  g++ llvm lcov 

报错: repository-is-not-signed-in-docker-build

复制代码
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease 
At least one invalid signature was encountered.

Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  At least one invalid signature was encountered.

Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  At least one invalid signature was encountered.

Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  At least one invalid signature was encountered.

Reading package lists...

W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.

W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.

W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.

W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.

解决办法:

复制代码
docker system df
docker image prune 
docker container prune 
相关推荐
广东大榕树信息科技有限公司6 分钟前
如何运用国产信创动环监控系统来保障生产安全与效率提升?
运维·网络·物联网·国产动环监控系统·动环监控系统
野猪佩挤9 分钟前
jenkins-ci/cd yaml模版配置
运维·ci/cd·jenkins
斯普信云原生组14 分钟前
开源软件日志统一管理方案-Filebeat
运维·jenkins
网络风云28 分钟前
Flask 的 Docker 部署指南
python·docker·flask
飞Link33 分钟前
【Anaconda】Linux(CentOS7)下安装Anaconda教程
linux·运维·python
Ama_tor42 分钟前
docker|F盘安装の1键部署软件及数据储存+2个保姆级运行实例
运维·docker·容器
@时间旅行者@1 小时前
LINUX离线安装postgres,rpm方式安装
linux·运维·服务器·postgresql·离线安装
whlqjn_12111 小时前
Ubuntu 20.04图形界面卸载
linux·运维·ubuntu
杨云龙UP1 小时前
SQL Server 2016通过SSMS(SQL Server Management Studio)图形界面完成创建用户和授权_20251230
运维·服务器·数据库
可爱又迷人的反派角色“yang”1 小时前
GitLab配置与git集成实践
linux·网络·git·docker·云计算·gitlab