How to Configure Automatic Security and Software Updates in Ubuntu

Keeping an operating system updated with the latest security patches is the single most effective defence against malware, network vulnerabilities, and software bugs. However, busy computer users often dismiss update popups or forget to run terminal upgrade commands for weeks on end. Ubuntu features an intelligent background service called unattended-upgrades that automatically downloads and installs critical Linux kernel patches and security fixes without interrupting your workflow or requiring manual intervention.

Why Automate Security Updates in Ubuntu?

Automated patch management ensures continuous system hardening:

  • Zero-Day Protection: Patches published by the Canonical security team are applied to your system within hours of release.
  • Non-Disruptive Background Operation: Updates download quietly during system idle times and configure themselves without freezing active desktop apps.
  • Configurable Reboot Rules: Prevents unexpected automatic reboots while you are working, giving you full control over when to restart.

Method 1: Configure Automatic Updates via Software & Updates (GUI)

You can adjust update intervals directly through the graphical control panel:

  1. Press the Super key (Windows key), type Software & Updates, and open the utility.
  2. Click on the Updates tab along the top navigation bar.
  3. Configure your automated scheduling rules:
    • Automatically check for updates: Set to Daily.
    • When there are security updates: Select Download and install automatically.
    • When there are other updates: Select Display weekly (or Display immediately).
    • Notify me of a new Ubuntu version: Choose For long-term support versions.
  4. Enter your user password when prompted to authenticate administrative changes.
  5. Click Close. Ubuntu will silently handle future security releases in the background.

Method 2: Verify and Configure Unattended Upgrades via Terminal

For users who want precise control over which package repositories update automatically:

  1. Open the Terminal by pressing Ctrl + Alt + T.
  2. Verify that the unattended-upgrades package is active:
    sudo dpkg-reconfigure --priority=low unattended-upgrades
  3. When the dialogue asks “Automatically download and install stable updates?”, select Yes and press Enter.
  4. To review update logs and verify past automated installations, inspect:
    cat /var/log/unattended-upgrades/unattended-upgrades.log

With automated updates active, your Ubuntu installation remains robustly protected against emerging security threats without demanding your daily attention.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.