Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Ubuntu Server 26.04 LTS: what changes for a server

44 min read
Improve this page

Ubuntu Server 26.04 LTS "Resolute Raccoon" was released on 23 April 2026. For a server, the first thing to know is not technical, and it is not specific to 26.04: free security maintenance only covers the main repository, about 2,300 packages that Canonical commits to fix. Yet docker.io, redis, fail2ban and prometheus are in universe, outside any guarantee from day one. Only the length of the cycle, extended to 15 years with the Legacy option, is new. Then come three breaking changes that wreck scripts: coreutils rewritten in Rust, sudo replaced by sudo-rs, and apt-key removed. This guide puts a number on the coverage gap, lists what breaks, prepares the upgrade from 24.04, and answers three frequently asked questions about the login message, cloud-init and needrestart.

Prerequisites

This guide assumes you can open an SSH session, run a command with sudo and install a package with apt. If needed, read use sudo and understand packages first. The more technical terms (dpkg diversion, SNI, clap, pexpect) are explained where they first appear.

What you will learn

  • Check the real security coverage of your server with pro security-status, and see what universe leaves out.
  • Identify what Rust coreutils really change, and switch back to GNU with the command that works.
  • Recognize the breaking changes that wreck old tutorials: apt-key, cgroup v1, /tmp, the sudo prompt.
  • Understand why the upgrade from 24.04 to 26.04 was only offered once 26.04.1 was released, and prepare it.
  • Neutralize the network call to Canonical made by the login message (MOTD), then check two common beliefs about cloud-init and needrestart.
  • Decide the three operating choices specific to Ubuntu: GA or HWE kernel, snapd, Livepatch.

Ubuntu 26.04 at a glance

Before talking about the breaking changes, you need to know how long the release will last. For 26.04, the official lifecycle page announces 15 years, not 10 (or 12).

The cycle is 15 years, not 10

Canonical now splits the life of an LTS into three slices: 5 years of standard maintenance, then 5 years of ESM (Expanded Security Maintenance, the extended coverage sold with Ubuntu Pro), then 5 years of Legacy add-on, 15 years in total. Above all, remember that only the first slice is free without a subscription, and that it does not apply to all your packages, which the next section demonstrates.

The versions shipped

Read this table as a list of things to retest before migrating. Every major version jump is a risk of configuration regression, in particular on web servers and databases.

ComponentUbuntu 24.04 LTSUbuntu 26.04 LTS
Linux kernel6.8 series7.0 series
systemd255259
APT2.7.143.2
OpenSSH9.6p110.2p1
sudosudo 1.9.15sudo-rs 0.2.13
coreutilsGNU 9.4uutils 0.8.0
PostgreSQL1618
Python3.123.14
PHP8.38.5
nginx1.241.28.3

Two values in this table are enough to justify a review of your operations scripts: sudo-rs and uutils. They are complete rewrites in Rust, not version bumps. Kernel 7.0 is also the one that causes the PostgreSQL regression described below.

The universe security gap, from day one

This is the heart of the matter. An Ubuntu LTS does not offer five years of free security fixes on everything you install, and this nuance matters on a production server.

main is covered, universe is not

The Ubuntu archive is split into components. The main component gathers about 2,300 packages that Canonical commits to maintain for five years, free of charge. The universe component holds more than 36,000, maintained by the community and covered on a "best effort" basis, that is, with no commitment at all.

For universe, ESM does not take over after five years: it is ESM-apps that covers it, and ESM-apps applies from the first year. In other words, a server that uses universe needs Ubuntu Pro immediately, not in five years.

Slicemain (~2,300 packages)universe (more than 36,000)
Years 1 to 5standard maintenance, freeESM-apps, so Ubuntu Pro required from day 1
Years 6 to 10ESM-infra (Pro)ESM-apps (Pro)
Years 11 to 15Legacy add-onLegacy add-on (the lifecycle page does not state the scope)

The fact that changes your architecture

What remains is to know where the packages you really install live. The check is direct: docker.io, redis, fail2ban and prometheus are all in universe, so without free security fixes. One detail is counter-intuitive: the containerd runtime is in main, so covered, while the docker.io package that drives it is not.

On the lab's 26.04, apt-cache policy gives the real component of each package:

docker.io -> http://archive.ubuntu.com/ubuntu resolute-updates/universe
certbot -> http://archive.ubuntu.com/ubuntu resolute/universe
nginx -> http://archive.ubuntu.com/ubuntu resolute-updates/main
openssh-server -> http://archive.ubuntu.com/ubuntu resolute-updates/main

Translate that into operations language: a Docker + Redis + fail2ban stack on Ubuntu LTS is not covered by free security maintenance. Your web server is, your SSH server is, but the docker.io package is not. The contrast is visible even in the security repositories: containerd is served by resolute-security/main, it really receives fixes, while the package that commands it gets nothing.

This sheds light on two common practices: Docker publishes its own APT repository, and the EFF offers certbot as a snap. By going through these official repositories, you get the vendor's updates, which Ubuntu's universe package does not guarantee. The mechanism of third-party repositories is detailed in the guide manage packages with APT.

Putting a number on it on your own machine

The Ubuntu Pro client is preinstalled on the server image, and the pro security-status command prints the calculation in plain words. Here is the output from the lab's 26.04, after installing docker.io:

Terminal window
pro security-status
687 packages installed:
684 packages from Ubuntu Main/Restricted repository
3 packages from Ubuntu Universe/Multiverse repository
This machine is receiving security patching for Ubuntu Main/Restricted
repository until 2031.
This machine is NOT attached to an Ubuntu Pro subscription.
Ubuntu Pro with 'esm-infra' enabled provides security updates for
Main/Restricted packages until 2036.
Ubuntu Pro with 'esm-apps' enabled provides security updates for
Universe/Multiverse packages until 2036.

Read the middle line, that is where the gap is: the machine receives fixes for main and restricted until 2031. For the 3 packages that come from universe (Docker and its dependencies), no date, no commitment. The esm-apps line is not a comfort option, it is the only existing coverage for these packages, and it requires a subscription.

The cloud image trap: universe declared but missing

One detail from the lab explains the "Unable to locate package" message on a fresh machine. On a freshly booted cloud image, universe is indeed declared in /etc/apt/sources.list.d/ubuntu.sources (Components: main universe restricted multiverse), but its index is not shipped with the image. The result, before any apt update:

Terminal window
apt-cache policy docker.io
docker.io:
Installed: (none)
Candidate: (none)
Version table:

The package seems not to exist even though the repository is active. All that is missing is a sudo apt update, which will download the universe index: apt-cache policy docker.io then answers correctly with version 29.1.3. The operating lesson is simple: on a cloud image, apt update is not a courtesy, it is what makes half the archive visible.

Coreutils move to Rust

This change touches almost every script. Coreutils are the basic commands that every script uses without thinking about it: ls, cat, sort, wc, stat, date. In 26.04, most of them come from the uutils project, a reimplementation in Rust, and no longer from GNU.

The exact list of what stays GNU

The official documentation announces that "cp, mv and rm stay GNU". The inventory taken on the real machine gives a slightly longer list. On the lab's 26.04, against the 24.04 control:

26.04 24.04 (control)
ls ls (uutils coreutils) 0.8.0 ls ls (GNU coreutils) 9.4
cat cat (uutils coreutils) 0.8.0 cat cat (GNU coreutils) 9.4
sort sort (uutils coreutils) 0.8.0 sort sort (GNU coreutils) 9.4
cp cp (GNU coreutils) 9.7 cp cp (GNU coreutils) 9.4
mv mv (GNU coreutils) 9.7 mv mv (GNU coreutils) 9.4
rm rm (GNU coreutils) 9.7 rm rm (GNU coreutils) 9.4
df df (GNU coreutils) 9.7 df df (GNU coreutils) 9.4

The full count, taken on the lab: only five commands stay GNU, namely cp, mv, rm, df and true. All the rest of the userland is uutils 0.8.0. And the asymmetry, checked twice (target of the symbolic link and --version of the binary), is worth knowing: /usr/bin/true is GNU, while /usr/bin/false is uutils.

The method trap that skews every test

If you want to redo this classification yourself, do not do it in the shell. Typing true --version proves nothing at all: true, false, printf, echo and test are shell builtins, the command never reaches /usr/bin/. The lab hit this live, with this meaningless output:

printf bash: line 1: printf: --: invalid option

The only reliable method is to query the binary by its absolute path:

Terminal window
/usr/bin/true --version | head -1 # true (GNU coreutils) 9.7
/usr/bin/false --version | head -1 # false (uutils coreutils) 0.8.0

A uutils/GNU classification done in the shell is wrong for these five commands.

GNU is already installed, under the gnu prefix

Here is the good news: the gnu-coreutils 9.7 package is present by default on a clean 26.04. It provides /usr/bin/gnuls, gnusort, gnuwc, gnucat and their siblings. Fixing a broken script therefore requires no installation:

Terminal window
gnuls --version | head -1
ls (GNU coreutils) 9.7

If an operations script depends on a precise GNU behavior, replacing ls with gnuls in that script is the shortest fix, and it does not touch the rest of the system. This is the surgical workaround, to be preferred over a global switch.

Switching back to GNU: the official command does not work

To switch the whole system to GNU, the documentation gives apt install coreutils-from-gnu --allow-remove-essential. This command fails on the lab, and here is why.

The two packages coreutils-from-gnu and coreutils-from-uutils both provide the virtual package coreutils-from and both conflict with it. The APT solver does not conclude that one must be removed to install the other, and stops:

E: Unable to satisfy dependencies. Reached two conflicting assignments:
1. coreutils-from-gnu:amd64=0.0.0~ubuntu25 is selected for install
2. coreutils-from-gnu:amd64=0.0.0~ubuntu25 is not selected for install because:
1. coreutils-from-uutils:amd64 is selected for install
2. coreutils-from-uutils:amd64 Conflicts coreutils-from

This is not a regression of APT 3's new solver: the failure is identical with -o APT::Solver=internal. Nor is it a lab accident: the bug is open at Canonical under number 2146618, with exactly the same message. The only command that works explicitly requests the removal of the other package in the same transaction:

Terminal window
sudo apt install --allow-remove-essential coreutils-from-gnu coreutils-from-uutils-

The trailing - glued to a package name means "remove it in the same transaction". The --allow-remove-essential option is needed because the coreutils metapackage is marked Essential. After that the check is conclusive, and the mechanism is visible:

Terminal window
ls --version | head -1 # ls (GNU coreutils) 9.7
ls -la /usr/bin/ls # /usr/bin/ls -> gnuls

Note the mechanism, it is surprising: the switch goes through dpkg diversions (a dpkg mechanism that redirects a file to another name), not through update-alternatives. The operation is reversible by swapping the two names (coreutils-from-uutils coreutils-from-gnu-).

The real differences: 10 out of 93, and zero on exit codes

The question that matters in production is not "is it Rust", it is "what is going to break". The lab replayed 93 probes on the same machine, before and after the switch, so with the same distribution, kernel and locale. Result: 10 diverging outputs, and 0 different exit codes.

That zero is good news: a set -e, an if, an && will not change behavior. Your scripts are not going to start failing en masse.

The other differences are less serious but worth knowing, especially if you filter error messages:

Caseuutils 0.8.0GNU 9.7
Missing filestat: cannot stat '/x': ... (os error 2)stat: cannot statx '/x': ...
Unknown optionerror: unexpected argument '--xyz' foundls: unrecognized option '--xyz'
Invalid base64 -dbase64: error: invalid inputbase64: invalid input
pr -t -2padding with spaces + tabpadding with tabs

The unknown-option message comes from clap, the Rust library that parses command-line options. A monitoring script that looks for grep "unrecognized option" finds nothing anymore, and therefore believes everything is fine. The pr padding breaks any fixed-width parsing.

Conversely, and this is useful information, a long list of behaviors does not diverge: locale-aware sorting, sort -h, sort -V, sort -k, head -c, wc on empty input, date -d 'next friday', seq, tr, cut, du. The most sensitive cases of administration scripts pass.

The AppArmor side effect

The AppArmor who profile, in enforce mode, denies the uutils binary access to its own translation file, which dmesg makes visible. The confinement profile did not follow the move to uutils:

apparmor="DENIED" operation="open" class="file" profile="who"
name="/usr/share/coreutils/locales/uucore/en-US.ftl" comm="who" requested_mask="r"

The underlying problem is known and tracked as bug 2123870: several AppArmor profiles are incompatible with the new coreutils layout. The who command still exits with code 0 (it degrades without complaining), but every call writes a denial into the audit log. On a server that calls who regularly, for example from a session monitoring script, these AppArmor denials durably pollute the logs and blur the reading of real security incidents. This is a packaging bug, not a decision.

sudo is no longer sudo

Same story as coreutils, on an even more sensitive binary. 26.04 ships sudo-rs 0.2.13, a rewrite in Rust, in place of Todd Miller's historical sudo. The /usr/bin/sudo binary now points to /usr/lib/cargo/bin/sudo.

The prompt changes, and that breaks automation

What breaks is not sudo itself, it is the text it displays. Direct comparison between the lab's two machines:

26.04 (sudo-rs)24.04 (sudo 1.9.15)
Prompt[sudo: authenticate] Password:[sudo] password for testadmin:
Wrong passwordsudo: Authentication failed, try again.Sorry, try again.
sudo -nsudo: interactive authentication is requiredsudo: a password is required

The [sudo] password for pattern, which these scripts expect, appears nowhere anymore. Any Expect or pexpect automation (tools that drive an interactive program by waiting for its text) that waits for this pattern to send a password fails. These are typically old deployment scripts, home-grown orchestration jobs, or integration tests. They do not raise a clear error, they stay blocked until the timeout.

The nuance the docs miss: sudoreplay has not disappeared

The documentation announces that sudo-rs has no input/output logging, and therefore no sudoreplay, the tool that replays a recorded session. That is true under that name. But the lab shows that the original survives, exactly like the gnu* commands of coreutils: the sudo 1.9.17p2 package stays installed and provides its binaries suffixed .ws (for sudo.ws, the original project):

/usr/bin/sudo.ws sudo Sudo version 1.9.17p2
/usr/bin/sudoreplay.ws sudo sudoreplay.ws version 1.9.17p2
/usr/bin/cvtsudoers.ws sudo

If your compliance rules require recording privileged sessions, you are therefore not blocked: sudoreplay.ws is there, and the classic sudo package stays installed next to sudo-rs. The procedure for a complete return to the historical sudo was not tested here; everyday use of the command is described in use sudo. Note in passing that sudo-ldap is removed: privilege escalation backed by LDAP must now go through PAM.

What breaks old tutorials

Beyond the two Rust rewrites, 26.04 removes several things that many tutorials still rely on. Spotting them will save you from looking for a command that no longer exists.

apt-key is removed

Old tutorials still cite it. APT is at 3.2.0 and apt-key no longer exists at all. This is not a deprecation with a warning, it is a removal:

$ apt-key add /dev/null
bash: line 1: apt-key: command not found
$ dpkg -S /usr/bin/apt-key
dpkg-query: no path found matching pattern /usr/bin/apt-key

No package provides the file. On 24.04 (APT 2.7.14), the command still existed. Direct consequence: a tutorial that adds a third-party repository with curl ... | apt-key add - no longer works on 26.04. The good practice is to drop the key into /etc/apt/keyrings/ and reference it with Signed-By:, as explained in the guide manage packages with APT.

In exchange, APT 3.x brings a transaction history: apt history-list, history-info, history-undo, history-rollback, as well as apt modernize-sources to convert sources to the deb822 format.

cgroup v1 disappears, and /tmp moves to RAM

Support for cgroup v1 was removed from systemd upstream, in version 258, and the systemd 259 shipped by 26.04 therefore no longer has it. On 26.04, /sys/fs/cgroup is exclusively cgroup2fs, and no v1 hierarchy exists. An important nuance: it is systemd that dropped cgroup v1, not the kernel. The /proc/filesystems file still lists cgroup. Writing "the kernel no longer supports cgroup v1" would therefore be wrong. In practice, an old container runtime or monitoring agent that reads /sys/fs/cgroup/memory/... will find nothing anymore.

Note also that 26.04 is the last release to support SysV scripts: this is your last window to convert them to systemd units.

Another direct change of behavior: /tmp is now a tmpfs, so in RAM, and emptied at every reboot. On the lab's 26.04, findmnt /tmp confirms it, and a marker file dropped before a real reboot was indeed gone on return:

TARGET SOURCE FSTYPE OPTIONS
/tmp tmpfs tmpfs rw,nosuid,nodev,nr_inodes=1048576,inode64,usrquota

On the 24.04 control, /tmp is not a mount point: it is on disk, but systemd-tmpfiles empties it at every boot (rule D /tmp 1777 root root 30d from the systemd package). On both versions, /tmp is therefore emptied at boot: the difference is about memory, not lifetime. On 26.04, a large file dropped in /tmp takes up RAM, and any job that writes a big dump there must be reviewed.

The /var/tmp directory stays on disk and survives a reboot; systemd-tmpfiles only deletes files there that have been inactive for 30 days (rule q /var/tmp 1777 root root 30d from the 26.04 systemd package).

The Debian 13 Trixie guide (in French) describes how to enlarge or disable this tmpfs with systemctl edit tmp.mount and systemctl mask tmp.mount, followed by a reboot. These steps were tested on Debian; 26.04 uses the same systemd tmp.mount unit, but check the result with findmnt /tmp on your machine.

chrony and Dracut replace the usual tools

Two more discreet substitutions, but ones that throw you off at diagnosis time. Time synchronization moves from systemd-timesyncd to chrony 4.8, but only on new installations: a migrated 24.04 keeps systemd-timesyncd. On the lab's fresh image, chrony is active and enabled, while systemd-timesyncd is not-found, the package is not even installed. Looking up the clock state with systemctl status systemd-timesyncd will therefore show nothing, you have to go through chronyc tracking.

Finally, Dracut replaces initramfs-tools to generate the initrd, the minimal boot image loaded before the root filesystem. Your home-grown initramfs-tools hook scripts will not be picked up automatically.

Upgrading 24.04 to 26.04: open since 26.04.1

Upgrading a 24.04 fleet was not possible as soon as 26.04 came out, in April. Canonical only offers it from 26.04.1, published at the end of August 2026: this is its rule for any LTS to LTS upgrade. The meta-release-lts file, the one do-release-upgrade reads, does announce 26.04.1 LTS (recorded on 1 October 2026).

What a 24.04 answered before 26.04.1

The lab asked the machine on 12 July 2026, before the opening. The capture no longer reflects the current state, but it shows the rule in action, and the exit code that your migration scripts must know how to handle. On the 24.04 control, with the default configuration (Prompt=lts in /etc/update-manager/release-upgrades):

Terminal window
do-release-upgrade -c
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
[actual exit code: 1]

26.04 was not offered. The reason is a Canonical rule, not a bug: the LTS to LTS upgrade only opens after the first point release, that is, 26.04.1. The aim is to let several months of fixes accumulate before sending a whole fleet onto it. Since the end of August 2026, the same command offers 26.04; rerun do-release-upgrade -c to check it on your machine.

The two other paths were captured on the same date, and one of the two remains a trap:

  • With Prompt=normal, the machine offered New release '25.10' available. That was not 26.04, but an interim non-LTS release, supported for nine months: its support ended in July 2026, so a machine on 24.04 today has no reason to aim for it. Moving a server onto it "to have a recent version" is an operating mistake.
  • With do-release-upgrade -d, 26.04 is indeed offered (New release '26.04 LTS' available.), but -d means development mode. It is useful for testing on a disposable machine, never in production.

Preparing the upgrade

The path is LTS to the next LTS, with no version skipping: a 22.04 must go through 24.04 before hoping for 26.04. Three prerequisites are prepared before running do-release-upgrade.

  1. Bring the system fully up to date, phased updates included. These updates, rolled out progressively in batches, are invisible to a plain apt upgrade, and their absence makes the preliminary check fail.

    Terminal window
    sudo apt update
    sudo apt dist-upgrade -o APT::Get::Always-Include-Phased-Updates=true
  2. Reboot if the system asks for it. A kernel waiting to be activated blocks the operation.

    Terminal window
    ls /run/reboot-required && sudo reboot
  3. List the PPAs and third-party repositories. They are disabled during the version upgrade, and Canonical names them as the first cause of failure. Know which ones you will have to re-enable, and in what form, before you start.

    Terminal window
    grep -rl "^Types:\|^deb " /etc/apt/sources.list.d/

Does the login message (MOTD) contact Canonical?

Here is a default behavior of Ubuntu Server, observed on the lab. On the lab machine, 13 scripts in /etc/update-motd.d/ compose the login message, run as root by pam_motd. One of them, 50-motd-news, is active by default and contacts motd.ubuntu.com.

The exact rhythm of the calls was not measured: according to the script, it only downloads the news when it is launched with the --force option, which is what a systemd service triggered by motd-news.timer does, whereas a plain login displays the cache. ENABLED=0 makes the script exit before any download. Check it on your machine with systemctl list-timers.

Canonical documents this behavior on its MOTD legal page (see the sources at the end of the page), and turning it off takes one line. The effect is operational: by default, the server emits an outgoing flow that its administrator did not ask for, and you need to know about this behavior to be able to refuse it.

What really goes out on the network

The script is tricky to analyze: it swallows wget errors and exits with code 0 no matter what. An echo $? therefore proves nothing, either way. The lab worked around the problem by instrumenting wget to log its arguments, then confirming with tcpdump. Here is the User-Agent actually sent:

wget/1.25.0 Ubuntu/26.04/LTS GNU/Linux/7.0.0-27-generic/x86_64
12th/Gen/Intel(R)/Core(TM)/i7-12650H cloud_id/nocloud

The string reads without commentary: what goes out is the distribution version, the kernel version, the architecture, the exact processor model and the cloud provider identifier. The tcpdump capture confirms the DNS requests for motd.ubuntu.com and the host name in clear in the SNI (the name of the requested site, sent unencrypted at the start of the TLS connection).

On a segmented network or in front of a compliance review, an undeclared outgoing flow to a third party has to be justified: the machine calls a domain that was not planned in the network design. You therefore have two options: declare it, or cut it.

The three distributions compared on this site also emit outgoing traffic: they contact their package mirrors (unattended-upgrades here, dnf-makecache on the Red Hat side) and their time servers. What sets this flow apart is that it carries information about the machine and that it is active by default.

Turning it off

Turning it off takes one line, and it was verified by network capture: after this change, the lab observes zero wget calls and zero packets to Canonical.

Terminal window
sudo sed -i 's/^ENABLED=1/ENABLED=0/' /etc/default/motd-news
grep ENABLED /etc/default/motd-news # must print ENABLED=0

One detail for whoever reads the script: it contains a dead-code bug. Its case statement tests the https://* pattern before https://motd.ubuntu.com, but the first pattern already catches everything. The branch meant to append /$codename/$arch to the URL is therefore never reached, which the captured argv confirms: the URL actually requested is the site root.

Known issues that affect a server

Canonical publishes a list of known issues for each release. Three of them affect production, and the lab contradicts the documentation on one of them.

Apache and PHP: the lab contradicts the documentation

Apache's systemd unit sets MemoryDenyWriteExecute=yes by default, a protection that forbids a process from allocating memory that is both writable and executable. That is exactly what the PHP JIT (just-in-time compiler) needs. So far, the official documentation and the lab agree.

They diverge on the symptom. The documentation announces a clear error message, Allocation of JIT memory failed. The lab built a full A/B/C/D test with PHP 8.5.4, opcache.jit=tracing and a 64 MB buffer, on the same machine:

TestConfigurationResult
AStatic file, MemoryDenyWriteExecute=yesHTTP 200
BPHP + JIT, MemoryDenyWriteExecute=yes (Ubuntu default)HTTP 000
CPHP without JIT, MemoryDenyWriteExecute=yesHTTP 200
DPHP + JIT, MemoryDenyWriteExecute=noHTTP 200

The culprit is indeed the MemoryDenyWriteExecute=yes + JIT pair, the documentation is right on that point. But the announced message never appears. What the lab observes is an HTTP 000, that is, no response at all: the worker dies before answering, and Apache's error log contains only this:

mprotect() failed [13] Permission denied

The nuance is far from cosmetic. The service stays active as far as systemd is concerned, your monitoring stays green, and only the client sees an empty response. An administrator who searches for Allocation of JIT memory failed in the logs, as the documentation invites, will find nothing and will miss the cause.

Two workarounds, take your pick. The cleanest is to switch to php-fpm, which does not suffer from the restriction of the Apache unit. The fastest is a systemd drop-in, created with systemctl edit:

Terminal window
sudo systemctl edit apache2
[Service]
MemoryDenyWriteExecute=no
Terminal window
sudo systemctl restart apache2
systemctl show apache2 -p MemoryDenyWriteExecute # must print =no

You remove a memory protection to make the JIT possible. On an exposed server, php-fpm is therefore the better choice.

PostgreSQL and POSIX ACLs

Two other points to know before migrating a database or a file server. PostgreSQL suffers a throughput and latency regression tied to a change in Linux kernel 7.0; the official workaround is to enable huge pages (huge_pages = on), which reduces the cost of virtual memory management. In addition, POSIX ACL inheritance is broken with mkdir -p: the intermediate directories created by this command may receive more open permissions than expected. If you rely on default ACLs to partition a share, check the result with getfacl after creation, assume nothing.

cloud-init and needrestart: what the lab shows

Two questions come up often on 26.04. Does rebooting a machine overwrite a network configuration set by hand? Does needrestart restart services without asking? The lab replayed the first with real reboots; for the second, it checked needrestart's configuration and code.

Does cloud-init overwrite your network configuration at reboot?

A widespread belief is that a static IP set by hand in netplan is overwritten at the next reboot by cloud-init.

The lab placed a 99-lab-statique.yaml file in /etc/netplan/, then did a real reboot (boot ID checked). Result: the file is still there, intact. Better, 50-cloud-init.yaml was not even rewritten, its modification date did not move. A simple reboot triggers no rewrite.

The real trigger is re-provisioning, that is, a new instance in cloud-init's eyes: cloning a VM, creating one from an image template, or cloud-init clean. The lab simulated exactly this case:

What you changedAfter cloud-init clean + reboot
An edit inside 50-cloud-init.yamlErased
A separate 99-lab-statique.yaml fileSurvives

What the lab shows: cloud-init only touches its own file, 50-cloud-init.yaml. Editing that file is the mistake; putting your own 99-*.yaml file in place survived both the simple reboot and the lab's cloud-init clean. The lab simulated re-provisioning with cloud-init clean, without cloning a VM: after a clone, check the result with ip addr, and disable dhcp4 in your file if the address must stay fixed. The network configuration itself is detailed in the Netplan guide.

If you really must neutralize cloud-init on the network side, for example on a corporate base image, the remedy is verified: with this file, a change to 50-cloud-init.yaml survives even a cloud-init clean followed by a reboot.

/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}

Does needrestart restart your services without asking?

needrestart is the tool called by an APT hook after every update. A widespread belief is that it restarts by itself the services tied to an updated library. On the lab's 26.04, the configuration says the opposite. In /etc/needrestart/needrestart.conf, the line that sets the mode is commented out:

40:#$nrconf{restart} = 'i';

The conf.d/ directory only holds a README: no Ubuntu override. The default applied is therefore the one in the code, readable at line 149 of /usr/sbin/needrestart: restart => 'i', that is, interactive: needrestart suggests, it does not restart silently. The behavior is identical on 24.04.

A misleading test: reinstalling openssh-server does restart the ssh service, but it is the package's postinst script that does it, not needrestart.

Without a terminal (automation, pipeline), needrestart's sample configuration states that an interactive mode falls back to list-only mode: it then lists the affected services without restarting anything. The lab did not observe it, check it on your machine. To avoid depending on this fallback, NEEDRESTART_MODE=l explicitly asks for the list of affected services, with no prompt and no restart.

Three operating choices to decide at install time

Beyond the breaking changes, Ubuntu Server poses three decisions that commit the machine for its whole lifetime: the kernel (GA or HWE), the presence of snapd, and the activation of Livepatch. The default values do not suit every server, and each choice has its reservations, detailed below.

The HWE kernel trap

On a server, the default kernel is the GA (General Availability) kernel, frozen for the whole length of the LTS. The HWE (Hardware Enablement) kernel is the one that follows recent hardware, and it is rolling: it moves to the kernel of each new Ubuntu release, so roughly every six months, until the next LTS. Choosing HWE "to support recent hardware" therefore means signing up for half-yearly kernel changes for nearly two years, on a machine meant to be stable for five. Do it only if your hardware really requires it, and document the choice.

Snap on a server: what really matters

On the lab's server image, snapd is installed and active but no snap is installed, and apt purge snapd works cleanly, freeing 147 MB. Three facts matter on a server. LXD only exists as a snap, there is no deb package: if you virtualize with LXD, you keep snapd. The Livepatch client is a snap as soon as you enable Ubuntu Pro. Finally, the Docker snap, built by Canonical and not published by Docker, updates itself, and the daemon restart that may follow cuts the containers that are not protected by live-restore. Docker's installation documentation for Ubuntu gives the procedure through Docker's APT repository: that is the route to prefer on a server, rather than the snap.

Livepatch does not remove reboots

One last point of vigilance. Livepatch applies security fixes to the kernel without rebooting, which is appealing on a production fleet. Two reservations: it only covers high and critical severity vulnerabilities, and a kernel is only covered for 13 months (up to 9 months for some HWE kernels), so you must update and reboot before the end of that window. Livepatch does not remove reboots, it postpones them. Plan them: once the coverage window has passed, the kernel is no longer protected. The day-to-day routine of fixes is described in security updates.

And against the other distributions?

This guide presents Ubuntu Server 26.04 for its own sake, and the question of choosing between distributions deserves more than a paragraph: the Debian, Ubuntu and AlmaLinux comparison covers it package by package, on the criterion of the security scope. Choose a server distribution sets the general framework for the choice, and the Debian 13 Trixie guide (in French) is the equivalent of this one on the Debian side, built on the same lab method.

Troubleshooting

This table gathers common symptoms on a new or migrated 26.04. Look here before launching an investigation: the culprit is often one of the changes documented above, not a bug in your application.

SymptomLikely causeSolution
Unable to locate package docker.io on a cloud imageuniverse index not shipped with the imagesudo apt update before any installation
apt-key: command not foundapt-key removed in APT 3.xKey in /etc/apt/keyrings/ + Signed-By: field
ls parsing broken in cron or CIuutils colorizes despite an empty LS_COLORSRemove --color=always, or call gnuls
Expect script stuck on sudo[sudo: authenticate] Password: prompt (sudo-rs)Adapt the expected pattern, or a sudoers rule limited to the necessary commands
grep "unrecognized option" finds nothing anymoreclap (Rust) error messagesAdapt the pattern, or switch to GNU
apt install coreutils-from-gnu failsConflict on the virtual package coreutils-fromapt install --allow-remove-essential coreutils-from-gnu coreutils-from-uutils-
Repeated AppArmor denials on the who profileProfile not updated for uutilsPackaging bug, no functional impact; watch for the fix
Files gone from /tmp after a reboot/tmp is emptied at every boot (and on 26.04 it is also a tmpfs, so in RAM)Write to /var/tmp to keep a file between two boots; masking tmp.mount only fixes the RAM usage
Apache answers empty on PHP pages, service activeMemoryDenyWriteExecute=yes + PHP JITphp-fpm, or systemctl edit apache2 with MemoryDenyWriteExecute=no
systemctl status systemd-timesyncd: not-foundReplaced by chronychronyc tracking
do-release-upgrade does not offer 26.04Machine not up to date (phased updates), or Prompt other than ltsapt dist-upgrade with phased updates, Prompt=lts; never -d in production
After an automated update, services still run with the old library (case not observed on the lab)needrestart is in interactive mode by default: it suggests the restart without forcing it, and without a terminal it falls back to list-only according to its sample configurationNEEDRESTART_MODE=l in the script's environment to get the list, then restart the listed services yourself

Key points

  • Ubuntu 26.04 LTS "Resolute Raccoon" was released on 23 April 2026. The cycle is 15 years (5 standard + 5 ESM + 5 Legacy), not 10 or 12.
  • Free security maintenance only covers main (~2,300 packages). universe (more than 36,000) is "best effort", with no commitment, from day 1.
  • docker.io, redis, fail2ban and prometheus are in universe: a Docker + Redis + fail2ban stack is not covered without Ubuntu Pro, which is free for up to 5 physical machines for personal use. Counter-intuitive: containerd is in main and really receives fixes.
  • Coreutils are in Rust (uutils 0.8.0). Only five commands stay GNU: cp, mv, rm, df and true. GNU is already installed under the gnu prefix (gnuls), no installation needed to fix things.
  • The dangerous divergence is ls --color=always, which emits ANSI codes even with an empty LS_COLORS: any parsing in cron or CI breaks silently. On the other hand, no exit code changes across the lab's 93 probes.
  • The documented rollback command fails. The only one that works is apt install --allow-remove-essential coreutils-from-gnu coreutils-from-uutils-.
  • sudo-rs changes the prompt ([sudo: authenticate] Password:), which breaks Expect automation. The original survives as sudo.ws, and sudoreplay.ws still exists.
  • apt-key is removed, cgroup v1 dropped by systemd, /tmp is a tmpfs, chrony replaces timesyncd: any earlier tutorial needs rereading.
  • The 24.04 to 26.04 upgrade is only offered from 26.04.1, at the end of August 2026: before that, do-release-upgrade -c exited with code 1. PPAs and third-party repositories are the first cause of migration failure.
  • The MOTD's 50-motd-news script contacts Canonical by default (launched by motd-news.timer), sending distribution, kernel, architecture, processor model and cloud identifier. ENABLED=0 in /etc/default/motd-news stopped the calls on the lab; the rhythm of the calls was not measured.
  • Two common beliefs can be checked: cloud-init did not overwrite the netplan file placed by hand at the lab's reboot (only a re-provisioning rewrites its own file), and needrestart's configuration is interactive by default, not a silent restart (the list-only fallback without a terminal comes from its sample configuration, not observed).

Sources and references

This guide combines a lab with official publications. The links below let you verify every claim at the source, and follow the evolution of the points that are still moving, in particular the fixes for the bugs cited.

The official release notes, to read first:

  • Ubuntu 26.04 LTS release notes: the entry point, with the support duration and the hardware requirements.
  • Summary for LTS users: the page that condenses everything that changes since 24.04 (Rust coreutils, sudo-rs, removal of apt-key, /tmp as tmpfs, chrony, Dracut).
  • Detailed changes and known issues: the official list of bugs that bite in production, including Apache with the PHP JIT, the PostgreSQL regression of kernel 7.0 and the ACLs broken by mkdir -p.
  • 26.04 release schedule: the dates, including 26.04.1 at the end of August 2026, which opened the upgrade from 24.04.

The support model, the heart of this guide's subject:

  • Ubuntu release cycle: the page that attests the 15 years (5 standard, ESM until 2036, Legacy until 2041), and not 10 years.
  • Expanded Security Maintenance (ESM): the source that proves the universe gap. It states that the esm-apps stream covers universe for ten years from the LTS release, whereas esm-infra only takes over main after the five free years.
  • Ubuntu Pro: the subscription terms, including the free tier of up to 5 physical machines.
  • Ubuntu Pro pricing: the public price of a server, 500 dollars per server per year according to the page checked in November 2026.
  • Upgrade your Ubuntu Server release: the official rule that explains why 26.04 is only offered from 26.04.1, and that names third-party repositories as the first cause of failure.

The bugs that confirm the lab's observations:

  • Launchpad bug #2146618: the coreutils-from-gnu failure, with the dependency error exactly reproduced in this guide. It is not a quirk of our machine.
  • Launchpad bug #2123870: the AppArmor profiles incompatible with the new coreutils layout, the context of the denial observed on the who profile.

The points of vigilance for operations:

Next steps