Ad Widget

Collapse

Raspberry Pi5 Debian 12 Unable to install Zabbix Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • themetman
    Junior Member
    • Jan 2016
    • 12

    #1

    Raspberry Pi5 Debian 12 Unable to install Zabbix Server

    Sorry title is wrong it is a Pi4
    I have a Pi4 running Debian GNU/Linux 12 (bookworm).
    I have downloaded the
    HTML Code:
    repo wget https://repo.zabbix.com/zabbix/6.4/raspbian/pool/main/z/zabbix-release/zabbix-release_6.4-1%2Bdebian11_all.deb
    and installed it, then update the repos. No error.
    Then I try to install like this:
    HTML Code:
    sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-sql-scripts zabbix-agent
    I get this error:
    HTML Code:
    The following packages have unmet dependencies:
    zabbix-agent : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
    zabbix-server-mysql : Depends: libldap-2.4-2 (>= 2.4.7) but it is not installable
    E: Unable to correct problems, you have held broken packages.
    I have libldap-2.5-0 installed already
    running this
    HTML Code:
    apt-cache policy
    I get the output shown on the attachment which looks OK to me.

    Any idea how can I fix this?
    Attached Files
    Last edited by themetman; 20-06-2024, 06:57. Reason: Sorry title is wrong it is a Pi4
  • tchello
    Junior Member
    • Sep 2016
    • 3

    #2
    Dear friend
    the command is diferent from original, this is:
    wget https://repo.zabbix.com/zabbix/6.4/r...bian11_all.deb
    Your:
    repo wget https://repo.zabbix.com/zabbix/6.4/r...bian11_all.deb

    It seems that your system is not recognizing some symbols, like +

    Comment

    • markfree
      Senior Member
      • Apr 2019
      • 868

      #3
      Since you're using Debian, I think you should be using the Debian ARM64 repository, not the RaspberryPi OS repo.

      Comment

      • themetman
        Junior Member
        • Jan 2016
        • 12

        #4
        Originally posted by markfree
        Since you're using Debian, I think you should be using the Debian ARM64 repository, not the RaspberryPi OS repo.
        I am using the Official RaspianOS based on Debian 12 So...
        OK so I downloaded and installed this repo:
        HTML Code:
        wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1%2Bdebian12_all.deb
        Unfortunately I then get the following when I do
        HTML Code:
        apt update
        :
        HTML Code:
        Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://repo.zabbix.com/zabbix/6.4/debian bookworm InRelease' doesn't support architecture 'arm64'
        I tried version 7 but basically the same error. The Pi4 is armhf Architecture not arm64.
        Last edited by themetman; 20-06-2024, 07:28.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1782

          #5
          See also ZBXNEXT-9161 (shortlink, "Provide Zabbix repository and packages for Raspberry Pi OS 12 (Debian 12 arm64)") if that helps.

          = only the latest LTS releases are currently packaged for Raspberry Pi OS 12, not 6.4

          Markku
          Last edited by Markku; 20-06-2024, 07:55.

          Comment

          • themetman
            Junior Member
            • Jan 2016
            • 12

            #6
            I am back to square one....
            So I have tried the following Release Repos:
            HTML Code:
            https://repo.zabbix.com/zabbix/6.5/raspbian/pool/main/z/zabbix-release/zabbix-release_6.5-1%2Bdebian12_all.deb
            https://repo.zabbix.com/zabbix/7.0/raspbian/pool/main/z/zabbix-release/zabbix-release_7.0-1%2Bdebian12_all.deb
            both of which say
            bookworm InRelease' doesn't support architecture 'armhf'
            Finally got back to this one:
            HTML Code:
            https://repo.zabbix.com/zabbix/6.4/raspbian/pool/main/z/zabbix-release/zabbix-release_6.4-1%2Bdebian11_all.deb
            Which did install the repo file, no problem.
            When I try and install as above, using aptitude, I get the same error as above:
            HTML Code:
            The following packages have unmet dependencies:
            zabbix-server-mysql : Depends: libldap-2.4-2 (>= 2.4.7) which is a virtual package and is not provided by any available package
            The following actions will resolve these dependencies:
            Keep the following packages at their current version:
            1) zabbix-server-mysql [Not Installed]
            And searching for libldap I have it as libldap-2.5-0
            THIS IS HOW I FIXED IT for anyone else with this problem
            I had a think...... Mmmmm.....
            So.... I just installed the zabbix-sql-scripts and zabbix-apache-conf. Removed the Zabbix Release Repo. And copied the scripts elsewhere to use later if needed, in fact they stayed in place so were not needed.
            Having removed the Release Repo from the sources.list.d folder and run apt update again I tried to install the rest of it like so:
            HTML Code:
            sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent2
            and BINGO!! it installed.
            There is an error in the Apache Config file the Alias line is wrong it should look like this:
            HTML Code:
            Alias zabbix /usr/share/zabbix
            and once configured worked.​

            Comment

            • themetman
              Junior Member
              • Jan 2016
              • 12

              #7
              Oh Dear!!!! The Web Interface is fine and working, but the Zabbix Server will not start:
              HTML Code:
              Unable to start Zabbix server due to unsupported MariaDB database version (10.11.06).
              Must not be higher than (10.10.xx).
              WHAT!!!!
              Any ideas anyone???

              Comment

              • themetman
                Junior Member
                • Jan 2016
                • 12

                #8
                In the end to save time I installed RaspiOS Debian Bullseye which has MariaDB 10.5 as the default and went from there.

                Comment

                Working...