[Tutorial] Installing OnlyOffice server on Raspberry Pi 4 Ubuntu Server 20.10

Ahh. I recall an error like that. You should be able to ignore and proceed with the steps.

i got this error when installing
apt install libgconf-2-4:amd64 libgtk-3-0:amd64 libxml2:amd64 libxss1:amd64 libxtst6:amd64
after picking individual files i get error while installing

apt install libgconf-2-4:amd64 libgtk-3-0:amd64
``
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libglib2.0-0:amd64 : Depends: libpcre3:amd64 but it is not installable
 libselinux1:amd64 : Depends: libpcre2-8-0:amd64 (>= 10.22) but it is not installable
E: Unable to correct problems, you have held broken packages.

apt update && apt download onlyoffice-documentserver:amd64
Hit:1 https://download.onlyoffice.com/repo/debian squeeze InRelease
Hit:2 http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.5/ubuntu groovy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu groovy InRelease
Hit:4 http://nginx.org/packages/mainline/ubuntu groovy InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports groovy InRelease
Hit:6 http://archive.ubuntu.com/ubuntu groovy-updates InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports groovy-updates InRelease
Hit:8 http://ports.ubuntu.com/ubuntu-ports groovy-backports InRelease
Hit:9 http://ports.ubuntu.com/ubuntu-ports groovy-security InRelease
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu groovy InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
Get:1 https://download.onlyoffice.com/repo/debian squeeze/main amd64 onlyoffice-documentserver amd64 6.1.0-83 [271 MB]
Fetched 271 MB in 44s (6112 kB/s)
W: Download is performed unsandboxed as root as file ‘/usr/local/src/onlyoffice-documentserver_6.1.0-83_amd64.deb’ couldn’t be accessed by user ‘_apt’. - pkgAcquire::Run (13: Permission denied)

Hi @earth. I would encourage you to resolve the installation of the required dependencies before moving on to downloading and installing OnlyOffice. In particular, the apt installs listed just before the postgres instructions.

I am assuming that the following amd64 packages were installed successfully.

  • libstdc++6
  • libasound2
  • libcairo2
  • libcurl4
  • libcurl3-gnutls

Is that correct?

Are you running Ubuntu 20? When I followed instructions from the post I linked at the top, I would get many of those types of messages, but installing the individual packages listed in the control file (the “Depends”) manually prior to trying to install OnlyOffice is what got it working for me.

Try installing each of libgconf-2-4:amd64 and libgtk-3-0:amd64 separately to find out which one is the problem.

What happens if you manually install libpcre3:amd64?

Yes

Yes 20.10 64 bit

Shows me error but don’t remember.

I have installed 20.10
I have installed Nextcloud and configure it with mariadb nginx
And after that, I am trying this method to install onlyoffice.

One important question before I try this way.
Does this offer mobile editing?
Please reply
Thanks.
Right more I have installed document server community and onlyoffice to edit and create files.
It does support desktop editing but doesn’t support mobile editing.

icannot install this dependecies manually
libgconf-2-4:amd64 libgtk-3-0:amd64

The following packages have unmet dependencies:
libglib2.0-0:amd64 : Depends: libpcre3:amd64 but it is not installable
libselinux1:amd64 : Depends: libpcre2-8-0:amd64 (>= 10.22) but it is not installable
E: Unable to correct problems, you have held broken packages.

This will not enable mobile editing, sorry.

I tried installing on freshly installed Ubuntu 20.10
I was managed to install all dependencies.
Received error when installing onlyoffice.
Tired now want to return back to collabora or document server community edition.
Thanks for your guidance and time.

Well, I acquired a Home Server license through the OnlyOffice advent calendar (I meant to post here, but got caught up with other stuff). I can confirm that this installation method worked for the “Enterprise Edition” (Home Server is based on that).

I now have mobile editing (and the other features included with Home Server), and everything is working well.

How much did you paid for it?

They had a promo where if you tweeted about OnlyOffice you would receive a free license for Home Server. It’s a perpetual license but only one year of updates included.

Upgrading OnlyOffice
OnlyOffice 6.1.1-53 was released. Manually upgrading is pretty straightforward.

If you have deleted the file /etc/apt/sources.list.d/onlyoffice.list, start from the echo deb [arch=amd64]... line under Download and prep OnlyOffice in the above instructions. If you still have that file, start from the apt update & apt download line.

Always check the “Depends” line in output/DEBIAN/control for changes. You may need to add dependencies. From 6.1.0-83 to 6.1.1-53 they added redis-tools. To avoid problems during installation, I recommend manually installing new dependencies. These steps are specific to redis-tools, but you can adapt them as necessary for future upgrades.

Start by checking if you already have it installed.
apt search redis-tools

If not, install.
apt install redis-tools:arm64

Modify the output/DEBIAN/control file. I recommend copying the control file from the previous version, then simply adding in whatever new stuff is needed.

Depends: debconf:arm64 (>= 0.5) | debconf-2.0:arm64, adduser:arm64, ca-certificates:arm64, coreutils:arm64, curl:arm64, libasound2:amd64, libcairo2:amd64, libcurl3:amd64 | libcurl4:amd64, libcurl3-gnutls:amd64, libgconf-2-4:amd64, libgtk-3-0:amd64, libstdc++6:amd64 (>= 4.8.4), libxml2:amd64, libxss1:amd64, libxtst6:amd64, logrotate:arm64, mysql-client:arm64 | mariadb-client:arm64, nginx-extras:arm64 (>= 1.3.13), postgresql-client:arm64 (>= 9.1), pwgen:arm64, redis-tools:arm64, supervisor:all (>= 3.0b2), xvfb:arm64, zlib1g:amd64

In version 6.1.1 the $CLUSTER_MODE error seems to be fixed, so no need to edit that line in postinst.

Continue the instructions through the apt -f install.

That’s it. Enjoy the new version!

What’s is the RAM usage of this whole process including qemu.
I think it uses more than 1 gb.

Hovers around 2.5GB (pretty sure 2.6 is the highest I have seen).

Yesterday o got it working with apps available on AppStore.
With mobile edit. And also no qemu user which takes more of memory.

Can this work on raspian ?

This thread is for raspberry pi 4

Yes, I have a raspberry pi 4 but does it work only on Ubuntu Server or on Raspberry Pi OS too ?

Raspberry pi is is 32 bit a
And afaik 64 bit system is supported
So ubuntu or Debian 64bit is needed

1 Like

Honestly, it would probably work on the 64-bit Raspberry Pi OS, but I haven’t tried and I’m not planning on trying. If you want to give it a whirl and report back (in a new topic), people might try to help you out with issues you run into.

Hi i thought OnlyOffice Server supports Raspberry Pi. I followed the instruction from Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives - ONLYOFFICE
and get stuck at
sudo apt-get install onlyoffice-documentserver
With the following error:
N: Skipping acquire of configured file ‘main/binary-armhf/Packages’ as repository ‘https://download.onlyoffice.com/repo/debian squeeze InRelease’ doesn’t support architecture 'armhf’

Well OnlyOffice still does not support armhf? And we still have to use your ( emulating amd64 arch?) tutorial to achieve a working OO on a raspberryPi?

This is still the necessary method, sadly. Though I believe OO have released versions of their desktop apps for ARM (to satisfy the Apple folks), the OO server has not been given the same treatment so qemu method still applies.