How to Install OnlyOffice on Ubuntu 26.04 and 24.04

Share
5 Min Read · Free and Open Source · Beginner Friendly

OnlyOffice on Ubuntu

To install OnlyOffice on Ubuntu, add its official apt repository and run sudo apt install onlyoffice-desktopeditors. It is a free office suite for documents, spreadsheets, presentations and PDFs, and it works with Microsoft Office files.

This guide covers the repository, the .deb, Flatpak and Snap, plus fonts, updates and removal. If a step does not work on your system, leave a comment below or contact us and we will help you sort it out.

Cost: Free
Install: apt repository
Formats: DOCX, XLSX, PPTX, PDF
Updates: Through apt
Before You Start
Ubuntu version
Any current release. 26.04, 24.04 and 22.04 all work.
Cost
Free and open source. No account needed.
Machines
amd64 through the repository. On arm64, use the .deb, Flatpak or Snap.
Disk space
About 1.2 GB installed, from a download of around 300 MB.
Terminal
Needed for the repository. App Center offers the Snap instead.
Internet
Only to install and update. The editors work offline.

Install OnlyOffice in 3 Steps

Three steps, about five minutes. The same commands work on every current Ubuntu release.

1

Step 1: Add the signing key

Open a terminal with Ctrl + Alt + T and fetch the key OnlyOffice signs its packages with:

Download the signing key
curl -fsSL https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE | gpg --dearmor | sudo tee /usr/share/keyrings/onlyoffice.gpg > /dev/null

Silence means it worked. If the shell answers command not found, run sudo apt install curl gpg and try again.

2

Step 2: Add the repository and install

Add OnlyOffice to apt’s list of sources:

Register the repository
echo 'deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main' | sudo tee /etc/apt/sources.list.d/onlyoffice.list

The word squeeze is correct. It is the name of OnlyOffice’s repository, and it works on Ubuntu. Now install:

Install OnlyOffice
sudo apt update && sudo apt install onlyoffice-desktopeditors

A blue licence screen will appear partway through. It belongs to Microsoft’s fonts, which OnlyOffice installs alongside itself. Press Tab to select Ok, press Enter, then choose Yes to accept.

3

Step 3: Open it

Look for ONLYOFFICE in your applications menu, or run onlyoffice-desktopeditors in a terminal.

The start screen lets you create a document, spreadsheet, presentation or PDF form, or open a file you already have. Double-clicking a DOCX, XLSX or PPTX file in Files also works once you set OnlyOffice as the default app under Open With.

Other Ways to Install OnlyOffice

OnlyOffice also comes as a .deb file, a Flatpak and a Snap. All three are published by OnlyOffice itself.

Method Updates arm64 Best for
apt repository With your system No Most people on Ubuntu
.deb file Never. You download a new one Yes arm64, or the newest version first
Flatpak (Flathub) With flatpak update Yes People who prefer sandboxed apps
Snap (Snap Store) Automatically Yes Installing from App Center

The .deb file

Download it from the OnlyOffice download page, or fetch it in a terminal and install it:

Download and install the .deb (amd64)
cd ~/Downloads
wget https://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb
sudo apt install ./onlyoffice-desktopeditors_amd64.deb

On an arm64 machine, replace both amd64 with arm64.

About the .deb

The .deb does not add the repository, so it never updates on its own. Do Steps 1 and 2 later and apt takes over from the next release.

The download page sometimes has a new version a few days before the repository does. That is the one good reason to use the .deb on amd64.

Flatpak

Ubuntu does not include Flatpak, so add it and Flathub first. You only do this once per computer:

Set up Flatpak and Flathub
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Then install OnlyOffice:

Install the OnlyOffice Flatpak
flatpak install flathub org.onlyoffice.desktopeditors

If this was your first Flatpak, log out and back in before OnlyOffice shows up in the applications menu.

Snap

The OnlyOffice you find in App Center is the Snap. From a terminal:

Install the OnlyOffice Snap
sudo snap install onlyoffice-desktopeditors

The Snap cannot see USB drives until you allow it once:

Let the Snap open files on USB drives
sudo snap connect onlyoffice-desktopeditors:removable-media

Fonts That Match Microsoft Office

The repository install already brings in Microsoft’s core fonts, including Arial, Times New Roman, Verdana and Courier New. That is the licence screen from Step 2.
Calibri and Cambria are not in that set. OnlyOffice includes Carlito, which has exactly the same letter widths as Calibri, so pages break in the same places. For Cambria, add Caladea:

Add Caladea, the Cambria match
sudo apt install fonts-crosextra-caladea

Using the Flatpak, Snap or .deb and missing Arial or Times New Roman? Install the core fonts on their own with sudo apt install ttf-mscorefonts-installer. All three use the fonts installed on Ubuntu.
Fonts of your own go in ~/.local/share/fonts. Restart OnlyOffice and they appear in the font list.

Connect OnlyOffice to a Cloud

OnlyOffice can open and save files directly in ONLYOFFICE DocSpace, Nextcloud, ownCloud, Seafile, kDrive, Box, Dropbox, Moodle and Liferay.
Open the Clouds section on the start screen, choose your service and sign in with its address and your account. Files you open from there save back to the cloud, and other people can edit them with you at the same time.

OnlyOffice Screenshots

The start screen, the document, spreadsheet and presentation editors, PDF editing and the AI agent. Images: ONLYOFFICE.

Keeping OnlyOffice Updated

With the repository, new versions arrive with your normal system updates. Software Updater picks them up, or run:

Update everything, including OnlyOffice
sudo apt update && sudo apt upgrade

The Flatpak updates with flatpak update. The Snap updates itself. The .deb never updates, so download a new one or switch to the repository.
Upgrading from version 9 or older to 10? Version 10 does not carry over your cloud sign-ins. Sign in again in the Clouds section, and re-enter your user name in Settings if you had set your own.

If Something Goes Wrong

What you see

The install stops on a blue screen about ttf-mscorefonts-installer

FIX Press Tab to select Ok, press Enter, then choose Yes.

It is the licence for Microsoft’s fonts. The mouse does nothing on this screen, which is why it looks frozen.

What you see

E: Unable to locate package onlyoffice-desktopeditors

FIX Run Step 2 again, including sudo apt update.

apt does not know about the repository yet. On an arm64 machine this error is expected, because the repository has no arm64 build. Use the .deb, Flatpak or Snap.

What you see

NO_PUBKEY 8320CA65CB2DE8E5

FIX Run Step 1 again, then Step 2.

apt found the repository but not the key that proves its packages are genuine.

What you see

The Snap cannot see your USB drive

FIX Run sudo snap connect onlyoffice-desktopeditors:removable-media

Snaps cannot see removable drives until you allow it. You only do this once.

What you see

The Flatpak installed, but OnlyOffice is not in the menu

FIX Log out and back in.

Ubuntu picks up Flatpak apps at login, so this only happens after your first Flatpak.

Remove OnlyOffice

Repository or .deb install. Purge the app, then remove the repository and key:

Remove OnlyOffice and its repository
sudo apt purge onlyoffice-desktopeditors
sudo rm /etc/apt/sources.list.d/onlyoffice.list /usr/share/keyrings/onlyoffice.gpg

Purge also deletes OnlyOffice’s settings and app data for every user on the computer. To keep them, use sudo apt remove onlyoffice-desktopeditors instead.
Flatpak:

Remove the Flatpak and its settings
flatpak uninstall --delete-data org.onlyoffice.desktopeditors

Snap:

Remove the Snap and its settings
sudo snap remove --purge onlyoffice-desktopeditors

Your documents are not touched. They stay where you saved them.

Helpful Resources

Official Ubuntu install guide ↗OnlyOffice’s own repository steps for Debian and Ubuntu
OnlyOffice downloads ↗The .deb, Flatpak, Snap and AppImage for amd64 and arm64
What changed in each version ↗The official changelog on GitHub
OnlyOffice community forum ↗Ask the developers and other users, with a Linux section

Frequently Asked Questions

Is OnlyOffice free on Ubuntu?

Yes. OnlyOffice Desktop Editors is free and open source, and it needs no account. Only the paid cloud and server products cost money.

Which install should I use?

Use the apt repository, so OnlyOffice updates with the rest of Ubuntu. Pick the Flatpak or Snap if you prefer sandboxed apps, or the .deb if you are on arm64.

Does OnlyOffice open Word, Excel and PowerPoint files?

Yes. DOCX, XLSX and PPTX are its own formats, so files go back and forth without conversion. It also opens the older DOC, XLS and PPT files, and edits PDFs.

Does OnlyOffice run on arm64?

Yes, through the .deb, the Flatpak or the Snap. The apt repository only has amd64 builds.

Does OnlyOffice work offline?

Yes. The editors work fully offline. You only need a connection to install, update, or open files from a cloud.

Related guides: Install WPS Office on Ubuntu · Microsoft Office Alternatives for Ubuntu · Things to Do After Installing Ubuntu 26.04