installationubuntu-16.04pleskfailed-installationplesk-onyx

How to install Plesk on Ubuntu 16.04


I am getting this error on my Ubuntu 16.04 LTS system :

The following packages have unmet dependencies:
plesk-php56-snmp : Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4.1~dfsg) but 5.7.3+dfsg-1ubuntu4 is to be installed
plesk-php70-snmp : Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4.1~dfsg) but 5.7.3+dfsg-1ubuntu4 is to be installed
plesk-php71-snmp : Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4.1~dfsg) but 5.7.3+dfsg-1ubuntu4 is to be installed
plesk-php72-snmp : Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4.1~dfsg) but 5.7.3+dfsg-1ubuntu4 is to be installed

output of lsb_release -a :

Distributor ID: Ubuntu

Description: Ubuntu 16.04.3 LTS

Release: 16.04

Codename: xenial


I tried a lot of things , installed a lot of packages, stopped some services but can't resolve. I have 3 domains and will add some more too , so I want to use plesk for easy configurations, but can't install. How can I install plesk on my system?


Solution

  • It seems that you encountered system repositories misconfiguration. Plesk requires that the system repositories were enabled.

    For experiment sake I installed OS from official ubuntu-16.04.3-server-amd64.iso with default settings (just enter-enter-enter):

    # cat /etc/*release | grep VERSION
    VERSION="16.04.3 LTS (Xenial Xerus)"
    VERSION_ID="16.04"
    VERSION_CODENAME=xenial
    

    Then Plesk Onyx 17.8 (which is currently default) using one-click installer.

    Installation went successfully. I can see, that mentioned packages depends on libsnmp30, but not the specific version:

    # apt-cache depends plesk-php56-snmp
    plesk-php56-snmp
      Depends: libc6
      Depends: libsnmp30
      Depends: plesk-php56
    

    However, the version which you were missing was already installed:

    # dpkg -l | grep libsnmp30
    ii  libsnmp30:amd64                    5.7.3+dfsg-1ubuntu4.1                      amd64        SNMP (Simple Network Management Protocol) library
    

    It comes from xenial-updates main repository, which is enabled by default:

    # apt-cache showpkg libsnmp30 | grep  4.1 | grep binary-amd64
    5.7.3+dfsg-1ubuntu4.1 (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_binary-amd64_Packages) (/var/lib/dpkg/status)
    

    Just in case, here is my sources.list:

    # cat /etc/apt/sources.list | grep -v "^#"
    deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb http://security.ubuntu.com/ubuntu xenial-security universe
    deb http://security.ubuntu.com/ubuntu xenial-security multiverse