Ubuntu12.10安装metaspolit

我在Ubuntu12.10中加入了Backrack5等系统的软件源,所以,Backract中的软件几乎都是可以用的!

安装Metaspolit

sudo apt-get install metaspolit

运行的时候会报错:

/opt/metasploit/msf3/lib/fastlib.rb:369:in `require': no such file to load -- rubygems (LoadError)
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from <internal:gem_prelude>:158:in `load_full_rubygems_library'
from <internal:gem_prelude>:270:in `const_missing'
from /opt/metasploit/msf3/lib/msf/sanity.rb:40:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/msf/core.rb:14:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/msf/ui/console/driver.rb:2:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/msf/ui/console.rb:11:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/msf/ui.rb:11:in `<top (required)>'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from /opt/metasploit/msf3/lib/fastlib.rb:369:in `require'
from ./msfcli:26:in `<main>'

    解决办法

 sudo update-alternatives --config ruby

 Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/ruby1.9.2   400       auto mode
  1            /usr/bin/ruby1.8     50        manual mode
  2            /usr/bin/ruby1.9.1   51        manual mode
  3            /usr/bin/ruby1.9.2   400       manual mode


Press enter to keep the current choice[*], or type selection number: 1
在上面的选项中选择1.

其实就是更改了RUBY的运行版本,这种安装方式其实还是有很多问题的,后来发现连接数据库的时候,始终识别不到,后来在官网上面下载了.run文件来安装才搞定!看来还是使用官网上面的来安装比较靠谱啊!

你可能感兴趣的:(安装,metaspolit)