The commands and steps in this guide come from Ubuntu's official documentation and release notes, and from the documentation of the tools mentioned. I have not tested them on a clean installation of Ubuntu 26.04 LTS. The section on what is new in Ubuntu 26.04 LTS is based on the official release notes and is not tested either. The sources are listed at the bottom.
Use this list as a checklist after a fresh install of Ubuntu 26.04 LTS Desktop. Each step is short, explains why it is worth doing, and shows the command to run. Work through it from the top, and tick off the steps as you go. Most steps are the same on every machine. Step 3, drivers, depends the most on your hardware, especially if you have an NVIDIA graphics card.
๐ 1. Update the system and reboot
The installation image is older than the packages in the archive. Updating first means that the rest of the guide builds on current packages, and that known bugs and security holes are fixed.
sudo apt update
apt update fetches the current package lists from the repositories. Nothing is installed yet.
sudo apt full-upgrade
full-upgrade installs the available updates, and unlike upgrade it may also remove installed packages if that is needed to upgrade the system as a whole. Read the list before you confirm.
Applications from the App Center are snaps, and they are updated separately:
sudo snap refresh
snapd already checks for snap updates automatically several times a day, so this only makes it happen now. Reboot afterwards, so the new kernel and system libraries are actually in use.
๐ง 2. Update firmware with fwupd
Firmware for the motherboard, SSD, and other devices can contain security fixes too, and they are not delivered through apt. fwupd fetches firmware from the Linux Vendor Firmware Service, if the manufacturer publishes it there.
fwupdmgr refresh
refresh downloads the latest metadata about available firmware.
fwupdmgr update
update asks for confirmation, installs the available firmware updates, and may reboot to apply updates that need a restart. Keep a laptop connected to power while it runs.
Note: if you chose TPM backed disk encryption during installation, Ubuntu 26.04 LTS asks for the recovery key before firmware updates that may require it on the next boot. Have the recovery key ready before you start.
๐ฎ 3. Drivers (ubuntu-drivers and Additional Drivers)
Most hardware works with the open drivers in the kernel. Some devices, especially NVIDIA graphics cards and some wireless chips, work better with a proprietary driver. ubuntu-drivers finds the drivers that match your hardware.
sudo ubuntu-drivers list
shows the drivers that are available for your hardware. Let Ubuntu pick the best match:
sudo ubuntu-drivers install
The release notes for Ubuntu 26.04 LTS call sudo ubuntu-drivers install --recommended the fastest way to get a driver. If you need a specific NVIDIA driver version, give it by name. 595 is the example from the release notes, and ubuntu-drivers list shows the versions available to you:
sudo ubuntu-drivers install nvidia:595
Ubuntu's documentation recommends ubuntu-drivers if the machine uses Secure Boot, because by default it only installs prebuilt, signed drivers that are known to work with Secure Boot. According to the release notes, the only drivers Ubuntu supports officially are the ones installed this way.
Note: the graphical Additional Drivers tab lives in the Software & Updates app, which Ubuntu Desktop 26.04 LTS no longer installs by default. You can get it back with
sudo apt install software-properties-gtk.
๐ฌ 4. Multimedia codecs
Some common codecs and fonts are not installed by default. ubuntu-restricted-extras is a metapackage in the multiverse repository that pulls in the extra FFmpeg codecs (libavcodec-extra), Microsoft's core fonts (ttf-mscorefonts-installer), and unrar:
sudo apt install ubuntu-restricted-extras
During the installation, ttf-mscorefonts-installer shows Microsoft's licence agreement for the fonts and asks Do you accept the EULA license terms? The installation is cancelled if you do not accept. In the terminal you move between the buttons with Tab and confirm with Enter.
Note: if you ticked Install third party software for graphics and Wi-Fi hardware and additional media formats during installation, part of this is already in place.
โฐ 5. Automatic security updates
Updates only protect you once they are installed. Ubuntu installs security updates automatically with unattended-upgrades, which is installed by default and runs once a day. It is still worth checking that it is actually switched on.
cat /etc/apt/apt.conf.d/20auto-upgrades
The file should contain these two lines, where "1" means every day and "0" means off:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
The behaviour itself, for example which updates are allowed and whether the machine may reboot automatically, is controlled in /etc/apt/apt.conf.d/50unattended-upgrades. The runs are started by two systemd timers, and you can see when they last ran and when they run next:
systemctl list-timers apt-daily.timer apt-daily-upgrade.timer
The log of each run is in this folder:
ls /var/log/unattended-upgrades/
๐งฑ 6. Firewall with ufw
ufw (Uncomplicated Firewall) is Ubuntu's firewall tool. It is disabled after installation, and when you enable it, its default policy is to deny incoming connections. A desktop that does not offer services to the network loses nothing by switching it on.
If you connect to the machine over SSH, allow SSH first, so you do not lock yourself out:
sudo ufw allow 22
Enable the firewall:
sudo ufw enable
Check the rules and the default policy:
sudo ufw status verbose
Note: to undo it, run
sudo ufw disable, which turns the firewall off and stops it from starting at boot.
๐ก๏ธ 7. Check the security basics
A few quick checks tell you whether the foundation is in place.
sudo aa-status
AppArmor is installed and loaded by default, and aa-status shows which profiles are loaded and whether they are in enforce mode. Since Ubuntu 25.04 AppArmor ships many new profiles for applications.
lsblk -f
shows whether the disk is encrypted: an encrypted partition shows crypto_LUKS in the FSTYPE column. Encryption is chosen during installation. Ubuntu 26.04 LTS also offers TPM backed full disk encryption, where the key is stored in the computer's TPM and the disk unlocks automatically at boot. Encryption cannot be added afterwards without risk, so if the disk is not encrypted, plan it for the next install.
mokutil --sb-state
shows whether Secure Boot is enabled. Finally, Lynis gives a broader audit with concrete suggestions:
sudo apt install lynis
sudo lynis audit system
Lynis also runs without root, but it can check more with sudo. Treat the suggestions as a list to consider, not as a list of errors.
๐ฆ 8. Snap, apt, and Flatpak
Ubuntu has two package formats out of the box, and a third one you can add:
- apt (deb packages) is the base of the system: the kernel, libraries, command line tools, and the security updates from step 5.
- Snap is what the App Center installs. Snaps are updated automatically in the background, as described in step 1.
- Flatpak is not set up by default. It is worth adding if an application you need is only on Flathub.
See which snaps are installed:
snap list
If you want Flathub, Flathub's own setup guide for Ubuntu gives these two commands:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Restart afterwards to complete the setup. Avoid installing the same application in several formats, because you then get two copies with separate settings and separate updates.
๐ 9. Permissions on the home folder
Since Ubuntu 21.10, new home folders are created with private permissions. Check yours:
ls -ld ~
The line should start with drwxr-x---, which is mode 0750:
- The owner (you) can read, write, and open the folder.
- Members of the folder's group can read and open it.
- Everyone else has no access.
If the folder was created on an older version and is readable by everyone, Ubuntu's documentation shows how to fix it:
sudo chmod 0750 /home/USERNAME
Do not use -R here, because that changes every file and folder below as well, and that is not needed.
โ 10. Ubuntu Pro
An LTS release gets five years of standard security maintenance for the main repository. Ubuntu Pro extends that to ten years for the whole archive, including the universe repository, where many of the applications you install with apt come from. According to Canonical, Ubuntu Pro is free for personal use on up to five physical machines.
sudo pro attach
The command shows a link, https://ubuntu.com/pro/attach, and a short code. Open the link without closing the terminal, sign in to your Ubuntu Pro account, and enter the code. The free personal subscription is selected by default. Afterwards you can see which services are enabled:
pro status
Note:
sudo pro detachremoves the machine from the subscription again.
๐งน 11. Cleanup
Over time packages pile up that were only installed as dependencies and are no longer needed:
sudo apt autoremove
Read the list before you confirm, so nothing you use disappears. Downloaded package files that can no longer be downloaded from the repositories can be removed with:
sudo apt autoclean
โจ 12. New in Ubuntu 26.04 LTS
These points come from the official release notes for Ubuntu 26.04 LTS, and I have not tested them:
- Linux 7.0 and GNOME 50. The generic kernel moves from 6.8 in 24.04 LTS to 7.0, and the desktop is GNOME 50.
- Wayland only. The Ubuntu Desktop session now runs only on Wayland, because GNOME Shell can no longer run as an X.org session. X.org applications still run through XWayland.
- TPM backed full disk encryption has been improved with better guidance and readiness checks in the installer. The release notes for 26.10 add that systems with TPM backed encryption cannot upgrade from 26.04 LTS to 26.10 on release.
- sudo-rs is the default sudo. The original sudo is still available as
sudo.ws. Password feedback is now on by default, so sudo shows that you are typing when it asks for your password. It can be turned off again withDefaults !pwfeedbackinsudo visudo. - rust-coreutils now provides the core utilities, and the classic GNU utilities are still included, because the Rust versions are not fully compatible yet.
- New default apps. Resources replaces System Monitor and Power Statistics, Papers replaces Evince as the document viewer, and Software & Updates is no longer installed by default (see step 3).
- Chrony is the default time service on new installations, replacing systemd-timesyncd.
- Kernel Livepatch now also supports ARM64.
Ubuntu 26.04 LTS gets security updates and critical bug fixes for five years, until April 2031, and with Ubuntu Pro it gets Expanded Security Maintenance for ten years. Ubuntu 26.10, released on 15 October 2026, is an interim release with nine months of support, until July 2027. If you want a system that you can leave alone for years, choose 26.04 LTS. If you want the newest software and are ready to upgrade at least once a year, 26.10 is the alternative.
โ Conclusion
After these steps the system is up to date, has current firmware and the right drivers, plays the common media formats, installs security updates by itself, has the firewall on, and has a checked security baseline.
๐ Next steps
- Backup: set up a backup before you need it, and test that you can actually restore from it.
- Disk encryption: if the disk is not encrypted, choose encryption at your next install.
- Upgrades: 26.04 LTS is supported until April 2031, so there is no need to move to 26.10 unless you want the newer software.
Sources
- Ubuntu 26.04 LTS release notes
- Ubuntu 26.04 LTS: summary for LTS users
- Ubuntu 26.04 LTS: changes since 25.10
- Ubuntu 26.10 release notes
- apt(8) manual page
- apt-get(8) manual page
- Snap documentation: manage updates
- fwupdmgr(1) manual page
- Ubuntu Server documentation: NVIDIA drivers installation
- Ubuntu packages: ubuntu-restricted-extras (26.04)
- Ubuntu Server documentation: automatic updates
- Ubuntu Server documentation: firewalls
- ufw(8) manual page
- Ubuntu Server documentation: TPM based LUKS decryption with Clevis (lsblk -f)
- Ubuntu Server documentation: AppArmor
- mokutil(1) manual page
- lynis(8) manual page
- Flathub: Ubuntu setup
- Ubuntu Server documentation: user management
- Ubuntu Pro
- Ubuntu Pro Client: attach a machine
- Ubuntu Pro Client: command reference
