jdx/mise · error
{reason}
Error message
{reason} What it means
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.
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.
Example fix
// before [bootstrap.packages] apt = ["rpi grep"] // after [bootstrap.packages] apt = ["ripgrep"]
Defensive patterns
Strategy: validation
Validate before calling
// before running, confirm each package exists in the manager's index
for (const p of packages) { assert(managerProvides(manager, p), `${p} not provided by ${manager}`); } Try / catch
try { await run('mise system install') } catch (e) { if (e.message) { /* parse the reason, fix the offending package entry */ } } Prevention
- 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
When it happens
Trigger: 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).
Common situations: Misspelled package name in [bootstrap.packages]; package not present in the manager's repositories; package unavailable for the current platform/arch.
Understand the failure class
Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.
Related errors
- is not available
- invalid system package spec: expected
- invalid system package spec
- invalid system package spec
- manager ' ' is excluded by the system_packages.managers…
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/143ed0514ded5610.
Report an issue: GitHub.
Appendix: source
Thrown at src/cli/system/driver.rs:114
}
debug!("{name}: skipping, excluded by system_packages.managers");
continue;
}
if let Some(reason) = mp.manager.unavailable_reason_async().await {
if unavailable_manager_is_error(d) {
// explicitly requested (via --manager or manager:package
// specs) — failing silently would be a lie
bail!("{name} is not available: {}", reason);
}
debug!("{name}: skipping, {reason}");
continue;
}
if !d.dry_run {
mp.manager.prepare_mutation(&mp.requests).await?;
}
let statuses = mp.manager.installed(&mp.requests).await?;
if let Some(reason) = unavailable_package_reason(d, &statuses) {
bail!("{reason}");
}
let remove_targets = if action == Action::Install {
statuses
.iter()
.filter(|status| {
status.request.desired == PackageDesiredState::Absent
&& !matches!(status.state, PackageState::Missing)
&& !status.state.is_unavailable()
})
.collect::<Vec<_>>()
} else {
vec![]
};
let mut targets: Vec<_> = statuses
.iter()
.filter(|status| status.request.desired == PackageDesiredState::Present)
.filter(|s| match action {
Action::Install => !s.state.is_installed() && !s.state.is_unavailable(),View on GitHub (pinned to 533346cc37)