在Ubuntu 16.04上安装metasploit

在Ubuntu 16.04上安装metasploit,ubuntu,rvm,metasploit,Ubuntu,Rvm,Metasploit,我正试图在Ubuntu 16.04上安装metasploit。我尝试使用命令安装依赖项 sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems 但是得到下面的错误 Building dependency tree Reading state information... Done Note, selecting

我正试图在Ubuntu 16.04上安装metasploit。我尝试使用命令安装依赖项

sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems
但是得到下面的错误

Building dependency tree       
Reading state information... Done
Note, selecting 'ruby' instead of 'irb'
Note, selecting 'ruby' instead of 'rubygems'
Package libopenssl-ruby is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libopenssl-ruby' has no installation candidate
E: Unable to locate package libyaml-ruby
E: Unable to locate package libdl-ruby
E: Unable to locate package libiconv-ruby
E: Unable to locate package libreadline-ruby 
我还尝试使用命令安装rvm

 \curl -L https://get.rvm.io | bash -s stable
但它也给出了以下错误

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: get.rvm.io

有人能提出解决方案吗?

我以前遇到过这个问题,我不得不添加一个ruby资源/存储库来从中下载ruby模块。您应该将kali linux存储库添加到资源文件中

darkoperator提供了其他示例来帮助您:


我忘了提到,ubuntu在vnware工作站中