Linux Updates

Fix broken APT dependencies on Ubuntu/Debian

Unbreak apt when installs stop mid-way — standard Debian-family recovery.

10 min read Beginner Updated 9 Jun 2026

Step-by-step guide

Work through each section in order. Stop when your issue is resolved — you do not need every step for every situation.

Warning

Use a sudo-capable account, keep shell history for audit, and back up critical paths before changing boot, SSH, or package state.

What you will achieve

Unbreak apt when installs stop mid-way — standard Debian-family recovery.

1) Finish interrupted package operations

sudo dpkg --configure -a
sudo apt --fix-broken install

2) Refresh package metadata

sudo apt clean
sudo apt update

3) Detect held packages

apt-mark showhold
apt debian dependencies ubuntu