{"record":{"id":"143ed0514ded5610","repo":"jdx/mise","slug":"reason","errorCode":null,"errorMessage":"{reason}","messagePattern":"\\{reason\\}","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/cli/system/driver.rs","lineNumber":114,"sourceCode":"            }\n            debug!(\"{name}: skipping, excluded by system_packages.managers\");\n            continue;\n        }\n        if let Some(reason) = mp.manager.unavailable_reason_async().await {\n            if unavailable_manager_is_error(d) {\n                // explicitly requested (via --manager or manager:package\n                // specs) — failing silently would be a lie\n                bail!(\"{name} is not available: {}\", reason);\n            }\n            debug!(\"{name}: skipping, {reason}\");\n            continue;\n        }\n        if !d.dry_run {\n            mp.manager.prepare_mutation(&mp.requests).await?;\n        }\n        let statuses = mp.manager.installed(&mp.requests).await?;\n        if let Some(reason) = unavailable_package_reason(d, &statuses) {\n            bail!(\"{reason}\");\n        }\n        let remove_targets = if action == Action::Install {\n            statuses\n                .iter()\n                .filter(|status| {\n                    status.request.desired == PackageDesiredState::Absent\n                        && !matches!(status.state, PackageState::Missing)\n                        && !status.state.is_unavailable()\n                })\n                .collect::<Vec<_>>()\n        } else {\n            vec![]\n        };\n        let mut targets: Vec<_> = statuses\n            .iter()\n            .filter(|status| status.request.desired == PackageDesiredState::Present)\n            .filter(|s| match action {\n                Action::Install => !s.state.is_installed() && !s.state.is_unavailable(),","sourceCodeStart":96,"sourceCodeEnd":132,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/cli/system/driver.rs#L96-L132","documentation":"After querying the manager for installed-package statuses, mise detected that a requested package could not be satisfied (`unavailable_package_reason` returned a reason). The manager itself is available, but one or more requested packages are not installable/resolvable by it.","triggerScenarios":"Running a system-packages install/remove where `manager.installed(requests)` yields statuses for which `unavailable_package_reason(d, &statuses)` returns Some (e.g. a package name unknown to the manager, or unavailable in dry-run reconciliation).","commonSituations":"Misspelled package name in [bootstrap.packages]; package not present in the manager's repositories; package unavailable for the current platform/arch.","solutions":["Read the reason in the error; fix the package name or remove it from the config.","Verify the package exists in the manager's repositories (`apt search`, `brew info`, etc.).","Move the package to a manager that provides it."],"exampleFix":"// before\n[bootstrap.packages]\napt = [\"rpi grep\"]\n// after\n[bootstrap.packages]\napt = [\"ripgrep\"]","handlingStrategy":"validation","validationCode":"// before running, confirm each package exists in the manager's index\nfor (const p of packages) { assert(managerProvides(manager, p), `${p} not provided by ${manager}`); }","typeGuard":null,"tryCatchPattern":"try { await run('mise system install') } catch (e) { if (e.message) { /* parse the reason, fix the offending package entry */ } }","preventionTips":["Spell-check package names against the manager's repo","Test bootstrap.packages changes with --dry-run first","Pin packages to managers that actually distribute them"],"tags":["cli","system-packages","package","availability"],"backgroundTag":"resource-not-found","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}