Ad Widget

Collapse

issue when installing zzabbix-server-mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kpax
    Member
    • Dec 2013
    • 52

    #1

    issue when installing zzabbix-server-mysql

    Greetings,

    Try to install fresh install the latest Zabbix ver 3.4
    on Ubuntu 14.04 without success.
    following the Documentation:

    ================================================== =====
    zabbix@vZabbix:~$ sudo apt-get install zabbix-server-mysql
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    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:
    zabbix-server-mysql : Depends: libmysqlclient20 (>= 5.7.11) but it is not installable
    Depends: libodbc1 (>= 2.3.1) but it is not going to be installed
    Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4~dfsg) but it is not going to be installed
    Recommends: snmpd but it is not going to be installed
    ================================================== ======

    been try to different distro. version 16.04 also try install with LAMP before, with no luck so far.
    I will happy to direction, if someone is bump into this error.

    regards,
    Kpax
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Hello, tried to reproduce your issue on fresh ubuntu 14.04 with latest OS updates
    zabbix-server-mysql installed without problems.... output below

    Code:
    kaspars@ubuntu14:~$ sudo apt-get install zabbix-server-mysql
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      fping libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
      libiksemel3 libltdl7 libmysqlclient18 libodbc1 libopenipmi0 libperl5.18
      libsensors4 libsnmp-base libsnmp30 libssh2-1 libterm-readkey-perl
      mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-common-5.6
      mysql-server-5.6 mysql-server-core-5.6 snmpd
    Suggested packages:
      libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl
      libsql-statement-perl libipc-sharedcache-perl libmyodbc odbc-postgresql
      tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader mailx tinyca
      zabbix-frontend-php
    Recommended packages:
      virtual-mysql-server
    The following NEW packages will be installed:
      fping libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
      libiksemel3 libltdl7 libmysqlclient18 libodbc1 libopenipmi0 libperl5.18
      libsensors4 libsnmp-base libsnmp30 libssh2-1 libterm-readkey-perl
      mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-common-5.6
      mysql-server-5.6 mysql-server-core-5.6 snmpd zabbix-server-mysql
    0 upgraded, 24 newly installed, 0 to remove and 3 not upgraded.
    Need to get 25.3 MB of archives.
    After this operation, 178 MB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    But i was able to reproduce your situation with incorrect package selection
    Code:
    The following packages have unmet dependencies:
     zabbix-server-mysql : Depends: libmysqlclient20 (>= 5.7.11) but it is not installable
                           Depends: libodbc1 (>= 2.3.1) but it is not going to be installed
                           Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4~dfsg) but it is not going to be installed
                           Recommends: virtual-mysql-server
                           Recommends: snmpd but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    Zabbix official documentation says:


    For Ubuntu 16.04, run:

    # wget http://repo.zabbix.com/zabbix/3.4/ub...xenial_all.deb
    # dpkg -i zabbix-release_3.4-1+xenial_all.deb
    # apt-get update
    For Ubuntu 14.04, substitute 'xenial' with 'trusty' in the commands.

    have you replaced xenial with trusty when installed release ?

    Regards
    Kaspars

    Comment

    • Kpax
      Member
      • Dec 2013
      • 52

      #3
      ::SOLVED:: different package 16.04

      much appreciated kaspars.mednis,

      yesterday I download different package (Ubuntu 16.04) and all went well.

      thanks again,
      Kpax

      Comment

      • User3689
        Junior Member
        • Nov 2019
        • 3

        #4
        I have similar problem.
        I use debian 10.2. So according to this https://www.zabbix.com/documentation.../debian_ubuntu

        " For Debian 10, run the following commands:
        Note! For Debian 9, substitute 'buster' with 'stretch' in the commands. For Debian 8, substitute 'buster' with 'jessie' in the commands. "

        i don't need to change.

        xxx@host23a:~$ wget https://repo.zabbix.com/zabbix/4.4/d...buster_all.deb
        --2019-11-27 14:37:02-- https://repo.zabbix.com/zabbix/4.4/d...buster_all.deb
        Resolving repo.zabbix.com (repo.zabbix.com)... 162.243.159.138, 2604:a880:1:20::b82:1001
        Connecting to repo.zabbix.com (repo.zabbix.com)|162.243.159.138|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: 4116 (4.0K) [application/octet-stream]
        Saving to: ‘zabbix-release_4.4-1+buster_all.deb.2’

        zabbix-release_4.4-1+buster_a 100%[===============================================>] 4.02K --.-KB/s in 0s

        2019-11-27 14:37:03 (80.6 MB/s) - ‘zabbix-release_4.4-1+buster_all.deb.2’ saved [4116/4116]

        xxx@host23a:~$ sudo dpkg -i zabbix-release_4.4-1+buster_all.deb
        [sudo] password for xxx:
        (Reading database ... 27544 files and directories currently installed.)
        Preparing to unpack zabbix-release_4.4-1+buster_all.deb ...
        Unpacking zabbix-release (1:4.4-1+buster) over (1:4.4-1+buster) ...
        Setting up zabbix-release (1:4.4-1+buster) ...

        xxx@host23a:~$ sudo apt update
        Hit:1 http://security.debian.org/debian-security buster/updates InRelease
        Hit:2 http://repo.zabbix.com/zabbix/4.4/debian buster InRelease
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        All packages are up to date.


        and then install zabbix-server-mysql:

        xxx@host23a:~$ sudo apt install zabbix-server-mysql
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        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:
        zabbix-server-mysql : Depends: libcurl4 (>= 7.28.0) but it is not installable
        Depends: libevent-2.1-6 (>= 2.1.8-stable) but it is not installable
        Depends: libmariadb3 (>= 3.0.0) but it is not installable
        Depends: libodbc1 (>= 2.3.1) but it is not installable
        Depends: libopenipmi0 but it is not installable
        Depends: libsnmp30 (>= 5.7.3+dfsg) but it is not installable
        Depends: mysql-client but it is not installable or
        virtual-mysql-client but it is not installable or
        default-mysql-client but it is not installable
        Depends: fping but it is not installable
        Recommends: virtual-mysql-server but it is not installable
        Recommends: snmpd but it is not installable
        E: Unable to correct problems, you have held broken packages.

        Do i skip something?
        Last edited by User3689; 28-11-2019, 10:53.

        Comment

        • User3689
          Junior Member
          • Nov 2019
          • 3

          #5
          i've edited /etc/apt/sources.list


          # deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main

          # deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official amd64 DVD Binary-1 20191116-09:57]/ buster contrib main

          deb http://security.debian.org/debian-security buster/updates main contrib
          deb-src http://security.debian.org/debian-security buster/updates main contrib

          #i've added this:
          deb http://ftp.us.debian.org/debian/ buster main
          deb-src http://ftp.us.debian.org/debian/ buster main


          and now it works.
          i don't know why was it missing....

          Comment

          Working...