双击 viber.deb 无法安装它,因此我尝试了终端,但它也出现了错误(用谷歌翻译翻译):
dmitriy @ dmitriy-ub16x64: ~ / Downloads $ sudo dpkg -i viber.deb
[sudo] password for dmitriy:
Selecting a previously unselected viber package.
(Reading the database ... at the moment there are 585858 files and directories installed.)
Preparing for unpacking viber.deb ...
Unpacked viber (7.0.0.1035) ...
dpkg: package dependencies do not allow you to configure the viber package:
viber depends on gstreamer1.0-plugins-ugly, however:
The package gstreamer1.0-plugins-ugly is not installed.
viber depends on gstreamer1.0-libav, however:
The package gstreamer1.0-libav is not installed.
dpkg: error while processing the viber package (--install):
dependency problems - leave unconfigured
Triggers are being processed for desktop-file-utils (0.22-1ubuntu5.1) ...
Triggers are being processed for gnome-menus (3.13.3-6ubuntu3.1) ...
Triggers are being processed for bamfdaemon (0.5.3 ~ bzr0 + 16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index ...
Triggers are handled for mime-support (3.59ubuntu1) ...
Triggers are handled for hicolor-icon-theme (0.15-0ubuntu1) ...
The following errors occurred while processing the following packages:
viber
dmitriy @ dmitriy-ub16x64: ~ / Downloads $ sudo apt-get gstreamer1.0-plugins-ugly
E: Invalid gstreamer1.0-plugins-ugly operation
dmitriy @ dmitriy-ub16x64: ~ / Downloads $ sudo apt-get install gstreamer1.0-plugins-ugly
Reading Package Lists ... Done
Building a Dependency Tree
Reading status information ... Done
Perhaps to correct these errors you will want to use "apt-get -f install":
Packages with unsatisfied dependencies:
gstreamer1.0-plugins-ugly: Depends: gstreamer1.0-plugins-ugly-amr (= 1.8.3-1ubuntu0.1) but it will not be installed
Depends: libmpg123-0 (> = 1.6.2) but it will not be installed
Depends: libsidplay1v5 but it will not be installed
viber: Depends: gstreamer1.0-libav but it will not be installed
E: Unsatisfied dependencies. Try executing "apt-get -f install" without specifying the package name, (or find another solution).
我是否应该继续使用apt-get -f install
Ubuntu 16.04 x64 或者它会对它造成一些损害吗?
答案1
Ubuntu 自带 libcurl4 库,但 Viber 说依赖的是 libcurl3。
您必须安装 Viber 而不包含任何依赖项。安装 Viber 的正确方法是:冻结 libcurl4,忽略 Viber 依赖项 libcurl3,使用强制标志安装 Viber,然后解冻 libcurl4:
sudo apt-mark hold libcurl4
sudo dpkg -i --ignore-depends=libcurl3 ~/viber.deb
sudo apt install -f
sudo dpkg -i --ignore-depends=libcurl3 ~/viber.deb
sudo apt-mark unhold libcurl4