Не удается установить Viber в Ubuntu 18.10. В нем говорится: «Этот пакет является удаляемым Зависимость не удовлетворяет: libcurl3 » [дубликат]

На этот вопрос уже есть ответ здесь:

pranav@pranav-Inspiron-5548:~/Downloads$ sudo dpkg -i viber.deb
[sudo] password for pranav: 
Selecting previously unselected package viber.
(Reading database ... 187455 files and directories currently installed.)
Preparing to unpack viber.deb ...
Unpacking viber (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 bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.23-3ubuntu3) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 viber
-2
задан 16 January 2019 в 11:54

1 ответ

Я недавно сделал сценарий для этого. Работы в Debian и других находящихся в Debian дистрибутивах (протестированная Ubuntu 18.04 - работающий). Сценарий устанавливает libssl1.0.0 (зависимость), fakeroot & gdebi для установки и наконец самого Viber.

проблемой здесь является действительно libcurl пакет (Viber требует libcurl3, но ОС уже использует libcurl4, таким образом, существует Ваш конфликт).

Мы должны будем создать 2 файла (.sh) и сделать их исполняемым файлом.

touch viber.sh repackager.sh
sudo chmod +x viber.sh repackager.sh

Двойной щелчок viber.sh и в нем вставляют это:

sudo apt-get install gdebi fakeroot
wget -O libssl1.0.0 security-cdn.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u10_amd64.deb
sudo gdebi libssl1.0.0.deb
wget -O viber.deb http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb
./repackager.sh
sudo gdebi viber4debian.deb

Теперь, дважды щелкают по repackager.sh (важно назвать это "repackager.sh", иначе это не будет работать), и вставьте это:

#!/bin/sh
fakeroot sh -c "
  mkdir tmp
  dpkg-deb -R viber.deb tmp
  echo 'Package: viber
Priority: extra
Section: non-free/net
Installed-Size: 421336
Maintainer: Viber Media Inc <support@viber.com>
Architecture: amd64
Version: 7.0.0.1035
Replaces: viber (<< 7.0.0.1035)
Depends: libqt5gui5, libxss1, libssl1.0.0, libpulse0, libasound2, libnss3, libxcomposite1, libxcursor1, libxdamage1, libcurl3, libgstreamer-plugins-base1.0-0, libgstreamer1.0-0, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good, gstreamer1.0-plugins-ugly, gstreamer1.0-pulseaudio, gstreamer1.0-libav
Conflicts: viber (<< 7.0.0.1035)
Description: Free Text & Calls.
 Join Viber for Desktop to for a one-of-a-kind calling and messaging experience right on your computer!
 With Viber for Desktop you can make free international calls from your computer to any other Viber user, resting assured your calls and messages are protected by end-to-end encryption.
 Feel free to call, text, send photos and video messages, play YouTube videos and express yourself with stickers and GIFs no matter your location.
 Viber for Desktop also provides you with Viber Out’s low-rate calling plans to any landline or mobile so you can reach out to friends and family who don’t have an internet connection or cell phone.
 Easily sync between your mobile’s chat history and contact list in order to start enjoying Viber for Desktop. .
Homepage: http://viber.com

' > tmp/DEBIAN/control
  dpkg-deb -b tmp viber4debian.deb
"

Позволяют нам запустить скрипт теперь (требует корневых полномочий):

sudo ./viber.sh

Обладают Viber!

0
ответ дан 12 April 2019 в 16:11

Другие вопросы по тегам:

Похожие вопросы: