Ubuntu 14.04 不支持 Viber

Ubuntu 14.04 不支持 Viber

我已经下载了 Viber 并通过终端将其安装到我的 Ubuntu 14.04 操作系统。对于安装,我已dpkg -i安装并apt-get install -f安装了依赖项:

wget -O viber.deb http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb  
sudo dpkg -i viber.deb
sudo apt-get install -f

虽然安装了 Viber,但无法启动。通过终端执行它,我得到下面的输出:

$ /opt/viber/Viber
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./Viber)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./Viber)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/viber/lib/libQt5Location.so.5)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/viber/lib/libicui18n.so.52)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/viber/lib/libicuuc.so.52)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/viber/lib/libQt5WebEngineCore.so.5)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/viber/lib/libQt5Qml.so.5)
./Viber: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /opt/viber/lib/libQt5Core.so.5)

我猜想这与某些依赖项的版本比要求的版本旧有关。不过操作系统是最新的。我该如何解决这个问题?

答案1

我建议安装以前的版本 - 4.2.2.6。我在档案网站.
它的 MD5 是4dec3ade37a3738c6f084858a4554861,所以它未修改

然后按照之前的方式安装它:

sudo dpkg -i viber-for-linux-4-2-2-6-en-ubu.deb
sudo apt-get install -f

在我的 14.04 LTS 上它可以正常启动。

更新:我手动将 libstdc++ 从 Xenial (16.04 LTS) 下载到以下/opt/viber/lib目录后,最新的 Viber 7.0.0.1035 可以在我的 14.04 LTS 上运行:

wget -O viber.deb http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo dpkg -i viber.deb
sudo apt-get install -f

wget http://mirrors.kernel.org/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.5_amd64.deb
dpkg -x libstdc++6_5.4.0-6ubuntu1~16.04.5_amd64.deb /tmp/stdc
sudo cp /tmp/stdc/usr/lib/x86_64-linux-gnu/libstdc++.so.6* /opt/viber/lib

sudo apt-get install libqt5gui5 # prevent errors about xcb

答案2

尝试以下操作

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-4.9
sudo apt install libstdc++6

我认为上述程序没有正确安装。

相关内容