View Issue Details

IDProjectCategoryView StatusLast Update
0003078Kali LinuxKali Package Bugpublic2016-02-27 03:25
ReporterZero_Chaos Assigned Tobalding_parrot 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version2016.1 
Summary0003078: metasploit-framework unable to run msf*
Description

root@pwnpad:~# apt-cache policy metasploit-framework
metasploit-framework:
Installed: 4.11.10-0kali1
Candidate: 4.11.10-0kali1
Version table:
*** 4.11.10-0kali1 500
500 http://repo.kali.org/kali kali-rolling/main armhf Packages
100 /var/lib/dpkg/status
root@pwnpad:~# msfconsole

[!] There was an error parsing Gemfile: There was a Errno::ENOENT while loading metasploit-framework.gemspec:
No such file or directory @ realpath_rec - /usr/lib/metasploit from
/usr/share/metasploit-framework/metasploit-framework.gemspec:6:in `realpath'
. Bundler cannot continue.

from /usr/share/metasploit-framework/Gemfile:4

-------------------------------------------

spec.add_runtime_dependency '<name>', [<version requirements>]

gemspec name: 'metasploit-framework'

-------------------------------------------

Steps To Reproduce

install metasploit-framework on armhf, possibly x86/x86_64 (unconfirmed reports from irc), and try to run msfconsole

Additional Information

It appears that the metasploit gemspecs are looking for metasploit in /usr/lib/metasploit but the kali package is installing it to /usr/share/metasploit-framework.

Adding a quick symlink (hack to confirm diagnosis, not suggested solution) to make /usr/lib/metasploit point to /usr/share/metasploit-framework allows me to use msfconsole et al

Activities

rhertzog

rhertzog

2016-02-17 19:32

administrator   ~0004713

Can you try after moving away ~/.msf* directories?

Can you share your ~/.msf4 directory? it might contain further information about the problem.

Do you have the problem on a fresh install (or in the live image) or only after an upgrade?

Zero_Chaos

Zero_Chaos

2016-02-17 23:50

reporter   ~0004714

this is on a completely clean and fresh install. the system was built with debootstrap, then metasploit-framework was installed and msfconsole (failed to) run. it's possible that the ~/.msf4 directory affects the issue, but I didn't have one to start.

sbrun

sbrun

2016-02-23 08:33

manager   ~0004752

I don't reproduce the problem on x86_64. msfconsole run normally.
Is it possible for you to try on x86_64 and let us know if you have the problem?

Zero_Chaos

Zero_Chaos

2016-02-26 22:34

reporter   ~0004771

I do not have the problem on x86_64, only armhf

Zero_Chaos

Zero_Chaos

2016-02-26 22:35

reporter   ~0004772

also confirming that I have no .msf* directory

root@armv7l:~# ls -al
total 44
drwx------ 6 root root 4096 Feb 26 22:35 ./
drwxr-xr-x 23 root root 4096 Feb 26 22:23 ../
-rw------- 1 root root 242 Feb 26 22:35 .bash_history
-rw-r--r-- 1 root root 570 Jan 19 12:29 .bashrc
drwxr-xr-x 3 root root 4096 Feb 26 22:21 .config/
-rw-r--r-- 1 root root 112 Feb 26 22:16 .ecryptfsrc
drwxr-xr-x 3 root root 4096 Feb 26 21:53 .gem/
drwx------ 2 root root 4096 Feb 26 22:25 .john/
-rw-r--r-- 1 root root 140 Jan 19 12:29 .profile
-rw------- 1 root root 1024 Feb 26 22:22 .rnd
drwx------ 2 root root 4096 Feb 26 22:16 .ssh/
root@armv7l:~# msfconsole

[!] There was an error parsing Gemfile: There was a Errno::ENOENT while loading metasploit-framework.gemspec:
No such file or directory @ realpath_rec - /usr/lib/metasploit from
/usr/share/metasploit-framework/metasploit-framework.gemspec:6:in `realpath'
. Bundler cannot continue.

from /usr/share/metasploit-framework/Gemfile:4

-------------------------------------------

spec.add_runtime_dependency '<name>', [<version requirements>]

gemspec name: 'metasploit-framework'

-------------------------------------------

root@armv7l:~#

Zero_Chaos

Zero_Chaos

2016-02-27 03:04

reporter   ~0004774

build system had poisoned environment. this bug is invalid, sorry for the noise.

balding_parrot

balding_parrot

2016-02-27 03:24

developer   ~0004775

Reported by Zero_Chaos as an invalid bug report

balding_parrot

balding_parrot

2016-02-27 03:25

developer   ~0004776

Reported by Zero_Chaos as an invalid bug report

Issue History

Date Modified Username Field Change
2016-02-17 18:09 Zero_Chaos New Issue
2016-02-17 19:32 rhertzog Note Added: 0004713
2016-02-17 23:50 Zero_Chaos Note Added: 0004714
2016-02-23 08:33 sbrun Note Added: 0004752
2016-02-26 22:34 Zero_Chaos Note Added: 0004771
2016-02-26 22:35 Zero_Chaos Note Added: 0004772
2016-02-27 03:04 Zero_Chaos Note Added: 0004774
2016-02-27 03:24 balding_parrot Note Added: 0004775
2016-02-27 03:25 balding_parrot Note Added: 0004776
2016-02-27 03:25 balding_parrot Status new => closed
2016-02-27 03:25 balding_parrot Assigned To => balding_parrot
2016-02-27 03:25 balding_parrot Resolution open => no change required