Ad Widget

Collapse

Uninstallable Dependencies

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MM347
    Junior Member
    • Jun 2023
    • 8

    #1

    Uninstallable Dependencies


    Hi all, wondering if someone smart can point out what's going on here.

    My Environment:
    php:8.2.7-apache-bullseye docker container (also tried 8.1.8)
    Debian 11 Bullseye
    PHP 8.2.7 (also tried 8.1.8)

    Then following instructions here: Download and install Zabbix 7.0 PRE-RELEASE for Debian 11 (Bullseye), MySQL, Apache
    2 Requirements (zabbix.com) clearly shows PHP support for 7.4.0 - 8.2.X and urges away from 7.4. So the PHP I'm using should be in scope. However the below dependencies all seem to require 7.4.

    zabbix-frontend-php is failing to install. Same result with Zabbix 6.4 and 7.

    Code:
    The following packages have unmet dependencies:
    zabbix-frontend-php : Depends: php-mysql but it is not installable or
    php-pgsql
    Depends: php-mbstring
    Depends: php-bcmath
    Depends: php-xml
    Depends: php-gd
    Depends: php-ldap
    E: Unable to correct problems, you have held broken packages.
    I've used aptitude to troubleshoot and after installing php 7.4 and a load of other shenanigans I got it working but it seems an unintended step, possible bug and not something I want in a container, as it seems a bodge job.​

    Probably done something daft, would appreciate another set of eyes.

  • Answer selected by MM347 at 27-06-2023, 10:30.
    MM347
    Junior Member
    • Jun 2023
    • 8

    For some reason the Docker PHP Debian image stops Debian PHP installs...
    To fix: rm /etc/apt/preferences.d/no-debian-php

    Comment

    • MM347
      Junior Member
      • Jun 2023
      • 8

      #2
      For some reason the Docker PHP Debian image stops Debian PHP installs...
      To fix: rm /etc/apt/preferences.d/no-debian-php

      Comment

      Working...