Problem bei der Installation von Katoolin in Ubuntu 17.10

Problem bei der Installation von Katoolin in Ubuntu 17.10
ragib@RAGIB-PC:~$ sudo su
[sudo] password for ragib:
root@RAGIB-PC:/home/ragib# git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin 
fatal: destination path 'katoolin' already exists and is not an empty directory
root@RAGIB-PC:/home/ragib# chmod +x /usr/bin/katoolin
root@RAGIB-PC:/home/ragib# katoolin
bash: /usr/bin/katoolin: /usr/bin/python: bad interpreter: No such file or directory
root@RAGIB-PC:/home/ragib# sudo katoolin
sudo: unable to execute /usr/bin/katoolin: No such file or directory
root@RAGIB-PC:/home/ragib#

Terminalbild

Ich habe versucht, Katoolin zu installieren, um alle Kali-Linux-Tools in Ubuntu 17.10 zu erhalten. Ich habe viele Tutorials gesehen, in denen dieselbe Methode beschrieben wird, und ich glaube, ich habe es genauso gemacht, aber irgendetwas stimmt nicht, entweder mit meinem System oder ich habe beim Versuch, Katoolin zu installieren, etwas falsch gemacht.

Antwort1

Führen Sie einfach Folgendes aus:

sudo bash -c "test -e /usr/bin/python || (apt -qqy update && apt install -qy python-minimal)"

Führen Sie dann den Befehl aus katoolin.

Antwort2

Sie können einfach diesen Befehl ausführen:

sudo apt-get install python 

oder

sudo apt-get update python 

dann renne katoolin.

Antwort3

In Ubuntu 22.04. Sie müssen python2 installieren

sudo apt-get install python2 

Öffnen Sie dann die Datei katoolin.py in nano oder gedit und ändern Sie

#!/usr/bin/python

für

#!/usr/bin/python3

Führen Sie dann den Befehl cp vom aktuellen Verzeichnis nach /usr/bin/katoolin.py aus.

sudo cp katoolin.py /usr/bin/katoolin.py

und damit sollte es dir gut gehen

verwandte Informationen