rapid7 / metasploit-omnibus

Packaging metasploit-framework with omnibus
248 stars 205 forks source link

Warning: apt-key is deprecated in Ubuntu 22.04.1 LTS #179

Open FX-Muesli opened 1 year ago

FX-Muesli commented 1 year ago

Manage keyring files in trusted.gpg.d instead.

I would suggest the following enhancement: Changing line 65 from: print_pgp_key | apt-key add - to: print_pgp_key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/metasploit-framework.gpg Maybe omit the tee, as the output is not really usefull. See also: https://opensource.com/article/22/9/deprecated-linux-apt-key

Crazyhead90 commented 1 year ago

Created a pull request to solve this issue (in ubuntu 22.04): https://github.com/rapid7/metasploit-omnibus/pull/192