There are many ways to get online to download and install on github, but this method can indeed be particularly slow, updates are also particularly slow, faster way to write here
1. Add kali source
vim /etc/apt/sources.list
Add domestic kali source based on the original source on the Tencent cloud source used here // Tencent source within the network outside of your domain name is not the same
deb http://mirrors.cloud.tencent.com/kali/ kali-rolling main contrib non-free deb-src http://mirrors.cloud.tencent.com/kali/ kali-rolling main contrib non-free
2. Add a digital signature
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
3. Install msf can
apt update&&apt install metaspliot-framework -y
Update msf
apt update; apt install metasploit-framework
kali other software can also be installed on the system by way of the other lines debian