Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12053

Error during package install on Debian 8 with nginx

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.2.4
    • Installation (I)
    • None
    • Debian GNU/Linux 8.7 on amd64

      I run a server with nginx providing http service instead of Apache. The nginx package satisfies the httpd dependency which is expressed by the zabbix-frontend-php package, but installation fails when the postinst script attempts to call a2enconf, an Apache-specific command.

      Transcript follows:

      $ sudo apt-get install zabbix-server-pgsql zabbix-frontend-php
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following extra packages will be installed:
        libiksemel3 libodbc1 libopenipmi0 php5 php5-gd php5-ldap snmpd
      Suggested packages:
        libmyodbc odbc-postgresql tdsodbc unixodbc-bin snmptrapd
      The following NEW packages will be installed:
        libiksemel3 libodbc1 libopenipmi0 php5 php5-gd php5-ldap snmpd
        zabbix-frontend-php zabbix-server-pgsql
      0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
      Need to get 4,698 kB of archives.
      After this operation, 20.9 MB of additional disk space will be used.
      Do you want to continue? [Y/n] 
      [...snip...]
      Setting up zabbix-frontend-php (1:3.2.4-1+jessie) ...
      update-alternatives: using /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf to provide /usr/share/zabbix/fonts/graphfont.ttf (zabbix-frontend-font) in auto mode
      /var/lib/dpkg/info/zabbix-frontend-php.postinst: 24: /var/lib/dpkg/info/zabbix-frontend-php.postinst: /usr/sbin/a2enconf: not found
      dpkg: error processing package zabbix-frontend-php (--configure):
       subprocess installed post-installation script returned error exit status 127
      

      I worked around this issue by adding a test on line 24 in the postinst:

      [ -x /usr/sbin/a2enconf ] && /usr/sbin/a2enconf zabbix.conf
      

      An obscure issue, but one that is easily resolved. Hope this helps!

            Unassigned Unassigned
            keegan Keegan Quinn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: