【问题标题】:apt update from kubernetes cluster gives error Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)来自 kubernetes 集群的 apt update 给出错误 Clearsigned file is not valid, got 'NOSPLIT' (does the network requires authentication?)
【发布时间】:2019-03-19 17:35:03
【问题描述】:

我部署了一个 kubernetes 集群,并尝试用一个简单的 bash pod 对其进行测试,如下所示

kubectl run my-shell --rm -i --tty --image ubuntu -- bash

在收到 shell 提示后,我尝试进行 apt-get update 并出现以下错误

root@my-shell-796b6f7d5b-274q9:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done

如果您能提出错误的建议,不胜感激。我觉得这是一个 DNS 错误或类似的东西。我在 shell pod 中添加了名称服务器为 8.8.8.8

【问题讨论】:

  • 看起来是代理问题。检查askubuntu.com/questions/899009/…
  • 我在发帖前检查了这个。这似乎是 DNS 解析的问题。我尝试添加名称服务器 8.8.8.8 但似乎没有帮助。
  • 你能在机器内部使用wget命令吗?如果您遇到 dns 或互联网连接问题,它会给您提示。

标签: docker kubernetes containers ubuntu-16.04 apt


【解决方案1】:

代理或防火墙似乎阻止了连接。

该命令是否适用于托管 Kubernetes 的机器?

如果是这样,那么 Kubernetes 正在干扰 http://*.ubuntu.com/

如果不是,那么这是您当前网络的问题

【讨论】:

    猜你喜欢
    • 2022-11-22
    • 2022-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-24
    • 2022-12-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多