AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1015294
Accepted
Stuggi
Stuggi
Asked: 2020-05-03 02:58:25 +0800 CST2020-05-03 02:58:25 +0800 CST 2020-05-03 02:58:25 +0800 CST

Gitlab Debian 存储库公钥不可用

  • 772

运行“sudo apt update”时出现以下错误:

user@gitlab:~$ sudo apt update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.fi.debian.org/debian stretch InRelease
Hit:3 http://ftp.fi.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.fi.debian.org/debian stretch Release
Get:6 https://packages.gitlab.com/gitlab/gitlab-ee/debian stretch InRelease [23.3 kB]
Err:6 https://packages.gitlab.com/gitlab/gitlab-ee/debian stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
Fetched 23.3 kB in 2s (11.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.gitlab.com/gitlab/gitlab-ee/debian stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ee/debian/dists/stretch/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
W: Some index files failed to download. They have been ignored, or old ones used instead.
debian apt gitlab
  • 1 1 个回答
  • 1429 Views

1 个回答

  • Voted
  1. Best Answer
    Stuggi
    2020-05-03T02:58:25+08:002020-05-03T02:58:25+08:00

    问题是Gitlab安装脚本安装的key已经过期。这可以通过运行来验证sudo apt-key list

    user@gitlab:~$ sudo apt-key list
    /etc/apt/trusted.gpg
    --------------------
    pub   rsa4096 2015-04-17 [SC] [expired: 2020-04-15]
          1A4C 919D B987 D435 9396  38B9 1421 9A96 E15E 78F4
    uid           [ expired] GitLab B.V. (package repository signing key) <[email protected]>
    -------Output Snipped----------
    

    这可以通过运行与Gitlab 安装脚本运行的相同命令轻松解决,该命令将从 Gitlab 获取新密钥并将其安装在 APT 密钥环中。

    curl -L "https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey" 2> /dev/null | sudo apt-key add - &>/dev/null
    

    在此之后,apt-key list可以重新运行该命令以验证密钥是否已正确安装。

    user@gitlab:~$ sudo apt-key list
    /etc/apt/trusted.gpg
    --------------------
    pub   rsa4096 2015-04-17 [SC] [expired: 2020-04-15]
          1A4C 919D B987 D435 9396  38B9 1421 9A96 E15E 78F4
    uid           [ expired] GitLab B.V. (package repository signing key) <[email protected]>
    
    pub   rsa4096 2020-03-02 [SC] [expires: 2022-03-02]
          F640 3F65 44A3 8863 DAA0  B6E0 3F01 618A 5131 2F3F
    uid           [ unknown] GitLab B.V. (package repository signing key) <[email protected]>
    sub   rsa4096 2020-03-02 [E] [expires: 2022-03-02]
    
    • 4

相关问题

  • 关闭 FTP

  • 如何在同一台电脑上从 putty 连接 debian vmware

  • debian- 文件到包的映射

  • Debian Ubuntu 网络管理器错误 [关闭]

  • 为本地网络中的名称解析添加自定义 dns 条目

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve