{"record":{"id":"e86a6bf77e3b13e9","repo":"hashicorp/vagrant","slug":"the-plugin-name-could-not-be-installed-becaus","errorCode":null,"errorMessage":"The plugin '%{name}' could not be installed because it could not\nbe found. Please double check the name and try again.","messagePattern":"The plugin '%(.+?)' could not be installed because it could not\nbe found\\. Please double check the name and try again\\.","errorType":"exception","errorClass":"Vagrant::Errors::PluginGemNotFound","httpStatus":null,"severity":"error","filePath":"lib/vagrant/plugin/manager.rb","lineNumber":184,"sourceCode":"            installed_gem_version: result.version.to_s\n          )\n        else\n          r = Gem::Dependency.new(name, opts[:version])\n          result = Gem::Specification.find { |s|\n            s.satisfies_requirement?(r) &&\n              s.activated?\n          }\n          raise Errors::PluginInstallFailed,\n            name: name if result.nil?\n          @logger.warn(\"Plugin install returned no result as no new plugins were installed.\")\n        end\n        # After install clean plugin gems to remove any cruft. This is useful\n        # for removing outdated dependencies or other versions of an installed\n        # plugin if the plugin is upgraded/downgraded\n        Vagrant::Bundler.instance.clean(installed_plugins, local: !!opts[:local])\n        result\n      rescue Gem::GemNotFoundException\n        raise Errors::PluginGemNotFound, name: name\n      rescue Gem::Exception => err\n        @logger.warn(\"Failed to install plugin: #{err}\")\n        @logger.debug(\"#{err.class}: #{err}\\n#{err.backtrace.join(\"\\n\")}\")\n        # Try and determine a cause for the failure\n        case err.message\n        when /install development tools first/\n          raise Errors::PluginNeedsDeveloperTools\n        when /library not found in default locations/\n          lib = err.message.match(/(\\w+) library not found in default locations/)\n          if lib.nil?\n            raise Errors::BundlerError, message: err.message\n          end\n          raise Errors::PluginMissingLibrary,\n            library: lib.captures.first,\n            name: name\n        when /find header files for ruby/\n          raise Errors::PluginMissingRubyDev\n        else","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/plugin/manager.rb#L166-L202","documentation":"Error \"The plugin '%{name}' could not be installed because it could not\nbe found. Please double check the name and try again.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/plugin/manager.rb:184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}