Ad Widget

Collapse

Ubuntu 22.04 unable to install agent 2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bloodyskullz
    Member
    • Jan 2025
    • 46

    #1

    Ubuntu 22.04 unable to install agent 2

    Reposting this link, I can't seem to access it i am blocked from doing so.



    I followed the guide from zabbix to install agent 2, it then tells me unable to locate the package. I have other VM's with ubuntu 22.04 and it installed no problem, i looked at the sources list and other files to compare vm's and nothing is different.

    I can install zabbix agent but not agent 2.
  • guntis_liepins
    Member
    • Oct 2025
    • 45

    #2
    You have not specified zabbix agent version and machine architecture.
    Also paste some error messages you get in shell if you want some help.

    Comment

    • bloodyskullz
      Member
      • Jan 2025
      • 46

      #3
      Hi,

      Error i get is

      apt install zabbix-agent2
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      E: Unable to locate package zabbix-agent2

      Commands entered in previously based on the guide on the zabbix site for agent 2 downloads.
      Code:
      wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu22.04_all.deb
      dpkg -i zabbix-release_latest_7.4+ubuntu22.04_all.deb
      apt update
      am64 architecture is what I am trying to install and 7.4 is the version I am targeting. No issue with other ubuntu based servers and it installed 7.4 without issues.

      Comment

      • guntis_liepins
        Member
        • Oct 2025
        • 45

        #4
        If you cound share output of a few commands it could help
        apt list --installed|grep zabbix
        egrep -ir "ppa|deb" /etc/apt/sources.list /etc/apt/sources.list.d/*
        egrep -ir "proxy" /etc/apt/sources.list /etc/apt/sources.list.d/*
        apt list --installed|grep zabbix
        apt-cache search zabbix-agent2
        apt list -a zabbix-agent2
        lsb_release -a
        set|grep http

        uname -a
        date
        nslookup repo.zabbix.com


        be careful , filter out private data if any

        Comment

        • bloodyskullz
          Member
          • Jan 2025
          • 46

          #5
          Sure thing

          Code:
          apt list --installed|grep zabbix
          WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
          zabbix-release/now 1:7.4-1+ubuntu22.04 all [installed,local]
          Code:
          egrep -ir "ppa|deb" /etc/apt/sources.list /etc/apt/sources.list.d/*
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy main restricted
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy universe
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy universe
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates universe
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy multiverse
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
          /etc/apt/sources.list:deb http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
          /etc/apt/sources.list:# deb-src http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
          /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted
          /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted
          /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ jammy-security universe
          /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu/ jammy-security universe
          /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu/ jammy-security multiverse
          /etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse
          /etc/apt/sources.list.d/percona-pmm2-client-release.list:deb [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/pmm2-client/apt jammy main
          /etc/apt/sources.list.d/percona-pmm2-client-release.list:deb-src [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/pmm2-client/apt jammy main
          /etc/apt/sources.list.d/percona-prel-release.list:deb [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/prel/apt jammy main
          /etc/apt/sources.list.d/percona-prel-release.list:deb-src [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/prel/apt jammy main
          /etc/apt/sources.list.d/percona-psmdb-42-release.list:deb [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/psmdb-42/apt jammy main
          /etc/apt/sources.list.d/percona-psmdb-42-release.list:deb-src [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/psmdb-42/apt jammy main
          /etc/apt/sources.list.d/percona-telemetry-release.list:deb [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/telemetry/apt jammy main
          /etc/apt/sources.list.d/percona-telemetry-release.list:deb-src [signed-by=/usr/share/keyrings/percona-keyring.gpg] http://repo.percona.com/telemetry/apt jammy main
          ​
          egrep -ir "proxy" /etc/apt/sources.list /etc/apt/sources.list.d/* = no output
          apt-cache search zabbix-agent2 = no output

          Code:
          apt list -a zabbix-agent2
          Listing... Done
          ​
          Code:
          lsb_release -a
          No LSB modules are available.
          Distributor ID: Ubuntu
          Description: Ubuntu 22.04.5 LTS
          Release: 22.04
          Codename: jammy

          set|grep http = no output

          Code:
          uname -a
          Linux qa5-aperture-mongo2 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

          Code:
          date
          Tue Mar  3 10:47:32 AM EST 2026
          ​
          Code:
          nslookup repo.zabbix.com
          Server: 127.0.0.53
          Address: 127.0.0.53#53
          
          Non-authoritative answer:
          Name: repo.zabbix.com
          Address: 178.128.6.101
          Name: repo.zabbix.com
          Address: 2604:a880:2:d0::2062:d001

          Comment

          • guntis_liepins
            Member
            • Oct 2025
            • 45

            #6
            You have zabbix-release package installed, but it seems there are no entries for zabbix repo. I see.
            Zabbix release package should have installed /etc/apt/sources.list.d/ with appropriate content and you should have files there
            Code:
            zabbix.list
            zabbix-release.list
            zabbix-tools.list
            zabbix-unstable.list
            I do not know this may happen , probably these files are deleted for some reason. May be some configuration management tool deleted it. Try download again and reinstall zabbix release package

            You should have list files installed and output of command
            Code:
            egrep -ir "ppa|deb" /etc/apt/sources.list /etc/apt/sources.list.d/*
            should include such lines

            /etc/apt/sources.list.d/zabbix.list:deb https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy main
            /etc/apt/sources.list.d/zabbix.list:deb-src https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-release.list:deb [arch=all] https://repo.zabbix.com/zabbix/7.4/release/ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-release.list:deb-src https://repo.zabbix.com/zabbix/7.4/release/ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-tools.list:deb [arch=all] https://repo.zabbix.com/zabbix-tools/debian-ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-tools.list:deb-src https://repo.zabbix.com/zabbix-tools/debian-ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-unstable.list:#deb https://repo.zabbix.com/zabbix/7.4/unstable/ubuntu jammy main
            /etc/apt/sources.list.d/zabbix-unstable.list:#deb-src https://repo.zabbix.com/zabbix/7.4/unstable/ubuntu jammy main


            Comment

            • bloodyskullz
              Member
              • Jan 2025
              • 46

              #7
              This VM was actually a fresh install and it doesn't have anything added for management purposes which would delete it.
              I cleaned and remnants that may have existed and followed the guide again and its still the same issue. I have a few ubuntu vms that are being problematic but the rest are fine.

              EDIT: I manually created the zabbix repos on the vm and added this step from chatgpt (not sure if it was really needed):

              Code:
              sudo mkdir -p /usr/share/keyrings
              
              wget -O- https://repo.zabbix.com/zabbix-official-repo.key \
               | sudo gpg --dearmor -o /usr/share/keyrings/zabbix.gpg
              This allowed for the detection of the agent2 and it installed without issues now, but this is a work around and doesn't tackle the root cause of the issue.
              Last edited by bloodyskullz; Yesterday, 16:17.

              Comment

              • guntis_liepins
                Member
                • Oct 2025
                • 45

                #8
                Did release package installed without issue? Did it created files mentioned above? Are you running apt update after release package install?
                This commands install zabbix repo key on system, howerver release package does the same.

                Comment

                • bloodyskullz
                  Member
                  • Jan 2025
                  • 46

                  #9
                  Following the guide didn't create any of the lists should have been automatic.

                  I did the apt update after the repo portion and it just failed. Once I manually added everything, i was successful in installing zabbix agent2.

                  Comment

                  Working...