Linux Debian apt-get 更新错误/Atom 缺少 GPG key

标签 linux debian atom-editor public-key-encryption gpg-signature

我在我的机器上运行 linux debian 9.4.0 64 位。由于我安装了 atom 文本编辑器,我在运行 ap-get update 时收到错误消息。错误内容如下:

W: GPG-Fehler: https://packagecloud.io/AtomEditor/atom/any any InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 4C6E74D6C0A35108 W: The repository 'https://packagecloud.io/AtomEditor/atom/any any InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.

第一行说无法验证我的 PGP key 的签名,因为 PUBKEY 不可用。

即使我从系统中清除了 atom,也会不断显示相同的错误消息。

有人可以帮我让我的系统再次正确更新,以及如何安装 atom 而不会导致 future 出现问题吗?

提前致谢!

最佳答案

编辑:我最初误解了这个问题,并认为您想要完全删除 Atom 和存储库。在这种情况下,解决方案是从您的 /etc/apt/sources.list 文件(或 etc/apt/sources.list.d< 中的相关文件)中删除相关条目,以存在者为准)。

现在我了解到您正在尝试安装和更新 Atom,但不会给您问题中描述的错误消息。

在那种情况下,您的系统上可能没有安装存储库 key 。您可以尝试按照 https://packagecloud.io/app/AtomEditor/atom/gpg#gpg-apt 中的说明进行操作手动安装所需的 GPG key 。我建议阅读该页面上的所有说明,但相关命令是 curl -L https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -

关于Linux Debian apt-get 更新错误/Atom 缺少 GPG key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50619086/

相关文章:

linux - 在 bash 中移动文件时遇到问题

ffmpeg - 使用 ffmpeg 和 xvfb 渲染屏幕的裁剪版本

node.js - 如何在Atom中显示整个项目的所有eslint警告?

regex - 在 Atom 包中,如何在语法中重叠模式?

reactjs - 如何默认 Atom 打开具有特定语言语法突出显示的特定文件扩展名?

linux - 我可以在 Linux 服务器上安装两个 Chef 客户端,以便两个客户端都可以管理 Linux 服务器吗?

linux - 如何在bash中获取二维数组第二维的大小?

linux - 用 UNIX 时间戳替换日期,同时保留该行的其余部分

linux - 在 debian wheezy 中安装 3.5 内核的头文件?

debian - 无法访问在 Google Compute Engine 中的 Debian Wheezy 实例上运行的 RabbitMQ 服务器的 RabbitMQ 管理页面