OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

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

Guides
243
Favorites
0
243 launch guides · 2601 reviewed steps
2 of 243 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

DevOps & CI/CD · Security

Install Composer securely and use reproducible production dependencies

Verify the official installer checksum, install Composer in a controlled path, enforce lock files, audit dependencies, and deploy without development packages.
Save to collectionCreate a collection in the sidebar first.
caution30 minintermediate8 stepsComposer