遇到至少一个无效签名 [英] Atleast one invalid signature was encountered

查看:856
本文介绍了遇到至少一个无效签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用minikube将微服务映像构建并部署到在我的开发机器上运行的单节点Kubernetes集群上.我正在使用Google的云原生微服务演示应用程序Online Boutique来了解Kubernetes,Istio等技术的使用.

I am trying to build and deploy microservices images to a single-node Kubernetes cluster running on my development machine using minikube. I am using the cloud-native microservices demo application Online Boutique by Google to understand the use of technologies like Kubernetes, Istio etc.

链接到github存储库: microservices-demo

Link to github repo: microservices-demo

在遵循安装过程的同时,在运行命令skaffold run来构建和部署我的应用程序时,出现一些错误:

While following the installation process, and on running command skaffold run to build and deploy my application, I get some errors:

Step 10/11 : RUN apt-get -qq update     && apt-get install -y --no-install-recommends         curl
 ---> Running in 43d61232617c
W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://deb.debian.org/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.
failed to build: couldn't build "loadgenerator": unable to stream build output: The command '/bin/sh -c apt-get -qq update     && apt-get install -y --no-install-recommends         curl' returned a non-zero code: 100

在尝试构建Loadgenerator时,我收到这些错误. 我该如何解决这个问题?

I receive these errors when trying to build loadgenerator. How can I resolve this issue?

推荐答案

有几个原因导致您遇到这些错误:

There are a few reasons why you encounter these errors:

  1. 现有的缓存和/或磁盘空间可能存在问题.为了修复它,您需要通过执行sudo apt-get cleansudo apt-get update清除APT缓存.

现有的docker映像也是如此.执行:docker image prune -fdocker container prune -f,以删除未使用的数据并释放磁盘空间.

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.

如果您不关心安全风险,则可以尝试使用--allow-unauthenticated--allow-insecure-repositories标志运行apt-get命令.根据文档:

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.

请让我知道是否有帮助.

Please let me know if that helped.

这篇关于遇到至少一个无效签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆