metasploit问题
我搜索了整个互联网的答案,仍然没有找到一个,我决定卸载metasploit我键入以下
$ cd /opt opt$ ls google lol sublime_text tor-browser-en wine-staging metasploit opt$ cd metasploit opt/metasploit$ ./uninstall
然后通常卸载向导出现然后当我打算再次安装它我得到这个错误
$ sudo apt-get install metasploit Reading package lists... Done Building dependency tree Reading state information... Done metasploit is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up metasploit (4.5.2-2013031101-1raring0) ... /var/lib/dpkg/info/metasploit.postinst: line 20: /opt/metasploit/properties.ini: No such file or directory dpkg: error processing package metasploit (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: metasploit E: Sub-process /usr/bin/dpkg returned an error code (1)
所以即使我尝试启动metasploit它也行不通
$ sudo service metasploit start /etc/init.d/metasploit: 15: exec: /opt/metasploit/ctlscript.sh: not found
有经验的人可以帮我解决这个问题吗?
卸载Metasploit的正确方法是首先运行./ctlscript.sh.stop
来停止Metasploit服务,然后键入./uninstall
以从Metasploit目录运行卸载脚本。
在您的情况下,您可以完全删除/opt/metasploit
:
sudo rm -rf /opt/metasploit