Package dependency conflict — inspect solver plan before changes
A dependency conflict means the selected versions or package constraints cannot be reconciled under current repository, architecture and policy inputs. Inspect installed and candidate versions, holds/pins, enabled repositories and the exact solver explanation. A missing package and an unsatisfiable version constraint are distinct; mixing releases may create inconsistent dependencies. On Debian-family systems inspect apt-cache policy and a simulation of the intended operation; non-root simulations can miss protected configuration and are snapshots, not guarantees. On RPM-family systems use the corresponding DNF query and approved transaction review. Align repository releases and supported dependency versions; review removals, downgrades and security impact before approving any change. Do not force dependencies or install untrusted packages. Verify the planned transaction then application health after authorized deployment. Roll back using documented package versions or a tested snapshot; downgrades may not reverse data migrations. Prevent with staged updates and reproducible trusted repositories. The offline model uses small integer versions, not Debian/RPM version ordering or a real dependency solver. Example prerequisites: Linux, Bash, Python 3. Run as a non-root user in a private temporary working directory. Example scope: synthetic model. Expected output: modeled dependency unsatisfied; compatible candidate found after inventory change. No system configuration changes.
Formal Syntax & Structure
apt-cache policy PACKAGE; apt-get -s install PACKAGE; dnf repoquery (RPM-based systems)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| candidate | diagnostic evidence | Version selected by package policy. |
| constraint | diagnostic evidence | Required compatible dependency range. |
| simulation | diagnostic evidence | Proposed transaction, not actual installation. |
Return Value
Expected normalized laboratory result: modeled dependency unsatisfied; compatible candidate found after inventory change. A passing fixture does not prove that a live incident has the same cause.
Working Example
python3 - <<'PY'def eligible(versions,low,high):return [v for v in versions if low<=v<high]assert eligible([1,2],3,5)==[]assert eligible([1,2,3,5],3,5)==[3]assert eligible([5],3,5)==[]print('modeled dependency unsatisfied; compatible candidate found after inventory change')PY