First Try sudo apt-get remove metasploit-framework then, sudo apt update ; sudo apt install metasploit-framework or sudo msfupdate