As you may have already heard, Debian released a new Linux version of their popular operating system “Stretch”.
Those who tried to install 3CX on Linux version Stretch, quickly realised that the installation failed with a dependency error. Well, the reason is simple – 3CX repository was created to be compatible with Debian 8 – Jessie, and not Debian 9 – Stretch. Over and above that, some 3CX dependencies are present in Jessie Main repo but not in the Stretch repo.
However, you CAN install 3CX from the main repository on Stretch with some tweaks.
Note: This is just for enthusiasts that want to experiment 3CX on the new Stretch. This guide will help you bypass the installation error. It is important to understand that 3CX on Stretch is not fully tested and therefore you may encounter other problems post-install. So if you want to try this, do not try it on production systems. We urge the community and Debian users to use this guide in order to bypass the installation stage. Share your experiences with us so we can target to support 3CX on Linux version Stretch faster!
Download the Debian Stretch ISO from here and install business as usual. When the installation is complete we are going to do the same steps we normally do to install 3CX on Jessie but first, let’s take a step back and run the following commands.
Under root account or with sudo do the following:
echo 'deb http://ftp.de.debian.org/debian/ jessie main' | tee -a /etc/apt/sources.list apt-get update apt-get install libicu52 libssl1.0.0 libcurl3=7.38.0-4+deb8u5
So what are we doing here? In the first command, we are telling Stretch that now it has the Jessie Main repository in its sources list we are going to need something from there. Then we are asking to install libicu52, libssl1.0.0 and libcurl3=7.38.0-4+deb8u5 from the Jessie Repository. (These are the dependencies that raised the error in the first place. After the installation of the libraries is complete you can remove Jessie repository from sources.list to keep things in order.)
Now Stretch has the libraries 3CX needs and we can proceed to install 3CX as per documentation.
Connect to the machine using SSH and enter the following commands:
wget -O- http://downloads.3cx.com/downloads/3cxpbx/public.key | apt-key add - echo "deb http://downloads.3cx.com/downloads/3cxpbx/ /" | tee /etc/apt/sources.list.d/3cxpbx.list apt-get update apt-get install 3cxpbx
The moment you see this screen, then you know installation is successful. You can now proceed.
Note: Stretch documentation states that you can upgrade Jessie installs to Stretch. This is great news and typical with Debian installs. However, do not upgrade for now because we need to add correct dependencies to the package. We will deliver this in the coming weeks. For the time being, users that want to evaluate Stretch with 3CX, should do this on a fresh install of Debian Stretch.