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
3 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

Packages & Updates · Software Engineering

Fix error: externally-managed-environment on Ubuntu safely

The error: externally-managed-environment means pip has refused to modify an Ubuntu-managed Python installation. This guide shows how to identify the interpreter you are using, preserve operating-system package ownership, and choose the correct safe route: apt for Ubuntu packages, a project virtual environment for libraries, pipx for command-line applications, or an isolated container for disposable work.
Save to collectionCreate a collection in the sidebar first.
caution25 minbeginner8 stepsUbuntu

Packages & Updates · Security

Configure automatic Ubuntu security updates with controlled reboot windows

Apply Ubuntu security updates through reviewed origins, dry-run the exact unattended policy, schedule APT timers inside a declared maintenance window, and permit reboots only at a known local time when no users are logged in.
Save to collectionCreate a collection in the sidebar first.
caution85 minintermediate9 stepsUbuntu Server