Ad Widget

Collapse

Broken Packages while updating from 6.4 to 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ericdano
    Junior Member
    • Jun 2023
    • 3

    #1

    Broken Packages while updating from 6.4 to 7

    Any ideas how to fix this? Running Ubuntu 22.04

    # apt-get -f install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
    Reading package lists... Done
    Building dependency tree... Done
    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-agent : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
    Depends: libcurl4t64 (>= 7.16.2) but it is not installable
    Depends: libldap2 (>= 2.6.2) but it is not installable
    Depends: libssl3t64 (>= 3.0.0) but it is not installable
    zabbix-server-mysql : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
    Depends: libcurl4t64 (>= 7.16.3) but it is not installable
    Depends: libevent-2.1-7t64 (>= 2.1.8-stable) but it is not installable
    Depends: libevent-pthreads-2.1-7t64 (>= 2.1.8-stable) but it is not installable
    Depends: libldap2 (>= 2.6.2) but it is not installable
    Depends: libopenipmi0t64 (>= 2.0.33) but it is not installable
    Depends: libsnmp40t64 (>= 5.9.4+dfsg) but it is not installable
    Depends: libssl3t64 (>= 3.0.0) but it is not installable
    E: Unable to correct problems, you have held broken packages.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    I believe the "--only-upgrade" option prevents apt-get from installing the new packages, just leave it out.

    Markku
    Last edited by Markku; 09-06-2024, 21:20.

    Comment

    • hubertsvk
      Junior Member
      • Jul 2019
      • 15

      #3
      Originally posted by Markku
      I believe the "--only-upgrade" option prevents apt-get from installing the new packages, just leave it out.

      Markku
      Hi, I have the same problem but your solution does not helped
      root@root:/home/zabbix# apt-get install zabbix-server-mysql zabbix-frontend-php zabbix-agent
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      zabbix-frontend-php is already the newest version (1:7.0.0-1+ubuntu22.04).
      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-agent : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.16 is to be installed
      Depends: libldap-2.5-0 (>= 2.5.4) but it is not installable
      Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable
      zabbix-server-mysql : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.16 is to be installed
      Depends: libldap-2.5-0 (>= 2.5.4) but it is not installable
      Depends: libodbc2 (>= 2.3.1) but it is not installable
      Depends: libopenipmi0 (>= 2.0.29) but 2.0.27-0ubuntu2 is to be installed
      Depends: libsnmp40 (>= 5.9.1+dfsg) but it is not installable
      Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable
      E: Unable to correct problems, you have held broken packages.

      Comment

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

        #4
        What does

        apt-get update
        apt-get upgrade


        say to you?

        Markku

        Comment

        • ddoldersum
          Junior Member
          • Apr 2021
          • 4

          #5
          Same issue here when trying to upgrade
          So zabbix-agent and zabbix-server-mysql are not being installed during the upgrade

          The following packages have unmet dependencies:
          zabbix-server-mysql : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
          Depends: libcurl4t64 (>= 7.16.3) but it is not installable
          Depends: libevent-2.1-7t64 (>= 2.1.8-stable) but it is not installable
          Depends: libevent-pthreads-2.1-7t64 (>= 2.1.8-stable) but it is not installable
          Depends: libldap2 (>= 2.6.2) but it is not installable
          Depends: libodbc2 (>= 2.3.1) but it is not going to be installed
          Depends: libopenipmi0t64 (>= 2.0.33) but it is not installable
          Depends: libsnmp40t64 (>= 5.9.4+dfsg) but it is not installable
          Depends: libssl3t64 (>= 3.0.0) but it is not installable
          Last edited by ddoldersum; 13-06-2024, 15:55.

          Comment

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

            #6
            So, what does

            apt-get update
            apt-get upgrade


            say to you?

            Markku

            Comment

            • ddoldersum
              Junior Member
              • Apr 2021
              • 4

              #7
              Everything for version 7 is installed except for the agent and mysql update. Which results in the DB not upgrading.
              So when I do a apt update it shows the agent and mysql
              When I then choose to upgrade I get the results as shown in my previous post.

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 567

                #8
                I upgraded from 6.0 to 7.0 yesterday on Ubuntu 22.04 with no issues whatsoever.

                Code:
                # apt show libc6 zabbix-server-mysql | egrep 'Version|Depends|Package:|APT-Sources'
                
                Package: libc6
                Version: 2.35-0ubuntu3.8
                Depends: libgcc-s1, libcrypt1 (>= 1:4.4.10-10ubuntu4)
                APT-Sources: http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
                Package: zabbix-server-mysql
                Version: 1:7.0.0-1+ubuntu22.04
                Pre-Depends: debconf
                Depends: libc6 (>= 2.34), libcurl4 (>= 7.16.3), libevent-2.1-7 (>= 2.1.8-stable), libevent-pthreads-2.1-7 (>= 2.1.8-stable), libldap-2.5-0 (>= 2.5.4), libmysqlclient21 (>= 8.0.11), libodbc2 (>= 2.3.1), libopenipmi0 (>= 2.0.29), libpcre2-8-0 (>= 10.22), libsnmp40 (>= 5.9.1+dfsg), libssh-4 (>= 0.8.0), libssl3 (>= 3.0.0~~alpha1), libxml2 (>= 2.7.4), zlib1g (>= 1:1.2.0), mysql-client | virtual-mysql-client | default-mysql-client, fping, adduser, lsb-base
                APT-Sources: https://repo.zabbix.com/zabbix/7.0/ubuntu jammy/main amd64 Packages
                On this system, zabbix-server-mysql depends on libc6 (>= 2.34), but on yours it's >= 2.38? I think you've installed Zabbix from the wrong repo for your distro.

                Comment

                • glen442
                  Junior Member
                  • Jun 2024
                  • 1

                  #9
                  Hi, I had the same problem.

                  It was caused by me accidentally adding the sources for 24.04 not 22.04.

                  verification:
                  Code:
                  cat /etc/apt/sources.list.d/zabbix.list
                  If the output contains a line like this:
                  Code:
                  deb https://repo.zabbix.com/zabbix/7.0/ubuntu noble main
                  Those are the incorrect sources.

                  To fix:
                  Code:
                  sudo rm -Rf /etc/apt/sources.list.d/zabbix.list
                  wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu22.04_all.debdpkg -i zabbix-release_7.0-1+ubuntu22.04_all.deb
                  sudo dpkg -i zabbix-release_7.0-1+ubuntu22.04_all.deb
                  # type whatever letter installs the package maintainers version
                  
                  #continue upgrade - (replace mysql with whichever db you are using)
                  apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent

                  Comment


                  • glen442
                    glen442 commented
                    Editing a comment
                    I forgot to include "sudo apt-get update" and missed the sudo off the install command. There doesn't seem to be an edit link?
                • Tristis Oris
                  Member
                  • Sep 2015
                  • 66

                  #10
                  With 7.2.1 update my sources list been changed to "jammy" on ubuntu24.
                  so i got same error.

                  The following packages have unmet dependencies:
                  zabbix-agent : Depends: libldap-2.5-0 (>= 2.5.4) but it is not installable
                  zabbix-server-pgsql : Depends: libldap-2.5-0 (>= 2.5.4) but it is not installable

                  Comment

                  Working...