[GH-ISSUE #301] sudo: unable to execute /usr/bin/katoolin: No such file or directory #251

Open
opened 2026-02-26 04:30:52 +03:00 by kerem · 14 comments
Owner

Originally created by @alrazihi on GitHub (Oct 7, 2021).
Original GitHub issue: https://github.com/LionSec/katoolin/issues/301

sudo su
mw:/# git clone https://github.com/LionSec/katoolin.git && cp katoolin/katoolin.py /usr/bin/katoolin
Cloning into 'katoolin'...
remote: Enumerating objects: 253, done.
remote: Total 253 (delta 0), reused 0 (delta 0), pack-reused 253
Receiving objects: 100% (253/253), 98.72 KiB | 26.00 KiB/s, done.
Resolving deltas: 100% (142/142), done.
mw:/# chmod +x /usr/bin/katoolin
mw:/# sudo katoolin
sudo: unable to execute /usr/bin/katoolin: No such file or directory
mw:/# 
Originally created by @alrazihi on GitHub (Oct 7, 2021). Original GitHub issue: https://github.com/LionSec/katoolin/issues/301 <pre>sudo su mw:/# git clone https://github.com/LionSec/katoolin.git &amp;&amp; cp katoolin/katoolin.py /usr/bin/katoolin Cloning into &apos;katoolin&apos;... remote: Enumerating objects: 253, done. remote: Total 253 (delta 0), reused 0 (delta 0), pack-reused 253 Receiving objects: 100% (253/253), 98.72 KiB | 26.00 KiB/s, done. Resolving deltas: 100% (142/142), done. mw:/# chmod +x /usr/bin/katoolin mw:/# sudo katoolin sudo: unable to execute /usr/bin/katoolin: No such file or directory mw:/# </pre>
Author
Owner

@benjamintyler608 commented on GitHub (Oct 18, 2021):

Yes the error still shows up
cp: cannot create regular file '/usr/bin/katoolin': Permission denied while in root
./katoolin.py
bash: ./katoolin.py: Permission denied

<!-- gh-comment-id:945309526 --> @benjamintyler608 commented on GitHub (Oct 18, 2021): Yes the error still shows up cp: cannot create regular file '/usr/bin/katoolin': Permission denied while in root ./katoolin.py bash: ./katoolin.py: Permission denied
Author
Owner

@elman23 commented on GitHub (Oct 18, 2021):

What operating system are you experiencing the issue with?

<!-- gh-comment-id:946056360 --> @elman23 commented on GitHub (Oct 18, 2021): What operating system are you experiencing the issue with?
Author
Owner

@alrazihi commented on GitHub (Oct 20, 2021):

What operating system are you experiencing the issue with?
Ubuntu 20.04.3 LTS

<!-- gh-comment-id:947572350 --> @alrazihi commented on GitHub (Oct 20, 2021): > What operating system are you experiencing the issue with? Ubuntu 20.04.3 LTS
Author
Owner

@primearc commented on GitHub (Nov 11, 2021):

I use the Debian Bulseye and i am getting this error. What is wrong?

<!-- gh-comment-id:966431502 --> @primearc commented on GitHub (Nov 11, 2021): I use the _Debian Bulseye_ and i am getting this error. What is wrong?
Author
Owner

@bojalive commented on GitHub (Nov 21, 2021):

Try ln -s /usr/bin/python(yourversionnumber) /usr/bin/python

<!-- gh-comment-id:974764530 --> @bojalive commented on GitHub (Nov 21, 2021): Try ln -s /usr/bin/python(yourversionnumber) /usr/bin/python
Author
Owner

@primearc commented on GitHub (Nov 21, 2021):

Katoolin added the adress to sources.list but cannot completed the key verify. I solved the problem, look at this:
https://miloserdov.org/?p=3609

<!-- gh-comment-id:974817997 --> @primearc commented on GitHub (Nov 21, 2021): Katoolin added the adress to sources.list but cannot completed the key verify. I solved the problem, look at this: https://miloserdov.org/?p=3609
Author
Owner

@geminijummnm commented on GitHub (Jun 6, 2022):

you can in the folder /usr/bin
then open in tem
input python2.7 katoolin
the error happened many machines,but i don't know why,i only know how to solve

<!-- gh-comment-id:1147187454 --> @geminijummnm commented on GitHub (Jun 6, 2022): you can in the folder /usr/bin then open in tem input python2.7 katoolin the error happened many machines,but i don't know why,i only know how to solve
Author
Owner

@Justinfungi commented on GitHub (Aug 6, 2022):

python2.7 katoolin

this works for ubuntu20.04, great thanks

<!-- gh-comment-id:1207252923 --> @Justinfungi commented on GitHub (Aug 6, 2022): > python2.7 katoolin this works for ubuntu20.04, great thanks
Author
Owner

@Trell06 commented on GitHub (Aug 10, 2022):

Does anyone have an update for this? Looks like the apt-key is depreicated. Any help would be greatly appreciated.

What do you want to do ?> 1

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.aFHFW9CYnz/gpg.1.sh --keyserver pool.sks-keyservers.net --recv-keys ED444FF07D8D0BF6
gpg: keyserver receive failed: Server indicated a failure

<!-- gh-comment-id:1211214665 --> @Trell06 commented on GitHub (Aug 10, 2022): Does anyone have an update for this? Looks like the apt-key is depreicated. Any help would be greatly appreciated. What do you want to do ?> 1 Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.aFHFW9CYnz/gpg.1.sh --keyserver pool.sks-keyservers.net --recv-keys ED444FF07D8D0BF6 gpg: keyserver receive failed: Server indicated a failure
Author
Owner

@matefon commented on GitHub (Sep 13, 2022):

Install python2.7 with sudo apt install python2.7,
edit the script: sudo nano /usr/bin/katoolin,
change the first line from #!/usr/bin/python to #!/usr/bin/python2.7,
and finally run the script as root: sudo katoolin.

<!-- gh-comment-id:1245790697 --> @matefon commented on GitHub (Sep 13, 2022): Install python2.7 with `sudo apt install python2.7`, edit the script: `sudo nano /usr/bin/katoolin`, change the first line from `#!/usr/bin/python` to `#!/usr/bin/python2.7`, and finally run the script as root: `sudo katoolin`.
Author
Owner

@pedrobart commented on GitHub (Oct 12, 2022):

Install python2.7 with sudo apt install python2.7, edit the script: sudo nano /usr/bin/katoolin, change the first line from #!/usr/bin/python to #!/usr/bin/python2.7, and finally run the script as root: sudo katoolin.

work here.
ubuntu 22.04
thanks

<!-- gh-comment-id:1276581418 --> @pedrobart commented on GitHub (Oct 12, 2022): > Install python2.7 with `sudo apt install python2.7`, edit the script: `sudo nano /usr/bin/katoolin`, change the first line from `#!/usr/bin/python` to `#!/usr/bin/python2.7`, and finally run the script as root: `sudo katoolin`. work here. ubuntu 22.04 thanks
Author
Owner

@moladiya1234 commented on GitHub (Oct 30, 2022):

Install python2.7 with sudo apt install python2.7,
edit the script: sudo nano /usr/bin/katoolin,
change the first line from #!/usr/bin/python to #!/usr/bin/python2.7,
and finally run the script as root: sudo katoolin.

Not possible changes in mobile phone, my phone same error, but can't solve yet...

<!-- gh-comment-id:1296149361 --> @moladiya1234 commented on GitHub (Oct 30, 2022): > Install python2.7 with `sudo apt install python2.7`, > edit the script: `sudo nano /usr/bin/katoolin`, > change the first line from `#!/usr/bin/python` to `#!/usr/bin/python2.7`, > and finally run the script as root: `sudo katoolin`. > Not possible changes in mobile phone, my phone same error, but can't solve yet...
Author
Owner

@aji1904 commented on GitHub (May 5, 2023):

sudo apt install python2.7

workss

<!-- gh-comment-id:1535544102 --> @aji1904 commented on GitHub (May 5, 2023): > sudo apt install python2.7 workss
Author
Owner

@ghost commented on GitHub (Mar 8, 2024):

Help on how to solve repository not found for katoolin
Im using termux

<!-- gh-comment-id:1985286138 --> @ghost commented on GitHub (Mar 8, 2024): Help on how to solve repository not found for katoolin Im using termux
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/katoolin-LionSec#251
No description provided.