Engineering / Field note
What an APT simulation can tell you before installation
APT simulations help review package changes. Their inputs, disabled locking, configuration visibility, and proposed removals determine what the result can support.
An APT simulation can answer a useful question before a package change: what actions would the resolver currently propose? The important word is currently. A tidy plan deserves attention, but turning it into an installation receipt gives that plan a promotion it has not earned. For teams reviewing a maintenance window, preserving that distinction makes the eventual decision easier to explain.
This is a reference review dated November 29, 2026, covering established documentation rather than a new vulnerability or incident. We checked Ubuntu 24.04 LTS's apt-get manual, provided by APT 2.8.4ubuntu0.1, and Debian trixie's APT 3.0.4 manual. These identify the documentation reviewed; they are not affected-version ranges or a recommendation to install either package on another distribution. [1] [2]
The manuals describe --simulate, also available as -s and --dry-run, as a no-action simulation based on system state. That makes it useful for reviewing a proposed transaction. It does not supply evidence that the proposed packages have been installed. Our examples below are fictional JSON review records, not APT configuration, native output, or accounts of commands we ran. [1]
{
"fictional_example": true,
"review": {
"package": "example-worker",
"requested_mode": "--simulate"
},
"evidence_kind": "proposed package transaction",
"installation_receipt_present": false,
"decision": "review proposed dependencies before considering installation"
}Give the plan a clear identity. Record the requested package, transaction type, relevant package indexes, and configuration context alongside the captured result. Our recommendation is to retain enough context to explain why that result applied at the time. A plan without its inputs is surprisingly good at becoming somebody else's assumption.
Keep the mode name with the result, too. The Debian manual distinguishes simulation from --download-only: the latter retrieves package files without unpacking or installing them. A download is a different action with a different result. In a review, spell out whether you have a proposed transaction, retrieved files, or a completed installation rather than putting all three under a vague label such as preflight passed. [2]
APT explicitly disables locking for simulations. Another package operation can therefore change system state while the simulation runs. A successful preview is not a reservation on that state. If the installed baseline or repository indexes change before an authorized installation, treat the earlier plan as dated evidence and review a fresh plan against the new inputs. [1]
{
"fictional_example": true,
"plan_inputs": {
"installed_state_id": "baseline-A",
"index_set_id": "indexes-A"
},
"later_inputs": {
"installed_state_id": "baseline-B",
"index_set_id": "indexes-A"
},
"same_inputs": false,
"decision": "repeat transaction review before an authorized change"
}Identity also matters. The manual warns that an unprivileged user may lack read access to some APT configuration, which can distort a simulation. Separately, apt.conf documents several configuration layers: an APT_CONFIG file, configuration fragments, the main file, binary-specific settings, and command-line options. A copied command alone does not establish that two reviews saw equivalent settings. [2] [3]
{
"fictional_example": true,
"review_identity": "unprivileged reviewer",
"configuration_visibility": {
"main_file": "readable",
"one_fragment": "unreadable"
},
"equivalent_to_installation_context": false,
"decision": "resolve visibility gap before relying on the plan"
}That warning is a reason to investigate the gap, not an automatic instruction to rerun everything with greater privileges. For a review process, decide which identity and configuration are relevant, document any missing visibility, and keep authorization for actual changes separate. Suppressing a warning does not make the missing input appear.
For example, suppose two reviewers receive different plans for the same fictional package. Compare their inputs before voting on which answer looks friendlier. A different installed baseline, index set, or configuration context is a concrete lead to investigate. The purpose of recording that context is to make disagreements explainable, and to avoid treating a convenient result as proof that the underlying conditions match.
Read the proposed actions individually. Debian's manual explains that simulated lines identify unpacking with Inst, configuration with Conf, and removal with Remv. They describe planned operations. The same manual says dist-upgrade can remove packages while handling dependency changes. A review should therefore inspect removals and their consequences, even when the requested change sounds like an upgrade. [2]
{
"fictional_example": true,
"proposed_operations": [
{
"marker": "Inst",
"package": "example-worker"
},
{
"marker": "Remv",
"package": "example-legacy-adapter"
},
{
"marker": "Conf",
"package": "example-worker"
}
],
"adapter_still_required": true,
"decision": "hold the proposal and resolve the dependency conflict"
}Finally, separate transaction planning from installation and application checks. Debian Policy describes maintainer scripts that run during installation, upgrade, or removal, and explains that their exit status affects package-manager processing. Reviewing a proposed sequence cannot demonstrate those scripts' actual outcome. Our interpretation is straightforward: application startup, expected behavior, and recovery need evidence from the relevant later stages. [4]
{
"fictional_example": true,
"evidence": {
"simulation": "reviewed",
"installation": "not performed",
"maintainer_script_outcome": "unobserved",
"application_check": "not performed",
"recovery_check": "not performed"
},
"ready_to_claim_successful_deployment": false
}A useful handoff can therefore be modest and precise: the proposed package changes were reviewed under recorded inputs; installation remains a separate authorized action; runtime and recovery checks still need results. That wording preserves what the simulation contributed without borrowing confidence from work that has not happened. The plan can guide the next step while remaining an honest record of this one.
Sources + further reading
Source dates describe the original material. Publication above is the date this Zyel article went live.
- Ubuntu 24.04 LTS apt-get manual: simulation and package operationsUbuntu / Canonical · Checked Nov 29, 2026
- Debian trixie apt-get manual: simulated operations and diagnosticsDebian APT team · Checked Nov 29, 2026
- Debian trixie apt.conf manual: configuration loading orderDebian APT team · Checked Nov 29, 2026
- Debian Policy: package maintainer scripts and installation procedureDebian Project · Checked Nov 29, 2026
Reader discussion
What would you ask next?
Questions, useful corrections and thoughtful disagreement are welcome. Comments are reviewed before they appear.
No reader comments yet.