OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

Searchable, versioned procedures with prerequisites, verification, concrete output, and rollback.

Guides
237
Favorites
0
237 launch guides · 2543 reviewed steps
1 of 237 guides

Packages & Updates · Incident Response & Troubleshooting · System Administration

Fix Sub-process /usr/bin/dpkg returned an error code (1) safely

Sub-process /usr/bin/dpkg returned an error code (1) is a final summary, not the root cause. The decisive message normally appears earlier in the transaction. This guide preserves that first failure, checks package-manager ownership, locks, disk and filesystem health, audits dpkg state, then completes configuration or performs a targeted rollback without deleting lock files or forcing unrelated removals.
Save to collectionCreate a collection in the sidebar first.
caution40 minintermediate9 stepsUbuntu Server