Dear forum users,

When I run this command:
root@bt:~# apt-get install beef
Reading package lists... Done
Building dependency tree
Reading state information... Done
beef is already the newest version.
The following packages were automatically installed and are no longer required:
libdmraid1.0.0.rc16 python-pyicu libdebian-installer4 cryptsetup libecryptfs0 reiserfsprogs rdate
bogl-bterm ecryptfs-utils libdebconfclient0 dmraid
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up beef ( ...
WARNING: You don't have /root/.gem/ruby/1.9.2/bin in your PATH,
gem executables will not run.
Successfully installed bundler-1.2.3
1 gem installed
Installing ri documentation for bundler-1.2.3...
Installing RDoc documentation for bundler-1.2.3...
Fetching gem metadata from
Fetching gem metadata from
Using addressable (2.2.8)
Using ansi (1.4.3)
Using daemons (1.1.9)
Using data_objects (0.10.11)
Using dm-core (1.2.0)
Using dm-do-adapter (1.2.0)
Using dm-migrations (1.2.0)
Using do_sqlite3 (0.10.11)
Using dm-sqlite-adapter (1.2.0)
Using eventmachine (0.12.10)
Using em-websocket (0.3.8)
Using erubis (2.7.0)
Using jsmin (1.0.1)
Using json (1.7.6)

I get this error:
Gem::Package::FormatError: No metadata found!
An error occurred while installing librex (0.0.68), and Bundler cannot continue.
Make sure that `gem install librex -v '0.0.68'` succeeds before bundling.

dpkg: error processing beef (--configure):
subprocess installed post-installation script returned error exit status 5
Setting up subterfuge (4.3-bt0) ...
tar: SubterfugePublicBeta4.3.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
/var/lib/dpkg/info/subterfuge.postinst: line 6: cd: subterfuge/: No such file or directory
python: can't open file '': [Errno 2] No such file or directory
rm: cannot remove `SubterfugePublicBeta4.3.tar.gz': No such file or directory
dpkg: error processing subterfuge (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Because when update metasploit framework its get a error saying Beef problems.
How can i solve this issue.

With kind regards from,