Skip to content

dpkg-audit — Broken or half-configured packages

An interrupted upgrade can leave packages unpacked but not configured, or the dependency database inconsistent. Most other package operations fail until that's fixed.

At a glance

ID dpkg-audit
Category Packages
Needs root no
Needs programs dpkg, apt-get
Compares with a snapshot no
Options 0

What it checks

  • dpkg --audit: packages that are half-installed, half-configured, or waiting for triggers.
  • apt-get check: unmet dependencies and a broken package database.

Findings

Severity Finding What to do
critical dpkg reports broken or half-configured packages sudo dpkg --configure -a, then sudo apt -f install.
critical apt-get check reports unmet dependencies or a broken package database sudo apt -f install, then sudo dpkg --configure -a.

The evidence shows the tools' own output.

Commands it runs

dpkg --audit
apt-get check

Limitations

  • It reports what dpkg and apt report, grouped into one finding each; the evidence has the details.

Options

This check has no options. Turn it off with enabled: false under checks: dpkg-audit: in the configuration file, or for one run with --skip dpkg-audit.