rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.2k stars 13.99k forks source link

./msfconsole: bad interpreter: /data/data/com.termux/files/usr/bin/env: no such file or directory #15617

Closed skiwheelr closed 3 years ago

skiwheelr commented 3 years ago

Steps to reproduce: first I installed msfconsole with the installer and it was working, i was hacking things then i uninstalled it to try to get past an issue, and tried reinstalling manually (big mistake) then i undid the changes to .bashrc, deleted the folder with rm -rf /opt/msf... and re-ran the installer.

Now when I run ./msfconsole as root i get:

./msfconsole: bad interpreter: /data/data/com.termux/files/usr/bin/env: no such file or directory

I think there is a bug with the installer for systems that have had similar packages before.

github-actions[bot] commented 3 years ago

Metasploit installation on Termux is not supported. Refer to the following for more information:

skiwheelr commented 3 years ago

Yeah the termux turned out to be some stupid guide i was following to solve this issue. I was getting the issue before I got the termux thing. (I didn't even know what termux is until i googled it)

The actual problem was that on ubuntu 20.04, there is a different install process. This works seamlessly:

https://blog.eldernode.com/install-and-use-metasploit-on-ubuntu/