Ad Widget

Collapse

Unable to locate package

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #1

    Unable to locate package

    whats wrong? can't install anything.

    Ubuntu 20.04.2 LTS

    wget https://repo.zabbix.com/zabbix/5.4/u...u20.04_all.deb
    dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
    apt update

    apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-nginx-conf zabbix-sql-scripts zabbix-agent
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package zabbix-nginx-conf
    E: Unable to locate package zabbix-sql-scripts

    apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package zabbix-apache-conf
    E: Unable to locate package zabbix-sql-scripts

    /etc/zabbix/zabbix_server.conf - not exist.
    Last edited by Tristis Oris; 11-07-2021, 09:31.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Any errors with your "dpkg -i" or "apt update" commands?

    What does "dpkg -l zabbix\*" say?

    Markku

    Comment

    • Tristis Oris
      Member
      • Sep 2015
      • 66

      #3
      was no any other error. I succeed installation on new VM. this one removed already.

      Comment

      • zhitya
        Junior Member
        • Sep 2021
        • 1

        #4
        I have the same issue with new installation of
        Zabbix-release_5.5-1+ubuntu20.04_all.deb package (OS Ubuntu20.04)


        Code:
        user@ubuntu:/etc/nginx/sites-enabled$ sudo wget https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64/pool/main/z/zabbix-release/zabbix-release_5.5-1%2Bubuntu20.04_all.deb
        --2021-09-24 00:59:08-- https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64/pool/main/z/zabbix-release/zabbix-release_5.5-1%2Bubuntu20.04_all.deb
        Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001
        Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: 3500 (3.4K) [application/octet-stream]
        Saving to: ‘zabbix-release_5.5-1+ubuntu20.04_all.deb’
        
        zabbix-release_5.5- 100%[===================>] 3.42K --.-KB/s in 0s
        
        2021-09-24 00:59:09 (337 MB/s) - ‘zabbix-release_5.5-1+ubuntu20.04_all.deb’ saved [3500/3500]
        
        user@ubuntu:/etc/nginx/sites-enabled$ sudo dpkg -i zabbix-release_5.5-1+ubuntu20.04_all.deb
        Selecting previously unselected package zabbix-release.
        (Reading database ... 184529 files and directories currently installed.)
        Preparing to unpack zabbix-release_5.5-1+ubuntu20.04_all.deb ...
        Unpacking zabbix-release (1:5.5-1+ubuntu20.04) ...
        Setting up zabbix-release (1:5.5-1+ubuntu20.04) ...
        
        user@ubuntu:/etc/nginx/sites-enabled$ sudo apt update
        Get:1 https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal InRelease [4,930 B]
        Get:2 https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal/main Sources [1,235 B]
        Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
        Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease
        Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
        Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
        Fetched 334 kB in 10s (32.2 kB/s)
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        6 packages can be upgraded. Run 'apt list --upgradable' to see them.
        [B]N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal InRelease' doesn't support architecture 'i386'
        N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal InRelease' doesn't support architecture 'amd64'[/B]
        
        ...
        
        user@ubuntu:/etc/apt/sources.list.d$ sudo nano zabbix.list
        
        ###
        ### Tried to fix "N: Skipping acquire of configured file" error by adding [arch=amd64] after DEB line in zabbix.list
        ###
        
        user@ubuntu:/etc/apt/sources.list.d$ sudo apt update
        Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
        Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
        Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
        Hit:4 https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal InRelease
        Get:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
        Fetched 328 kB in 1s (275 kB/s)
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        6 packages can be upgraded. Run 'apt list --upgradable' to see them.
        [B]N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://repo.zabbix.com/zabbix/5.5/ubuntu-arm64 focal InRelease' doesn't support architecture 'amd64'[/B]
        
        user@ubuntu:/etc/apt/sources.list.d$ sudo apt install zabbix-nginx-conf
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        [B]E: Unable to locate package zabbix-nginx-conf[/B]
        
        user@ubuntu:/etc/apt/sources.list.d$ dpkg -l zabbix\*
        Desired=Unknown/Install/Remove/Purge/Hold
        | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
        |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
        ||/ Name Version Architecture Description
        +++-====================-===================-============-=====================>
        ii zabbix-agent 1:4.0.17+dfsg-1 amd64 network monitoring so>
        ii zabbix-frontend-php 1:4.0.17+dfsg-1 all network monitoring so>
        un zabbix-proxy-mysql <none> <none> (no description avail>
        un zabbix-proxy-pgsql <none> <none> (no description avail>
        un zabbix-proxy-sqlite3 <none> <none> (no description avail>
        ii zabbix-release 1:5.5-1+ubuntu20.04 all Zabbix official repos>
        ii zabbix-server-mysql 1:4.0.17+dfsg-1 amd64 network monitoring so>
        un zabbix-server-pgsql <none> <none> (no description avail>
        lines 1-13/13 (END)

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Originally posted by zhitya
          I have the same issue with new installation of
          Zabbix-release_5.5-1+ubuntu20.04_all.deb package (OS Ubuntu20.04)
          Unless you really know what you're doing, you shouldn't be installing anything from the Zabbix 5.5 repos. Those are the builds for 6.0 alpha. The 6.0 release is not scheduled until some time in November.

          You probably want to stay with Zabbix 5.4 until well after 6.0 has been released and is stable.

          I'm not an expert in dpkg or apt, but I think what it's telling you is that the repos you've enabled do not contain packages for ubuntu on arm64. The 6.0 alpha builds probably only have x86_64 binaries right now. When 6.0 is officially released, perhaps then there will be provided packages for Ubuntu on arm64.

          Comment

          • abzalov@ya.ru
            Junior Member
            • Apr 2019
            • 3

            #6
            Same error on Ubuntu 21.10

            root@singularity:~# wget https://repo.zabbix.com/zabbix/6.0/u...u20.04_all.deb
            --2022-04-08 01:11:16-- https://repo.zabbix.com/zabbix/6.0/u...u20.04_all.deb
            Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001
            Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 3504 (3.4K) [application/octet-stream]
            Saving to: ‘zabbix-release_6.0-1+ubuntu20.04_all.deb.1’

            zabbix-release_6.0-1+ubuntu20. 100%[================================================== ==>] 3.42K --.-KB/s in 0s

            2022-04-08 01:11:17 (448 MB/s) - ‘zabbix-release_6.0-1+ubuntu20.04_all.deb.1’ saved [3504/3504]

            root@singularity:~# dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb
            (Reading database ... 80224 files and directories currently installed.)
            Preparing to unpack zabbix-release_6.0-1+ubuntu20.04_all.deb ...
            Unpacking zabbix-release (1:6.0-1+ubuntu20.04) over (1:6.0-1+ubuntu20.04) ...
            Setting up zabbix-release (1:6.0-1+ubuntu20.04) ...

            root@singularity:~# apt update
            Hit:1 http://security.ubuntu.com/ubuntu impish-security InRelease
            Hit:2 http://archive.ubuntu.com/ubuntu impish InRelease
            Hit:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease
            Hit:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease
            Hit:5 https://repo.zabbix.com/zabbix/6.0/ubuntu focal InRelease
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            2 packages can be upgraded. Run 'apt list --upgradable' to see them.

            root@singularity:~# apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            E: Unable to locate package php7.4-pgsql
            E: Couldn't find any package by glob 'php7.4-pgsql'


            May it be that in Ubutu 21.10 there is no php7.4-pgsql package?

            Comment

            • abzalov@ya.ru
              Junior Member
              • Apr 2019
              • 3

              #7
              If i try install one by one component:
              root@singularity:~# apt install zabbix-server-pgsql
              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-server-pgsql : Depends: libsnmp35 (>= 5.8+dfsg) but it is not installable
              Recommends: snmpd but it is not going to be installed
              E: Unable to correct problems, you have held broken packages.

              Comment

              • abzalov@ya.ru
                Junior Member
                • Apr 2019
                • 3

                #8
                Solution is reinstall server to Ubuntu 20.10 LTS.

                liv@singularity:~$ uname -a
                Linux singularity 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

                Comment

                • MightyP1
                  Junior Member
                  • Jun 2022
                  • 2

                  #9
                  Im having the same issues... with Zabbix 6 and Ubuntu 22.04LTS

                  Using this link to install: https://nextgentips.com/2022/03/03/h...4-step-by-step

                  sudo apt update

                  Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
                  Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
                  Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
                  Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
                  Hit:5 https://linux.teamviewer.com/deb stable InRelease
                  Hit:6 https://repo.zabbix.com/zabbix/6.0/ubuntu focal InRelease

                  Ign:7 https://ppa.launchpadcontent.net/jcz...74-temp/ubuntu jammy InRelease
                  Err:8 https://ppa.launchpadcontent.net/jcz...74-temp/ubuntu jammy Release
                  404 Not Found [IP: 185.125.190.52 443]
                  Reading package lists... Done
                  W: https://linux.teamviewer.com/deb/dis...ble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
                  N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://repo.zabbix.com/zabbix/6.0/ubuntu focal InRelease' doesn't support architecture 'i386'
                  E: The repository 'https://ppa.launchpadcontent.net/jczaplicki/xenial-php74-temp/ubuntu jammy Release' does not have a Release file.
                  N: Updating from such a repository can't be done securely, and is therefore disabled by default.
                  N: See apt-secure(8) manpage for repository creation and user configuration details.



                  Do I need to install 20.10 LTS ? or can someone help?

                  Comment

                  • Defender8712
                    Junior Member
                    • Dec 2022
                    • 2

                    #10
                    its possible the sources list for zabbix is missing in
                    Code:
                    /etc/apt/sources.list.d
                    you can add it manually based on the version of zabbix you need,
                    Code:
                    /etc/apt/sources.list.d/zabbix.list
                    Code:
                    deb https://repo.zabbix.com/zabbix/6/ubuntu focal main
                    deb-src https://repo.zabbix.com/zabbix/6/ubuntu focal main

                    Comment

                    • Atsushi
                      Senior Member
                      • Aug 2013
                      • 2028

                      #11
                      It is wrong to use zabbix-release package for Focal(=20.04) on Jammy(=22.04).

                      Comment

                      • Defender8712
                        Junior Member
                        • Dec 2022
                        • 2

                        #12
                        True, version should also change. I copied my 5.4 list and only changed version.

                        Code:
                        # Zabbix main repository
                        deb https://repo.zabbix.com/zabbix/6.0/ubuntu jammy main
                        deb-src https://repo.zabbix.com/zabbix/6.0/ubuntu jammy main

                        Comment

                        Working...