metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

Install fails citing GPG Error

Open edrapac opened this issue 1 year ago • 6 comments

Steps to reproduce

How'd you do it?

  1. Follow the documented steps to installing Metasploit on Linux
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  chmod 755 msfinstall && \
  ./msfinstall
  1. Receive the following error message
 curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && sudo ./msfinstall
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  6144  100  6144    0     0  33081      0 --:--:-- --:--:-- --:--:-- 33210
Adding metasploit-framework to your repository list..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... Done
Reading state information... Done
E: Unable to locate package metasploit-framework

Were you following a specific guide/tutorial or reading documentation?

If yes link the guide/tutorial or documentation you were following here, otherwise you may omit this section. Yes, the metasploit official docs: https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html

Expected behavior

What should happen? The installer should run successfully

Current behavior

What happens instead? The installation fails, citing a GPG error

Metasploit version

N/A - I attempted this install on 10 - April - 2024 and 11 - April 2024

Running this on Ubuntu 22.04.4 LTS "jammy"

edrapac avatar Apr 11 '24 12:04 edrapac

The error you are seeing seems related to you not doing things as expected, see this old issue: https://github.com/rapid7/metasploit-framework/issues/7336

It specifically talks about your gpg key issue (missing key)

nrathaus avatar Apr 11 '24 14:04 nrathaus

Hi @nrathaus Could you explain a bit more when you say I am not doing things as expected? As far as I understand it, the steps I outlined to reproduce are the steps outlined by the official documentation to install metasploit-framework

edrapac avatar Apr 11 '24 15:04 edrapac

Can you verify that this: /usr/share/keyrings/metasploit-framework.gpg

Exists?

This is where the key is stored - it seems this step failed

nrathaus avatar Apr 11 '24 15:04 nrathaus

We can close this one - there is no response from @edrapac

nrathaus avatar Apr 21 '24 11:04 nrathaus

Maybe a regression introduced by https://github.com/rapid7/metasploit-omnibus/pull/192

adfoster-r7 avatar May 11 '24 23:05 adfoster-r7

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Jun 11 '24 15:06 github-actions[bot]

Hi again!

It’s been 60 days since anything happened on this issue, so we are going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Jul 12 '24 15:07 github-actions[bot]