13

I really want to use the latest Ubuntu 22.04 LTS, BUT when i tried to install the Viber, The viber won't work and it says "No Connection" even I have an internet connection:

Viber No Connection ScreenShot

Hope anyone can help. thank you!

I install this: https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb

Rey Mark
  • 141
  • 1
  • 1
  • 7

6 Answers6

12

Ubuntu moved to libssl3 with 22.04, as libssl1.1 has been deprecated. You have to get libssl1.1 from 21.10 and make Viber work with it. Here are instructions:

wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb

sudo dpkg -i libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb

sudo nano /usr/share/applications/viber.desktop

Then change the Exec line to:

Exec=LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libssl.so /opt/viber/Viber %u
mikewhatever
  • 33,013
Filip
  • 160
7

How to install Viber in Ubuntu 22.04.1 LTS properly

(updated 11.01.23)

1. Optional Download Viber or skip if you already have viber.AppImage

wget -P ~/Downloads https://download.cdn.viber.com/desktop/Linux/viber.AppImage

2. Extract from AppImage & move to /opt

chmod +x ~/Downloads/viber.AppImage
~/Downloads/viber.AppImage --appimage-extract
sudo mv ~/squashfs-root /opt/viber

3. Download working libs & replace broken ones in /opt/viber/lib

export libsfilename="libssl1.1_1.1.1f-1ubuntu2_amd64.deb"
wget -P ~/Downloads http://security.ubuntu.com/ubuntu/pool/main/o/openssl/$libsfilename
dpkg -x ~/Downloads/$libsfilename ~/Downloads/viberlibs/
sudo rm /opt/viber/lib/libssl.so.* /opt/viber/lib/libcrypto.so.*
sudo cp ~/Downloads/viberlibs/usr/lib/x86_64-linux-gnu/lib* /opt/viber/lib/
rm ~/Downloads/$libsfilename

4. Move launcher to application folder & edit viber.desktop (point to actual Viber executable)

sudo cp /opt/viber/viber.desktop /usr/share/applications
sudo sed -i "s/Exec=.*/Exec=\/opt\/viber\/Viber/" /usr/share/applications/viber.desktop
sudo sed -i "s/Icon.*/Icon=\/opt\/viber\/viber\.png/" /usr/share/applications/viber.desktop

Profit! Open your launcher and there should be working Viber (if not logout & login)

madzohan
  • 277
6

The following sequence of commands worked for me to install a working viber client in a new Ubuntu 22.04 installation:

wget https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo apt install ./viber.deb
rm -rf viber.deb

install the old, yet compatible with viber, openssl libs,

to remove the "No connection" error at client startup

DEV=libssl-dev_1.1.1f-1ubuntu2_amd64.deb NON_DEV=libssl1.1_1.1.1f-1ubuntu2_amd64.deb wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/$DEV wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/$NON_DEV sudo apt install ./$DEV ./$NON_DEV rm -rf $DEV $NON_DEV

Now it should be ready to go!

dimisjim
  • 332
1

My problem was solved by installing the following packages libssl1.1_1.1.1f-1ubuntu2.12_amd64.deb, libssl-dev_1.1.1f-1ubuntu2.12_amd64.deb

Igor
  • 35
1

I installed it using flatpak:

sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.viber.Viber
echo "flatpak run com.viber.Viber" | sudo tee /usr/local/bin/viber
sudo chmod +x /usr/local/bin/viber

Start viber with:

viber
zarej
  • 201
0

Following up previous comments, case is closed.

I went with madzohan's solution for a while, but Viber's current version (18.2.0.2) seems to have solved the issue (and some others, too).

So, all you need to do is download latest Viber version and install.