首页 > 其他分享 >解决wpscan运行报错Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) among 125 total gem(s) (

解决wpscan运行报错Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) among 125 total gem(s) (

时间:2024-04-12 16:01:55浏览次数:30  
标签:among rubygems 1.13 lib 报错 usr rb vendor ruby

报错内容:

/usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1404:in `rescue in block in activate_dependencies': Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) among 125 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0' at: /usr/share/rubygems-integration/all/specifications/cms_scanner-0.13.6.gemspec, execute `gem env` for more information
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1401:in `block in activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1408:in `block in activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:299:in `block in activate_bin_path'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `synchronize'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `activate_bin_path'
    from /usr/bin/wpscan:25:in `<main>'
/usr/lib/ruby/vendor_ruby/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (>= 1.11.4, < 1.13.0) - did find: [nokogiri-1.16.0] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0' , execute `gem env` for more information
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1402:in `block in activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1408:in `block in activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `each'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1390:in `activate_dependencies'
    from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1372:in `activate'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:299:in `block in activate_bin_path'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `synchronize'
    from /usr/lib/ruby/vendor_ruby/rubygems.rb:298:in `activate_bin_path'
    from /usr/bin/wpscan:25:in `<main>'
遇到问题后参考前辈的解决方式

apt remove wpscan -y
apt-get autoremove -y
apt-get autoclean
hash -r
apt install ruby-dev -y
gem install wpscan

但是在最后gem安装的时候卡住了
没关系直接
wpscan --help
按照提示下载就好
参考链接:https://www.cnblogs.com/pcat/p/12820570.html

标签:among,rubygems,1.13,lib,报错,usr,rb,vendor,ruby
From: https://www.cnblogs.com/Aryyj/p/18131505

相关文章

  • 安装nginx时报错解决(configure error: the HTTP gzip module requires the zlib libra
    安装nginx时报错解决下载地址nginx源码包下载地址:https://nginx.org/en/download.html安装环境Ubuntu20.04LTSnginx-1.23.4安装步骤#解压缩包tar-zxvfnginx-1.23.4.tar.gz#进入包目录cdnginx-1.23.4#生成makefile./configure就在./configure这一步出现了依......
  • mysql修改密码报错:Your password does not satisfy the current policy requirements
    参考https://blog.csdn.net/u013449046/article/details/106455041这是mysql初始化时,使用临时密码,修改自定义密码时,由于自定义密码比较简单,就出现了不符合密码策略的问题。密码策略问题异常信息:ERROR1819(HY000):Yourpassworddoesnotsatisfythecurrentpolicyrequ......
  • 电脑开机时报错No Bootable Device找不到索引的解决方法
      本文介绍笔记本电脑出现NoBootableDevice错误提示,且无法开机的多种解决办法。1问题产生  最近,笔记本电脑正在正常使用时,突然蓝屏,出现你的设备遇到问题,需要重启。的提示;最下方的终止代码具体是CRITICAL_PROCESS_DIED还是SYSTEM_SERVICE_EXCEPTION有点记不太清楚了,不过这......
  • 进阶 stack smashing--canary 报错利用 && environ泄露栈地址
    进阶stacksmashing--canary报错利用&&environ泄露栈地址这部分是对进阶stacksmashing的使用,以及对environ的认识,我们可以看一个buu上具体的题目题目连接https://buuoj.cn/challenges#wdb2018_guess看一下保护,pie没有开64位ida载入看一下那么在ida里面看见还是挺麻......
  • vue tsx 原生属性报错解决方案
    当前依赖├──@vitejs/[email protected]├──@vitejs/[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]├──[email protected]└──[email protected]方法0官方方法,修改tsconfig.json,截止写文章时,这个......
  • windows MySQL报错Packet for query is too large问题解决
    1、报错Cause:com.mysql.cj.jdbc.exceptions.PacketTooBigException:Packetforqueryistoolarge(11,792,709>4,194,304).Youcanchangethisvalueontheserverbysettingthe'max_allowed_packet'variable.出现问题的原因:批量插入数据量过大MySQL根据配置......
  • stack smashing--canary报错利用
    stacksmashing--canary报错利用一般这种都是考察点比较狭窄,因为这个漏洞在libc2.23以上就被修复了,漏洞产生的原因是因为当覆盖掉canary的时候程序会报错,程序会执行__stack_chk_fail函数来打印__libc_argv[0]指针所指向的字符串,如果把这个字符串覆盖成flag地址那么就可以得......
  • vite+xlsx-style表格导出样式设置报错
    项目是vite+vue3,前端表格导出,使用xlsx可以导出基本表格,但是想要设置表格样式,引入xlsx-style,安装依赖,后引入报错引用import { utils } from "xlsx"import { write } from "xlsx-style"Couldnotresolve"./cptable"node_modules/xlsx-style/dist/cpexce......
  • 报关软件-单一窗口打开报错50070
    事件起因:某报关行客户电话报修,USB版本的单一窗口无法登陆,下图为客户提供的报错截图 在重新安装了单一窗口的客户端控件之后,报错内容更改,但问题并未解决  解决办法:1、删除浏览器的所有记录(包括下载记录、浏览记录、cookie等等,需要完全清......
  • 阿里邮箱网页正常登陆,outlook报错
    事件起因:某客户使用阿里邮箱办公,然又使用outlook绑定阿里邮箱;在网页端可以登录阿里邮箱,但是在outlook的登录的时候,服务器、端口均设置无误,但是就是登录不上去,死活都等登录不上去,总是弹窗让输入账号密码 解决办法:经过多方排查,在网上找寻资料,终于排查出是什么问题了在邮箱后台......