代码之家  ›  专栏  ›  技术社区  ›  Chris Harris

如何信任APT存储库:debian apt get update error public key is not available:no_pubkey<id>[关闭]

  •  68
  • Chris Harris  · 技术社区  · 17 年前

    尝试在Debian Etch安装上更新一些存储库,并从运行“apt get update”中获取以下错误

    W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907
    W: You may want to run apt-get update to correct these problems
    

    讽刺的是,它指示我运行apt-get-update是一个很好的推动…

    2 回复  |  直到 13 年前
        1
  •  107
  •   Chris Harris    17 年前

    我发现有几篇文章告诉我要运行几个gpg命令,但是它们没有解决这个问题,因为有两件事。首先,我的系统中缺少debian keyring包,其次我使用了一个无效的keyserver。如果超时,请尝试不同的keyservers!

    因此,我修复它的方法是:

    apt-get install debian-keyring
    gpg --keyserver pgp.mit.edu --recv-keys 1F41B907
    gpg --armor --export 1F41B907 | apt-key add -
    

    然后运行一个新的“apt-get-update”毫无瑕疵地工作!

        2
  •  24
  •   mivk    14 年前

    我有一个相同的问题,就是“gpg:keyserver超时”,有几个不同的服务器。最后,结果发现我根本不需要手动操作。在Debian系统中,修复它的简单解决方案是(作为根或以sudo开头):

    aptitude install debian-archive-keyring
    

    如果是你需要的其他钥匙圈,请看

    apt-cache search keyring | grep debian
    

    我的挤压系统显示了所有这些:

    debian-archive-keyring       - GnuPG archive keys of the Debian archive
    debian-edu-archive-keyring   - GnuPG archive keys of the Debian Edu archive
    debian-keyring               - GnuPG keys of Debian Developers
    debian-ports-archive-keyring - GnuPG archive keys of the debian-ports archive
    emdebian-archive-keyring     - GnuPG archive keys for the emdebian repository
    
    推荐文章