Author Topic: [SOLVED] Ruby upgrade probles - fix  (Read 3057 times)

user

  • Newbie
  • *
  • Posts: 3
    • View Profile
on: June 14, 2016, 07:31:13 AM
sins@host:~$ sudo apt-get -f install
[sudo] password for sins:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up beef-project (0.4.7.0~alpha+git20160518-0backbox1) ...
Extracting beef ...
Installing Ruby Gems ...
ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String
dpkg: error processing package beef-project (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up metasploit-framework (4.12+git20160518-0backbox1) ...
Extracting Metasploit Framework ...
Installing Ruby Gems ...
ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String
dpkg: error processing package metasploit-framework (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up wpscan (2.9.1+git20160518-0backbox1) ...
Extracting wpscan ...
Installing Ruby Gems ...
ERROR:  While executing gem ... (TypeError)
    no implicit conversion of nil into String
dpkg: error processing package wpscan (--configure):
 subprocess installed post-installation script returned error exit status 1
Updating BackBox console menu ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

I use backbox 4.2.0 and when I try to sudo apt-get -f install then see the error like this. I think the problem is in wpascan, Metasploit-framwork and beef-project but I do not know how to fix?
This error also appears when I upgrade or dist-upgrade
thanks...

« Last Edit: June 15, 2016, 01:03:10 AM by ZEROF »



ZEROF

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • Pen Tester
Reply #1 on: June 14, 2016, 12:11:38 PM
Hi,

For me that looks like that you have issue will ruby. Try this, one by one:

sudo apt-get install ruby ruby-dev ruby2.1 ruby2.1-dev ruby2.2-dev ruby2.2 --reinstall
sudo apt-get purge ri1.9.1 ruby1.9.1 bundler libruby2.0 ruby2.0 ruby2.0-dev libruby1.9.1 ruby-full
sudo gem cleanup
sudo rm -rf /var/lib/gems/1.*
sudo rm -rf /var/lib/gems/2.0.*
sudo apt-get install backbox-default-settings backbox-desktop backbox-menu backbox-tools --reinstall
sudo apt-get install beef-project metasploit-framework whatweb wpscan setoolkit --reinstall
sudo apt-get autoremove --purge
« Last Edit: June 14, 2016, 12:27:55 PM by ZEROF »


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


user

  • Newbie
  • *
  • Posts: 3
    • View Profile
Reply #2 on: June 14, 2016, 11:08:39 PM
it worked. thank you very much  :-* :-*