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 分钟前
【Linux】进程(二)
linux·运维·服务器
gs8014011 分钟前
逃离“时间回廊”:深度解析华为 FusionCompute 虚拟机时间回退迷局
运维·服务器
JasonFreeLab12 分钟前
DeepSeek TUI 安装配置极速指南(Win / Mac / Linux)
linux·运维·macos·ai·ai编程·ai写作
贝锐20 分钟前
远程控制如何赋能全平台设备?信创环境下贝锐向日葵的跨平台优势
linux·运维·远程控制
li16709027029 分钟前
第2课:Linux基础指令(上)
linux·运维·服务器
li16709027029 分钟前
第1课:Linux环境部署
linux·运维·服务器·vim
剑锋所指,所向披靡!37 分钟前
计算机网络之网络层
运维·服务器·计算机网络
号码认证服务38 分钟前
给用户打电话,怎么在对方手机显示为“XX证券”?号码认证办理步骤
android·运维·服务器·ios·智能手机·iphone·webview
云安全助手41 分钟前
如何防范DDoS攻击呢?
运维·服务器·网络
眷蓝天1 小时前
Kubernetes 优先级与调度管理
云原生·容器·kubernetes