pwnlandia / mhn

Modern Honey Network
GNU Lesser General Public License v2.1
2.44k stars 631 forks source link

Installing MHN on UBUNTU 20.04 TLS, Issue with Installing python-pip #779

Open lanagkazo opened 4 years ago

lanagkazo commented 4 years ago

Hello, Please i need your help. Realy Struggling to install MHN on Ubuntu 20.04 TLS

roxyd commented 3 years ago

I ran into this issue as well. that package is no longer available. I think the install script will need to use pip3 instead. I'll look over the install script at some point in the next few days and see if I can fix it.

roxyd commented 3 years ago

fix -

remove python-pip from list of packages it tries to install in scripts.

Make sure you have pip installed https://linuxize.com/post/how-to-install-pip-on-ubuntu-20.04/
cd /opt/mhn/
sed -i 's/python-pip//g' install.sh
cd scripts
sed -i 's/python-pip//g' *.sh

The next issue though is that there is no mongo script for Ubuntu 20 so it stops there.

roxyd commented 3 years ago

Next, edit the install_mongo.sh script to use install_mongodb_ub18.sh for ubuntu version 20.04, adding this under the elif statement for 18.04:

    elif [ "$(lsb_release -r -s)" == "20.04" ]; then
        ./install_mongodb_ub18.sh

Then you should be able to run the install from start to finish.

ecpp commented 2 years ago

I also did this in order to resolve some python2 errors for 20.04 sudo apt purge libpython2* sudo apt install python

rizaldyaristyo commented 2 years ago

I got one local running this