Part of this answer references GPT, GPT_Pro better to solve the problem
Kali may start Metasploit error, There may be some restrictions on the use of Metasploit, as there are some security precautions in today's operating systems.
To fix this problem, first check whether the Kali Linux installed on the machine is compatible with the operating system version(e.g. Windows, Linux, macOS, etc.), if not, re-download the Kali Linux installation file and reinstall Kali Linux.
Second, check to see if security software such as antivirus or firewall is running and if possible turn them off, or add Metasploit to the whitelist.
Also, you can try to run Metasploit with root permission before you run Metasploit. In general, root permission greatly reduces the impact of security restrictions.
Finally, if the above methods do not solve the problem, consider reinstalling the entire Kali Linux system and backing up the data before reinstalling.
In general, to fix the problem of Kali starting Metasploit, you should first check whether the version of Kali Linux is compatible with the operating system; Then check to see if anti-virus software or firewalls are running; Also consider running Metasploit with root permission; If that doesn't work, reinstall Kali Linux.
If the answer is helpful, please accept it.