How To Install LibreOffice on Ubuntu 26.04 LTS

Install LibreOffice on Ubuntu 26.04

Every fresh Ubuntu 26.04 LTS deployment eventually hits the same wall: someone needs to open a DOCX file, edit a spreadsheet, or draft a report, and the default Ubuntu image doesn’t ship with a full office suite anymore. That’s by design. Canonical trimmed the base install years ago to keep the ISO lean, which is great for server images but slightly annoying the moment a workstation user asks “where’s Word?”

LibreOffice is the answer nine times out of ten, especially in environments where licensing costs matter or where compliance teams push for open document formats. But “just install it” isn’t always as simple as it sounds. There are at least four legitimate installation paths on Ubuntu 26.04, and each one has trade-offs that only become obvious after you’ve broken something in production or spent an afternoon chasing a dependency conflict.

This guide walks through the practical reality of installing LibreOffice on Ubuntu 26.04 LTS, not the sanitized version you’d find in a two-paragraph blog post. It covers the default APT method, the Fresh PPA, Flatpak, Snap, and the manual .deb route, along with the reasoning behind choosing one over another. It also digs into permission issues, locale bugs, font rendering headaches, and the kind of edge cases that show up on real desktops and terminal servers rather than clean VM screenshots.

If you’re managing a fleet of machines, a single kiosk workstation, or a headless server that occasionally needs libreoffice --headless for document conversion pipelines, the method you pick actually matters. Get it wrong and you end up with duplicate installations, broken menu shortcuts, or a suite that silently fails to update for months. Get it right and LibreOffice becomes one of those pieces of software you never think about again, which, frankly, is the goal.

Quick Answer: The Fastest Path

For most readers on Ubuntu 26.04 LTS, this is all you need:

sudo apt update
sudo apt install libreoffice -y

That pulls the version Canonical packaged specifically for the 26.04 release, currently LibreOffice 26.2.2, straight from the Universe repository. It integrates cleanly with GNOME’s application menu, ships with proper locale support, and receives updates through the standard apt upgrade cycle. For everyone else, especially those who want a newer build, sandboxing, or a scriptable headless install, keep reading.

Understanding Your Installation Options

Before typing a single command, it helps to know what’s actually available and why you’d pick one method over another. This isn’t just academic. Choosing the wrong method on a shared workstation can mean two competing LibreOffice installs fighting over file associations, or a Snap sandbox blocking access to a network share your users depend on.

Method Package Source Update Mechanism Best Suited For
APT (default) Ubuntu Universe repo apt upgrade Most desktops, servers, standard deployments
Fresh PPA LibreOffice Fresh PPA (Launchpad) apt upgrade Users wanting a newer point release than the base repo
Flatpak Flathub flatpak update Sandboxed desktops, immutable/locked-down systems
Snap Canonical Snap Store snap refresh Environments already standardized on Snap
Manual .deb TDF official download Manual, no auto-update Testing specific builds, offline installs

On Ubuntu 26.04 specifically, there’s an interesting wrinkle: the Fresh PPA and the default repository currently ship the exact same 26.2.2 build. That wasn’t always true for 24.04 and 22.04, where the PPA routinely offered a newer version than the aging default repo. If you’re administering 26.04 boxes, that means the PPA buys you nothing right now except an extra third-party repository to maintain, unless The Document Foundation pushes a point release ahead of Canonical’s SRU (Stable Release Update) cadence.

Method 1: Installing via APT (Recommended Default)

This is the path 90% of sysadmins should take on 26.04, and here’s the reasoning behind it, not just the command.

Step 1: Refresh the Package Index

sudo apt update

Skipping this step is one of the most common mistakes I see junior admins make. Without a fresh index, APT might resolve libreoffice against stale metadata, which occasionally causes a 404 on a mirror or, worse, installs an outdated cached version without warning.

Step 2: Check What’s Available Before Installing

apt-cache policy libreoffice

This shows you the candidate version and which repository it resolves from. On a clean 26.04 install, you should see something like Candidate: 4:26.2.2-0ubuntu0.26.04.1 pulled from the universe component. If it’s blank or shows nothing, your universe repository probably isn’t enabled, which happens more often than you’d think on minimal server images.

If universe is missing, enable it first:

sudo add-apt-repository universe
sudo apt update

Step 3: Install the Full Suite

sudo apt install libreoffice -y

This installs the metapackage, which pulls in Writer, Calc, Impress, Draw, Math, and Base, along with the correct desktop integration files for GNOME (Ubuntu’s default) or whatever DE you’re running.

Step 4: Install Language Packs (If Needed)

A detail that trips up a lot of international deployments: the base libreoffice package includes English UI and spell-check only. If your users work in Bahasa Indonesia, for example, you’ll want:

sudo apt install libreoffice-l10n-id libreoffice-help-id -y

Swap id for whatever locale code applies. This one line saves a support ticket down the road when someone complains the spell-checker is “broken” because it’s actually just missing the right dictionary.

Step 5: Verify the Install

libreoffice --version

You should see output confirming the build number and Debian package revision. If nothing prints and the terminal hangs, that’s usually a sign of a broken GTK dependency or a missing display server connection, more on that in the troubleshooting section.

Installing Only Specific Components

Not every workstation needs the entire suite. A finance team member might only need Calc; a documentation writer might only need Writer. Installing selectively saves disk space and reduces the attack surface slightly, which matters on locked-down compliance-sensitive machines.

sudo apt install libreoffice-calc libreoffice-writer -y

This is also useful on terminal servers where dozens of concurrent sessions load the same binaries. Fewer loaded components, marginally less shared memory pressure across sessions.

Method 2: Using the Fresh PPA

Even though the PPA currently mirrors the default repo version on 26.04, there are still valid reasons to add it, mainly to guarantee you get point releases the moment TDF ships them, without waiting for Canonical’s SRU review process.

Step 1: Install the Repository Management Tool

sudo apt update
sudo apt install software-properties-common -y

Step 2: Add the PPA

sudo add-apt-repository ppa:libreoffice/ppa -y

Step 3: Refresh and Confirm the New Candidate

sudo apt update
apt-cache policy libreoffice

Compare the candidate version here against what you saw before adding the PPA. If they match, as they currently do on 26.04, you’ll know immediately whether the PPA is worth keeping.

Step 4: Install or Upgrade

sudo apt install libreoffice -y

If LibreOffice is already installed from the default repo, this command upgrades it in place using the PPA build rather than creating a parallel installation. That’s an important distinction; unlike Snap or Flatpak, APT-based installs from different sources don’t coexist, they replace one another.

Removing the PPA Later

If you decide the PPA isn’t buying you anything (a fair conclusion on 26.04 right now), clean it up properly instead of leaving a stale third-party source hanging around:

sudo add-apt-repository --remove -y ppa:libreoffice/ppa
sudo apt update
sudo apt install --only-upgrade libreoffice -y

That last line reverts you back to whatever version the official Ubuntu repo carries.

Method 3: Flatpak Installation

Flatpak makes sense in a specific scenario: locked-down or immutable desktop environments where you don’t want LibreOffice touching system libraries directly, or where you’re running an OS variant (think Fedora Silverblue-style setups, or hardened Ubuntu images) that discourages traditional package installs.

Step 1: Install Flatpak Support

sudo apt install flatpak -y

Ubuntu 26.04’s GNOME Software still supports Flatpak integration through a plugin, but the CLI route is faster and more predictable for scripted deployments.

Step 2: Add the Flathub Remote

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Step 3: Install LibreOffice

flatpak install flathub org.libreoffice.LibreOffice -y

Step 4: Launch It

flatpak run org.libreoffice.LibreOffice

One real-world caveat worth flagging: Flatpak sandboxes file access by default. If a user complains they can’t see files on a mounted network share or an external drive, that’s almost always a permissions scope issue, not a bug. You can grant broader filesystem access with:

flatpak override --user org.libreoffice.LibreOffice --filesystem=host

Use --filesystem=host cautiously. It effectively removes most of the sandboxing benefit, so only apply it when a narrower scope (like --filesystem=/mnt/shared:ro) won’t do the job.

Install LibreOffice on Ubuntu 26.04

Method 4: Snap Installation

Snap comes preinstalled on most Ubuntu desktop images, and Canonical maintains an official LibreOffice snap. It’s a reasonable choice if your organization has already standardized on Snap for other applications and wants consistent update tooling across the board.

sudo snap install libreoffice

Updates happen automatically in the background through snapd, typically checking four times a day. You can force a manual refresh:

sudo snap refresh libreoffice

The trade-off here is startup latency. Snap-packaged LibreOffice tends to launch noticeably slower on first cold start compared to the APT-installed version, because of how the squashfs mount and sandbox initialization work. On lower-spec hardware, that delay is genuinely noticeable, sometimes 5 to 8 seconds versus under 2 seconds for the native package. If your users are impatient (and they always are), this matters more than it sounds.

Method 5: Manual .deb Installation (Latest Version)

Sometimes you need a specific version that isn’t in any repository yet, maybe the brand-new 26.8 release with its typography and bidirectional text improvements, before it trickles down through Ubuntu’s packaging pipeline.

Step 1: Download the Official Package

Grab the 64-bit DEB bundle from the official Document Foundation download page. Choose the architecture matching your hardware (x86_64 for Intel/AMD, aarch64 for ARM-based systems).

Step 2: Remove Any Existing Installation First

Mixing manual .deb installs with an existing APT-managed installation is a recipe for broken symlinks and duplicate .desktop entries. Clean house first:

sudo apt remove --autoremove libreoffice* -y

Step 3: Extract and Install

tar -xzf LibreOffice_26.8.0_Linux_x86-64_deb.tar.gz
cd LibreOffice_26.8.0.3_Linux_x86-64_deb/DEBS
sudo dpkg -i *.deb

Step 4: Install Desktop Integration

The tarball usually includes a separate folder for menu integration:

cd desktop-integration
sudo dpkg -i *.deb

Without this step, LibreOffice installs fine but won’t show up properly in your application launcher, and file associations for .odt or .docx files may not register correctly.

The obvious downside: no automatic updates. You own the update cycle entirely, which means tracking security advisories yourself. For a single test machine that’s fine. For a fleet of production desktops, it’s a maintenance burden nobody signs up for twice.

Headless and Server Use Cases

Here’s something that rarely gets mentioned in consumer-focused guides: LibreOffice is one of the most reliable tools for automated document conversion on servers. If you’re running a WordPress-adjacent content pipeline, a PDF generation service, or a document ingestion workflow, libreoffice --headless is worth knowing.

libreoffice --headless --convert-to pdf report.docx

This runs without a GUI or display server, which matters on servers that don’t have X11 or Wayland installed at all. On a genuinely headless box, you’ll need xvfb as a fallback if the headless mode still complains about a missing display, though modern LibreOffice builds handle this natively far better than they did five years ago.

sudo apt install libreoffice-writer xvfb -y
xvfb-run libreoffice --headless --convert-to pdf report.docx

For batch conversion jobs, wrap this in a script and be mindful of concurrency. LibreOffice’s soffice process doesn’t handle parallel headless invocations gracefully by default; running ten conversions simultaneously against the same user profile often causes lock file conflicts. The fix is running each job with an isolated user profile directory:

libreoffice --headless -env:UserInstallation=file:///tmp/lo_profile_$$ --convert-to pdf report.docx

That $$ grabs the process ID, giving each concurrent job its own sandboxed profile and avoiding the classic “soffice.bin already running” lock error.

Troubleshooting Common Issues

“E: Unable to locate package libreoffice”

Almost always means the universe repository isn’t enabled, or apt update was never run after enabling it. Fix:

sudo add-apt-repository universe
sudo apt update
sudo apt install libreoffice -y

LibreOffice Won’t Launch, No Error Message

This usually points to a corrupted user profile, especially common after an interrupted update or an abrupt shutdown mid-session. Reset the profile:

mv ~/.config/libreoffice ~/.config/libreoffice_backup

Relaunch the application. LibreOffice regenerates a fresh profile automatically. If the problem disappears, the old profile was the culprit, and you can selectively restore user dictionaries or templates from the backup folder afterward.

Fonts Look Wrong or Missing After Opening a DOCX

This is a font substitution issue, not a bug in LibreOffice itself. Documents created in Microsoft Word often reference proprietary fonts like Calibri or Cambria that aren’t installed on Linux by default. Install the core compatibility fonts:

sudo apt install fonts-liberation fonts-crosextra-caladea fonts-crosextra-carlito -y

These are metric-compatible substitutes that preserve line breaks and pagination when documents round-trip between Word and LibreOffice.

“Another instance of LibreOffice is already running” Despite No Windows Open

A stale lock file from a crashed session. Kill any lingering processes and clear the lock:

pkill -9 soffice.bin
rm -f ~/.config/libreoffice/4/user/.lock

Snap Version Can’t Access Files on an NFS or SMB Mount

Snap’s confinement policy blocks access to network filesystems by default unless the appropriate interface is connected. Check and connect it:

snap connections libreoffice
sudo snap connect libreoffice:removable-media

For SMB/NFS specifically, you may need to mount the share under /media or /mnt and ensure the snap’s home interface covers the mount point, since Snap’s sandboxing model wasn’t originally designed with enterprise file servers in mind.

Package Conflicts Between Snap, APT, and Flatpak Installs

If a machine somehow ended up with LibreOffice installed through two methods (common after inheriting a machine from a previous admin), you’ll see duplicate entries in the application menu or version mismatches when running libreoffice --version from different shells. Audit what’s actually installed:

dpkg -l | grep libreoffice
snap list | grep libreoffice
flatpak list | grep libreoffice

Pick one method, remove the others cleanly, and don’t mix them going forward on the same machine.

Performance, Security, and Optimization Considerations

Memory and Cache Tuning

LibreOffice’s memory usage settings, tucked away under Tools > Options > LibreOffice > Memory, are worth adjusting on machines with either very limited RAM or plenty to spare. On low-memory VMs (2GB or less), reducing the “Number of steps” for Undo and lowering the graphics cache size prevents the suite from becoming the top memory consumer during long editing sessions. On workstations with 16GB+, bumping the graphics cache up noticeably speeds up document scrolling in image-heavy presentations.

Startup Speed

Enabling the Quickstarter (libreoffice --quickstart) preloads shared libraries into memory at boot, cutting subsequent launch times significantly. This is worth scripting into a user’s autostart on workstations where LibreOffice gets opened and closed repeatedly throughout the day, though it’s not ideal on RAM-constrained thin clients where every megabyte of idle memory matters.

Disk I/O on Terminal Servers

If you’re running LibreOffice across dozens of simultaneous sessions on a terminal server (a genuinely common setup in government offices and schools across Indonesia, incidentally), disk I/O contention becomes the real bottleneck, not CPU. Point user profile directories at fast local NVMe storage rather than networked home directories where possible, and consider tmpfs for the LibreOffice user cache if RAM allows:

sudo mount -t tmpfs -o size=512M tmpfs /home/username/.config/libreoffice

Use this carefully. Anything written there vanishes on reboot, so it’s only appropriate for the cache portion, not for user templates or macros that need persistence.

Security Hardening

Keep LibreOffice patched through whichever channel you chose. APT and Snap handle this automatically; manual .deb installs don’t, so subscribe to the Document Foundation’s security advisories if you go that route. Disable macro execution from untrusted documents by default:

Tools > Options > LibreOffice > Security > Macro Security, set to “High.”

This single setting blocks a meaningful class of malicious document attacks, particularly relevant since LibreOffice, like Word, supports macro scripting that attackers occasionally weaponize in phishing campaigns targeting office environments.

On multi-user systems, also verify that the /etc/apt/sources.list.d/ PPA files (if you added the Fresh PPA) are owned by root and not world-writable, a basic but frequently overlooked check during security audits:

ls -la /etc/apt/sources.list.d/

Firewall Considerations

LibreOffice itself doesn’t need inbound firewall rules for standard desktop use, but if you’re using its document conversion features against remote sources, or running a headless conversion service exposed to a network, restrict access with ufw:

sudo ufw allow from 10.0.0.0/24 to any port 8100 proto tcp

(Adjust the port and subnet to match your actual document conversion service configuration, this example assumes a common setup where a listener service wraps soffice for remote conversion requests.)

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.

Related Posts