Safeguard
Security Guides•

Should servers install security updates automatically?

Ubuntu applies most security updates daily by default and Debian offers unattended-upgrades. Decide which servers can auto-update and which need a window.

Safeguard Security Team
4 min read

For most Linux servers on Ubuntu or Debian, yes, automatic security updates are a sound default, with exceptions for systems that need a controlled change window. Ubuntu applies most security updates daily by default on releases since 16.04 LTS, and Debian points admins to the unattended-upgrades package.

What the distributions offer

Ubuntu's security documentation says that since 16.04 LTS, releases automatically apply most security updates daily by default. Older releases can enable unattended upgrades. Ubuntu also says you can update manually with an apt update and upgrade, and recommends against cherry-picking updates from individual packages.

Debian's security page says the unattended-upgrades package can keep a computer current with the latest security and other updates automatically, and its wiki holds more detailed setup notes.

Both distributions backport fixes to the version they shipped, as Debian's FAQ describes, to keep changes small. That makes security-only updates less likely to change behaviour than moving to a new upstream version. It does not make them risk free.

A decision table

System typeSuggested approachReason
Stateless web or app nodes behind a load balancerAutomatic, with staggered timingEasy to replace, easy to roll back
Developer workstations and build agentsAutomaticLow blast radius, quick feedback
Databases and queuesControlled windowRestarts affect data and clients
Systems under change freeze or regulatory sign-offControlled window, with evidenceApprovals required
Internet-facing edge systemsAutomatic for security fixes, plus monitoringExposure justifies speed

This table is guidance, not a rule. Your own risk appetite decides.

Make automatic updates safer

  1. Stagger. Update a canary group first, then the rest hours or a day later. Do not update every node in a cluster at once.
  2. Limit scope to security updates. Leave feature and major version changes for planned work.
  3. Watch for services that need a restart. A library update can leave an old copy running in memory. Check which services need restarting after an update, and schedule it.
  4. Handle kernels with a plan. A new kernel needs a reboot unless you use a live patching service. Ubuntu lists live kernel patching among Ubuntu Pro features. Pick a reboot window and a way to confirm the running kernel.
  5. Log and report. Keep the update logs. You will need them to show a compliance team when a fix landed.
  6. Keep a rollback path, such as snapshots or the ability to reinstall the previous package version.

What automatic updates do not cover

  • Applications you installed outside the package manager, such as vendor tarballs and bundled libraries.
  • Container images. Updating the host does not update the packages inside an image. Rebuild images and redeploy.
  • Language dependencies in your own code.
  • Packages in repositories that carry less support. Ubuntu notes that its universe and multiverse repositories get best-effort security updates, and extended coverage needs an Ubuntu Pro subscription. Check which repository a package comes from.

The advisory feeds still matter. They tell you what changed and why, and they cover what the auto-updater does not. See our guide to subscribing to Ubuntu and Debian advisories.

Try it yourself

Click through it at your own pace, or open it full screen.

Look at the packages inside an image and the findings against them. Host auto-updates would not touch any of those.

Safeguard scans container images and dependencies, and can open fix PRs when you turn that on. It is off by default, with every category on Manual. Try a free scan.

Quick check

Do automatic updates fix my container images?

No. Host updates do not change packages inside an image. Rebuild and redeploy images.

Is a reboot needed after automatic kernel updates?

Usually yes, unless you use a live patching service. Plan a window and confirm the running kernel version.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.