metasploit update code example
Example 1: how to update metasploit
First Try
sudo apt-get remove metasploit-framework
then,
sudo apt update ; sudo apt install metasploit-framework
or
sudo msfupdate
Example 2: update metasploit
sudo apt install metasploit-framework
msfupdate