安装 Viber 时缺少依赖包

安装 Viber 时缺少依赖包

正如标题所说,缺少 Viber 所需的一些软件包。我对 Ubuntu 还不是很了解。有人可以指导我吗?谢谢

Selecting previously unselected package viber.
(Reading database ... 183037 files and directories currently installed.)
Preparing to unpack viber.deb ...
Unpacking viber (10.3.0.37) ...
dpkg: dependency problems prevent configuration of viber:
 viber depends on libssl1.0.0; however:
  Package libssl1.0.0 is not installed.
 viber depends on gstreamer1.0-plugins-ugly; however:
  Package gstreamer1.0-plugins-ugly is not installed.
 viber depends on gstreamer1.0-libav; however:
  Package gstreamer1.0-libav is not installed.

dpkg: error processing package viber (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 viber

答案1

由于某种原因,@fkraiem描述在评论,包裹libssl1.0.0丢失了Ubuntu 19.04的存储库。可能应该将此作为错误报告给 Ubuntu 团队。幸运的是,好消息是:您可以从 18.10 的存储库下载并安装此软件包。

前往下载页面并点击链接security.ubuntu.com/ubuntu(位于页面中间),然后会启动安装对话框。之后您就可以安装 Viber 了。

从 CLI 中可以同时执行以下操作:

sudo apt update

# download and install the dependencies
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu6.2_amd64.deb
sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu6.2_amd64.deb 

# download and install Viber
wget http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
sudo apt install ./viber.deb

# just in case
sudo apt install --fix-broken

最初的答案,即Ubuntu 16.04 - 18.04

最近几次安装 Viber 时,我需要通过选项--fix-broken包手动安装一些依赖项apt...我刚刚尝试在全新的 Ubuntu 18.04 上安装 Viber,遇到了一个错误,但和你的不一样。上述方法再次解决了问题。如下:

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

相关内容