Megasync на Ubuntu (зависимости)

[UBUNTU 16.04 LTS]

Я загрузил Mega .deb и попытался установить с помощью:

sudo dpkg -i mega.deb

Затем он выбрасывает эта ошибка:

Selecting previously unselected package megasync. (Reading database ... 204976 files and directories currently installed.) Preparing to unpack megasync-xUbuntu_16.10_amd64.deb ... Unpacking megasync (3.5.3-2.1) ... dpkg: dependency problems prevent configuration of megasync: megasync depends on libcrypto++6; however: Package libcrypto++6 is not installed. megasync depends on libqt5core5a (>= 5.6.0~beta); however: Version of libqt5core5a:amd64 on system is 5.5.1+dfsg-16ubuntu7.5. megasync depends on libqt5svg5 (>= 5.6.0~beta); however: Version of libqt5svg5:amd64 on system is 5.5.1-2build1. dpkg: error processing package megasync (--install): dependency problems - leaving unconfigured Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Errors were encountered while processing: megasync

Затем я попытался:

sudo apt -f install попытаться исправить эти недостающие зависимости и получил это:

Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: megasync 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 8.368 kB disk space will be freed. Do you want to continue? [Y/n]

Как можно Я исправляю зависимости и не удаляю megasync?

Также попробовал sudo apt -y install ./megasync-xUbuntu_16.10_amd64.deb и получил:

Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'megasync' instead of './megasync-xUbuntu_16.10_amd64.deb' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: megasync : Depends: libcrypto++6 but it is not installable Depends: libqt5core5a (>= 5.6.0~beta) but 5.5.1+dfsg-16ubuntu7.5 is to be installed Depends: libqt5svg5 (>= 5.6.0~beta) but 5.5.1-2build1 is to be installed E: Unable to correct problems, you have held broken packages.
3
задан 20 December 2017 в 16:08

3 ответа

Вы можете просто дважды щелкнуть файл по графическому интерфейсу после того, как вы сделали его исполняемым. Это самый быстрый и удобный вариант, который вы можете выбрать, он позволяет системе обрабатывать зависимости. Если вы настаиваете на решении GUI, используйте gdebi для установки, который делает то же самое. Поэтому в вашей ситуации пусть sudo apt install -f удалит его, а затем выполнит следующее.

# get the right package for your Ubuntu version 16.04 if this step fails 
# because you not have 'wget' installed do 'sudo apt install wget' and retry
wget https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb
#update the package archives
sudo apt update
#if the next step tells you that gdebi is already installed skip to the line after that
sudo apt install gdebi
# installing it with gdebi
sudo gdebi megasync-xUbuntu_16.04_amd64.deb

Это должно установить все необходимые зависимости и сам пакет.

2
ответ дан 22 May 2018 в 16:53
  • 1
    @karel Все, что мне интересно, почему он не загрузил пакет для 16.04 напрямую? mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/… этот должен быть адаптирован для соответствия пакетам в его версии Ubuntu. – Videonauth 20 December 2017 в 16:17
  • 2
    Вы правы @Videonauth, вот в чем проблема: я использую 16.04, и я загрузил 16.10 .deb, спасибо за то, что вы это поняли, ответьте как обычный ответ, чтобы я мог установить его как разрешенный :-) – s3voch7 20 December 2017 в 16:20

Вы можете просто дважды щелкнуть файл по графическому интерфейсу после того, как вы сделали его исполняемым. Это самый быстрый и удобный вариант, который вы можете выбрать, он позволяет системе обрабатывать зависимости. Если вы настаиваете на решении GUI, используйте gdebi для установки, который делает то же самое. Поэтому в вашей ситуации пусть sudo apt install -f удалит его, а затем выполнит следующее.

# get the right package for your Ubuntu version 16.04 if this step fails # because you not have 'wget' installed do 'sudo apt install wget' and retry wget https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb #update the package archives sudo apt update #if the next step tells you that gdebi is already installed skip to the line after that sudo apt install gdebi # installing it with gdebi sudo gdebi megasync-xUbuntu_16.04_amd64.deb

Это должно установить все необходимые зависимости и сам пакет.

2
ответ дан 18 July 2018 в 00:47

Вы можете просто дважды щелкнуть файл по графическому интерфейсу после того, как вы сделали его исполняемым. Это самый быстрый и удобный вариант, который вы можете выбрать, он позволяет системе обрабатывать зависимости. Если вы настаиваете на решении GUI, используйте gdebi для установки, который делает то же самое. Поэтому в вашей ситуации пусть sudo apt install -f удалит его, а затем выполнит следующее.

# get the right package for your Ubuntu version 16.04 if this step fails # because you not have 'wget' installed do 'sudo apt install wget' and retry wget https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb #update the package archives sudo apt update #if the next step tells you that gdebi is already installed skip to the line after that sudo apt install gdebi # installing it with gdebi sudo gdebi megasync-xUbuntu_16.04_amd64.deb

Это должно установить все необходимые зависимости и сам пакет.

2
ответ дан 24 July 2018 в 17:17

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

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