Installing ONLYOFFICE on Ubuntu

Learn how to install and remove ONLYOFFICE in deb format from its official repositories.
Warp Terminal

ONLYOFFICE is an open source office software. Initially started as an enterprise-focused online collaboration tool, it now offers desktop tools for individuals that can be used offline as well.

Want to try it? There are many ways to use ONLYOFFICE on Linux.

There are Snap, Flatpak and AppImage packages available.

Easy method: Use the snap package from App Store

The effortless method here would be to use the App Store (formerly Ubuntu Software Center) and look for ONLYOFFICE.

The package is named ONLYOFFICE Desktop Editors. Install it from there.

ONLYOFFICE in Ubuntu Software Center

You can remove it the same way from the App Store.

Apart from that, ONLYOFFICE can also be installed in Ubuntu either using the DEB file available to download from the official repository or through setting up the ONLYOFFICE repository.

Let's discuss that.

Method 2: Install ONLYOFFICE with DEB File

⚠️
This method does not add a repository to your system. This means if there is an update available, you'll have to download the .deb file again. Method 3 takes care of that.

First, go to ONLYOFFICE official website and download the Deb file.

If you have GNOME Software installed, right-click on the downloaded deb file and select “Software Install”.

Open the ONLYOFFICE deb file using GNOME Software center
Open with Software Install

Install it using the install button.

Install ONLYOFFICE deb file using GNOME Software center
Install using GNOME Software

Or, you can install the deb file using Gdebi.

Install ONLYOFFICE Deb file using Gdebi package installer
Install using Gdebi

Similarly, you can use the apt command to install. Open a terminal and run:

sudo apt install <path/to/onlyoffice/deb/file>

Method 3: Install it using official repository

Another way to set up ONLYOFFICE is by adding their repo to your system. First, add and configure their GPG key.

mkdir -p -m 700 ~/.gnupg
gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
chmod 644 /tmp/onlyoffice.gpg
sudo chown root:root /tmp/onlyoffice.gpg
sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg

Now, add the Desktop Editors’ repository to your system.

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

Once done, update your package cache and install ONLYOFFICE.

sudo apt update
sudo apt install onlyoffice-desktopeditors

That’s it. You can open ONLYOFFICE from Ubuntu activities overview.

Open ONLYOFFICE from Ubuntu Activities Overview
Open ONLYOFFICE

Fedora users can get an RPM file. ONLYOFFICE is also available as a Flatpak, Snap and AppImage application.

Remove ONLYOFFICE

If you have installed the ONLYOFFICE through the deb file, remove it using:

sudo apt purge onlyoffice-desktopeditors

For those installed using the repository, first remove the package.

sudo apt purge onlyoffice-desktopeditors

Now, remove the repository added.

sudo rm /etc/apt/sources.list.d/onlyoffice.list

And then remove the key.

sudo rm /usr/share/keyrings/onlyoffice.gpg

Now, update your package cache.

sudo apt update

Conclusion

ONLYOFFICE requires Microsoft fonts installed. So, if it is not already installed, you can install by following our guide.

How to Install Microsoft Fonts on Ubuntu Linux [Easy Way]
Can’t find Time New Roman and other TrueType fonts in LibreOffice on Ubuntu? Here’s the easy way to install Microsoft Fonts on Ubuntu based distributions.

ONLYOFFICE is a good choice for a modern office experience on Linux. It can also be integrated with ChatGPT and other AI tools thus giving you an edge on productivity.

About the author
Sreenath

Sreenath

Linux tinkerer by day, Lord of the Rings fanatic by night. When I'm not busy conquering the command line, you can find me kicking back and watching some football while quoting JRR Tolkien

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

It's FOSS

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.