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 
相关推荐
bing.shao6 分钟前
Goer-Docker系列-1-管理工具
docker·容器·eureka
MasonYyp6 分钟前
Docker安装和使用kkfileview
运维·docker·容器
王煜苏6 分钟前
contos7安装dokcer遇到的坑,docker-composer
docker·eureka·composer
渡我白衣7 分钟前
深入 Linux 内核启动:从按下电源到用户登录的全景解剖
java·linux·运维·服务器·开发语言·c++·人工智能
DreamLife☼12 分钟前
Docker-Dockerfile 完全指南:编写最佳实践的镜像
docker·镜像构建·多阶段构建·docker 安全·最小化镜像·非 root 用户·构建缓存
代码炼金术士12 分钟前
linux的nginx版本升级
linux·运维·nginx
大柏怎么被偷了1 小时前
【Linux】版本控制器git
linux·运维·服务器
Guheyunyi1 小时前
安全风险监测系统核心技术
运维·网络·人工智能·安全
adnyting2 小时前
【Linux日新月异(四)】CentOS 7进程管理深度指南:掌控系统生命线
linux·运维·centos
毛甘木2 小时前
阿里云CentOS环境下Docker Compose详细使用教程
阿里云·docker·centos