Ubuntu upgrade cleanup checklist for web servers

ubuntulinuxmaintenanceops

Upgrades can “work” and still leave behind leftovers that bite later. This short checklist helps you reclaim space and catch failed services so the server stays stable after an Ubuntu upgrade.

Checklist

Quick verify

FAQ

When should I run this checklist?
Right after a successful apt upgrade or dist-upgrade, and optionally on a regular schedule (e.g. monthly) to keep drift under control.

What if I find failed units?
Investigate with journalctl -u <unit> -n 100. Restart only after fixing config or dependencies; see routine service health checks for a fuller verification flow.