【问题标题】:GPG error when updating - Metasploit - How can I fix it?更新时出现 GPG 错误 - Metasploit - 我该如何解决?
【发布时间】:2020-08-18 01:53:09
【问题描述】:

更新时出现 GPG 错误 - Metasploit

# curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall &&   chmod 755 msfinstall &&   ./msfinstall

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100  5495  100  5495    0     0  67839      0 --:--:-- --:--:-- --:--:-- 67839

Switching to root user to update the package

Adding metasploit-framework to your repository list..gpg: can't connect to the agent: IPC connect call failed
Updating package cache..W: GPG error: http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY CDFB5FA52007B954
E: The repository 'http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid InRelease' is not signed.
OK
Checking for and installing update..
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package metasploit-framework

【问题讨论】:

    标签: ubuntu metasploit


    【解决方案1】:

    如果您在运行 WSL 2.0 的 Ubuntu 上看到此问题(或者即使您不是),请删除 gpg 包并安装 gnupg1 包。

    sudo apt remove gpg
    sudo apt-get update -y
    sudo apt-get install -y gnupg1 
    

    查看更多详情

    gpg: can't connect to the agent: IPC connect call failed

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-12
      • 2019-06-28
      • 2016-06-19
      • 1970-01-01
      • 2018-12-25
      • 2018-04-28
      • 2014-07-28
      • 1970-01-01
      相关资源
      最近更新 更多