I am trying to get Viber on my new Ubuntu 18.04 but I get these error ...
sudo dpkg -i Downloads/viber.deb
(Reading database ... 138136 files and directories currently installed.)
Preparing to unpack Downloads/viber.deb ...
Unpacking viber (7.0.0.1035) over (7.0.0.1035) ...
dpkg: dependency problems prevent configuration of viber:
viber depends on libcurl3; however:
Package libcurl3 is not installed.
dpkg: error processing package viber (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
viber
UPDATE: The same issue arises when you try to install the newest viber 12.0.0.7 in ubuntu 20.04 (at least the beta until now), but with the problematic dependency being libssl1.0. Ubuntu has libssl1.1 installed.
The solution is the exactly the same, just use the corresponding names.
The problem is not only with the
viber.deb
file but also with thelibcurl3
requirement ofviber.deb
.In Ubuntu 18.04
libcurl3
cannot coexist withlibcurl4
so you are going to face problems with other applications. In my case Viber and Steam could not coexist.After some search I found the following solution which is to deb-package, fix the dependency and then build a new viber file.
The steps are:
viber.deb
file in a folderdpkg-deb -x viber.deb viber
dpkg-deb --control viber.deb viber/DEBIAN
viber/DEBIAN/control
and replace "libcurl3" with "libcurl4" (also delete the last blank line from the file or you will get an error afterwards)dpkg -b viber viberlibcurl4.deb
sudo dpkg -i viberlibcurl4.deb
or install the.deb
file withgdebi
Viber seems to work ok with
libcurl4
atleast for me until now.I found the solution here, in a comment...
https://linuxconfig.org/how-to-install-viber-on-ubuntu-18-04-bionic-beaver-linux
Works perfectly for me.
Update: @borowis is right: after installing this way it gets uninstalled on fix broken dependencies. Another one line, but still workable solution is:
source: https://linuxconfig.org/how-to-install-viber-on-ubuntu-18-04-bionic-beaver-linux
The easiest way is to convert the rpm package on Viber website to a deb package. To do that:
Download the rpm package with:
Install alien, convert the rpm package and install the newly created deb package:
The conversion will take about 5 minutes. Be patient!
If you don't mind to use snap, you can install Viber easily from Snap Store:
Disclaimer: I've added this snap to snap store.
The solution to installing Viber on Ubuntu 18.04 is to explicitly include the
libcurl3
package prerequisite as part of the apt installation command:How to install Viber on Ubuntu 18.04 Bionic Beaver Linux
You can also just install the flatpak version from flathub.org
After trying some above answers I found another solution. There is a
cURL
PPA which supports bothcURL
version 3 and 4.https://launchpad.net/~xapienz/+archive/ubuntu/curl34
So, I added this PPA to my Ubuntu 18.04 and installed
cURL
from there. Then I installed Viber with this below command-And Viber is working fine till then.
The better way to install single deb-packages it to use APT-tool, which will solve all dependencies automatically:
You can install
libcurl3
and removelibcurl4
.All the programs as far as I know, like Opera and Brackets work fine with either.
Go to terminal and type:
When asked for confirmation press y
This will automatically remove all libcurl4 and it's dependencies and install libcurl3.
As a precaution do:
to fix any dependency issues that may occur.
Now download the viber debian package from their official site.
In terminal type
This should install viber without any trouble.
Now open viber from launchpad.
Happy chatting in viber :)
Viber released version 10.30, so this problem is solved. I recommend the installation of the latest version.