-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wpscan --update renders error after upgrade from Ubuntu 20.04 to Ubuntu 22.04. /usr/bin/ruby2.7: bad interpreter: No such file or directory #1835
Comments
Now it's working. I'm not positive becuse I for document the solution to this issue, but if my memory is correct, I just downloaded Ruby again. Now I have ruby 2.0.2p107, and things are working. I think during my Ubuntu 20 upgrade to Ubuntu 2204, The upgrade removed th ruby 2.7 packages as I think it's deprecated with Ubuntu 22.04. So basically, If I remember correctly, I just installed a modern version of Ruby in Ubuntu 22.04, and this error went away. Everything seems to be working correctly again. Maybe this post will help others. Thanks. |
Installing WPScan on Ubuntu hassle-free way;(don't worry if you already installed it it will adapt and change according to needs, otherwise remove it and begin from scratch) ###Open your terminal (anywhere) Run the following command;
You might be prompted for your password. Running WPScanOnce installed, you can run WPScan from any directory with: e.g.
if you get a fail as many sites use https these days you use this that worked for me after installing ruby, python and pip and the build dependencies in python first
[i] Updating the Database ... |
Hello, I had the following errors when running every time wpscan in the Kali Linux 2024.2, 6.8.11-amd64 after upgrading. The version of wpscan is 3.8.25.
It means that the script /usr/local/bin/wpscan has an incorrect shebang line. In this case, it seems the shebang is incorrectly pointing to /usr/bin/ruby3.0, which doesn't exist. Thus, the fix is provided as
I found it's wrongly pointing as expected :-
I am changing it to :-
Then I ensure the script is executable and it's fixed.
|
Correction:
Should be:
|
Subject of the issue
I just upgraded from Ubuntu Server 20.04 to Ubuntu Server 22.04.
After the upgrade I tried updating my wpscan version with
wpscan --update
but it gives me the following errors:wpscan -v
does the same thing:Your environment
wpscan -v
doesn't work.Steps to reproduce
Just upgrade from Ubuntu 20.04 to Ubuntu 22.04. Then run
wpscan --update
orwpscan -v
.Expected behavior
if wpscan --update, then wpscan should update itself properly, or if running wpscan -v, it should show it's version.
Actual behavior
What have you already tried
I havent tried anything. I just wanted to report the issue right away so that I didn't make any mistakes fixing it by myself. Hopefully I get some fixes from this post.
What can I do to fix this?
Answers needed....
The text was updated successfully, but these errors were encountered: