【问题标题】:Ubuntu 18.04.1 LTS server "The repository is not signed"Ubuntu 18.04.1 LTS 服务器“存储库未签名”
【发布时间】:2018-11-22 16:07:36
【问题描述】:

我无法更新新安装的 Ubuntu 18.04.1 LTS 服务器。 “存储库未签名”

lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:         18.04
Codename:     bionic

当运行sudo apt update 时,它显示(所有存储库):

N: See the apt-secure (8) man page for details on creating repositories and configuring users.
N: You can not update from a repository like this in a secure way and therefore it is disabled by default.
E: The repository "http://security.ubuntu.com/ubuntu bionic-security InRelease" is not signed.
E: Failed to obtain http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 403 Forbidden [IP: 91.189.88.162 80]

在运行curl http://security.ubuntu.com/ubuntu/ o curl http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease 时,我得到了内容。证明如果我可以从服务器访问存储库。

感谢您的帮助,我该怎么做才能更新我的服务器?

【问题讨论】:

  • 这应该发布到 SuperUser 或 Unix StackExchange,而不是 Stack Overflow。

标签: ubuntu server apt ubuntu-18.04


【解决方案1】:

SOLUTION 将服务器连接到另一个网络,很奇怪,在网络中这让我用curl 下载内容但不会让apt 更新

【讨论】:

    【解决方案2】:

    嗨@Wilfred 这可能是由于未使用的文件和包造成的,因此只需使用“sudo apt-get autoremove --purge”删除未使用的文件和包,然后重试更新命令。

    【讨论】:

    • 您好,感谢您的回答,新安装的ubuntu,我没有添加另一个存储库,它只有默认存储库。默认情况下,我正在尝试更新这些存储库。如果您有任何其他建议,我会给它很多
    猜你喜欢
    • 1970-01-01
    • 2020-04-24
    • 2019-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-24
    • 1970-01-01
    相关资源
    最近更新 更多