首先執行更新系統指令:
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
等待一段時間以後:
啟動
成功~~
<歡迎大家一起交流>