Skip to content
statance
MenuClose
← All troubleshooting guides

Pending security updates on a Linux server

Linux

On Ubuntu and Debian, run sudo apt update && apt list --upgradable; on RHEL, Rocky, Alma and Fedora, run dnf updateinfo list --security. Apply them with your package manager, then check whether a reboot is needed: /var/run/reboot-required exists on Debian-family systems, and needs-restarting -r answers on RHEL-family systems.

Symptoms

  • Login message shows “N updates can be applied immediately, M are security updates”
  • Security scanners report outdated packages with known CVEs
  • /var/run/reboot-required exists

How to diagnose it

  1. List upgradable packages (Debian/Ubuntu)

    Security updates come from the -security pocket.

    sudo apt update apt list --upgradable 2>/dev/null | grep -i security
  2. List security updates (RHEL family)

    Shows advisories and their severity.

    sudo dnf updateinfo list --security
  3. Check if a reboot is required

    Kernel and libc updates usually need one.

    cat /var/run/reboot-required.pkgs 2>/dev/null sudo needs-restarting -r # RHEL family

Common causes and fixes

Updates applied manually and forgotten

Apply security updates now.

sudo apt upgrade # Debian/Ubuntu sudo dnf upgrade --security # RHEL family

Automatic updates not enabled

Enable unattended security updates.

sudo apt install unattended-upgrades && sudo dpkg-reconfigure -plow unattended-upgrades sudo dnf install dnf-automatic && sudo systemctl enable --now dnf-automatic-install.timer

Updated but not rebooted

A patched kernel or library is not in use until the server or service restarts. Schedule the reboot.

Distro release end-of-life

No further security updates are published; upgrade to a supported release.

Prevent it happening again

  • Statance reports pending package and security updates and “reboot required” for each server.
  • Pro and Business match installed packages against known CVEs, CISA KEV and end-of-life data.

Set it up: Ubuntu monitoring · Debian monitoring · CentOS, RHEL, Rocky & Alma monitoring.

FAQ

How do I install only security updates on Ubuntu?

unattended-upgrades installs only from the security pocket by default: sudo unattended-upgrade -d runs it manually.

Do I need to reboot after updates?

Only when the kernel, libc or similar core libraries change, or when /var/run/reboot-required exists. Restart updated services otherwise.

Related guides

Get alerted before this becomes an outage.

Install the agent in one line. Statance watches CPU, memory, disk and services, and its AI assistant helps find the cause.