首先执行更新系统命令:
sudo apt-get update
sudo apt-get upgrade
这里因为执行过程中网速等原因会下载失败,如果有必要请执行两次命令
然后先执行卸载命令,以防之前装过,因为环境等原因不能使用:
sudo apt-get remove metasploit-framework
之后执行安装命令:
sudo apt-get install metasploit-framework
如果这里出现报错、error等情况,需要重新换更新源,这个系统有别于其他Debian系统…
命令:
vim /etc/apt/sources.list.d/parrot.list
我用的是清华的源:

清华:
deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free
这里还有其他的:
中科大:
deb http://mirrors.ustc.edu.cn/parrot parrot main contrib non-free
上海大学:
deb https://mirrors.shu.edu.cn/parrot/ parrot main contrib non-free
上交大:
deb https://mirrors.sjtug.sjtu.edu.cn/parrot/ parrot main contrib non-free
等等…
个人建议选择一个就好了,因为有时候在装环境时需要更新系统,会造成系统环境混乱,处理比较麻烦。。
安装过程中出现下面这种情况:
飘红的,可以执行:
sudo service networking restart
然后重新执行安装命令:
sudo apt-get install metasploit-framework
等待一段时间以后:
启动
成功~~
<欢迎大家一起交流>