basforge

Search titles, text and the “If it doesn’t work” cases.

    RU

    Ubuntu Pro free for personal machines

    On standard Ubuntu LTS, Canonical security updates cover only the main repository and last 5 years. A free personal Ubuntu Pro subscription (up to 5 machines) extends coverage to 10 years, patches universe packages, and includes kernel Livepatch.

    What Ubuntu Pro gives you

    Ubuntu splits packages across two main repositories: main (kernel, systemd, openssh, core libraries) and universe (thousands of extra packages, from jq and nginx to backup tools). Without a subscription, apt upgrade warns that some security fixes are available only through ESM Apps:

    Service What it does Why it matters on your server
    esm-infra Extends security updates for main from 5 to 10 years An older server keeps getting fixes if you defer a release upgrade
    esm-apps Patches vulnerabilities in universe packages for the same 10 years Packages that otherwise rely on community updates get security fixes
    livepatch Applies critical kernel patches in memory without rebooting Closes kernel holes until the next planned reboot (Is a reboot needed)

    The free Personal subscription covers 5 machines — virtual or physical. Commercial company servers have different terms, while personal VPSes and home servers have no time limit.

    50unattended-upgrades already lists the ESMApps and ESM origins, so once you attach a machine, automatic updates start pulling packages from them on their own (unattended-upgrades).

    How to attach a server

    Create an Ubuntu One account at ubuntu.com/pro and activate the free personal subscription. Ubuntu Server already ships with ubuntu-pro-client installed.

    sudo pro attach

    With no arguments, the command prints a URL and a short code — open the URL in a browser, enter the code, and the server attaches without passing a token on the command line (keeping the token out of ~/.bash_history, Keep passwords out of command arguments). If you don’t have a browser handy, attach with your dashboard token (sudo pro attach <TOKEN>) and clear your shell history afterward, or pass the token via a config file.

    esm-infra and esm-apps turn on automatically after pro attach. On a VM or bare-metal host, enable or disable livepatch separately:

    sudo pro enable livepatch

    Livepatch doesn’t replace reboots: it patches critical kernel vulnerabilities in memory while regular kernel updates still wait for a reboot (Is a reboot needed).

    Before deleting or reinstalling a server, free the slot:

    sudo pro detach

    If it doesn’t work

    The 5-machine limit is reached even though you run fewer servers

    Cause
    An old VPS was deleted without detaching, so it still counts against the subscription.
    Fix
    Run sudo pro detach before deleting a server to free the slot immediately. If the machine is already gone, it drops off the ubuntu.com/pro dashboard after a period with no check-ins.

    livepatch fails to enable (Cannot enable Livepatch)

    Cause
    The server runs inside an LXC container or on a custom provider kernel.
    Fix
    Livepatch needs a standard Ubuntu LTS kernel on a VM or bare-metal host. In LXC, keep esm-infra and esm-apps enabled and let the host handle kernel updates.

    pro attach refuses to run on a non-LTS release

    Cause
    Ubuntu Pro only supports LTS releases (22.04, 24.04, 26.04).
    Fix
    Use Ubuntu LTS on servers.

    How to check

    Check subscription status and enabled services:

    pro status

    The table shows enabled next to esm-infra and esm-apps (and livepatch if enabled), with Subscription: Ubuntu Pro - free personal subscription at the bottom. After that, sudo apt update pulls lists from esm.ubuntu.com with no warnings about withheld security updates.