Ad Widget

Collapse

Zabbix not upgrading ( it looks like the repository is not being installed)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raphacravo
    Junior Member
    • Nov 2022
    • 1

    #1

    Zabbix not upgrading ( it looks like the repository is not being installed)

    I'm trying to upgrade from zabbix 4.4 to zabbix 6, running on ubuntu 18, using this guide
    But i'm having this error when try to do the
    Code:
    apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
    Code:
    zabbix-server-mysql is already the newest version (1:4.4.0-1+bionic).
    zabbix-agent is already the newest version (1:4.4.0-1+bionic).
    zabbix-frontend-php is already the newest version (1:4.4.0-1+bionic).

    I did the steps to install the zabbix 6 repository for ubuntu 18 (a lot of times) with no errors

    <code>
    ​# wget https://repo.zabbix.com/zabbix/6.2/u...u18.04_all.deb
    # dpkg -i zabbix-release_6.2-1+ubuntu18.04_all.deb
    # apt-get update
    </code>



    I don't know why the OS is not reading the zabbix 6 repository, and the OS is considering the zabbix 4 as up to date (I'm not a linux expert)

    Looking in my /etc/apt sources I didn't find anything related to zabbix. maybe I need to add repositories manually? The weird thing is that I can't see any errors doing the step of adding zabbix 6 repo with the .deb package.


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

    #2
    You are using the repository for 6.2, not 6.0. There is no Zabbix server 6.2 for Ubuntu 18.04.

    Either use Zabbix 6.0 (see https://www.zabbix.com/download) or install Zabbix 6.2 server on a newer platform.

    Markku

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      6.0 wont also install on 18.04 ... Need at least 20.04...

      Comment

      • beriapl
        Junior Member
        • Jun 2020
        • 7

        #4
        I've ran into similiar issue on debian 10.13

        Package with repo is installing, but no repo entry in sources file:

        Code:
        root@pve-07-07:~# dpkg -i zabbix-release_6.2-4+debian10_all.deb
        (Reading database ... 101847 files and directories currently installed.)
        Preparing to unpack zabbix-release_6.2-4+debian10_all.deb ...
        Unpacking zabbix-release (1:6.2-4+debian10) over (1:6.2-4+debian10) ...
        Setting up zabbix-release (1:6.2-4+debian10) ...
        
        root@pve-07-07:~# ls -al /etc/apt/sources.list.d/
        total 16
        drwxr-xr-x 2 root root 4096 Jan 18 00:38 .
        drwxr-xr-x 7 root root 4096 Aug 12 2021 ..
        -rw-r--r-- 1 root root 64 Dec 5 2021 ceph.list
        -rw-r--r-- 1 root root 76 Jan 18 2022 linux.dell.com.sources.list
        
        root@pve-07-07:~# apt update
        Hit:1 http://ftp.pl.debian.org/debian buster InRelease
        Get:2 http://ftp.pl.debian.org/debian buster-updates InRelease [56.6 kB]
        Hit:3 http://security.debian.org buster/updates InRelease
        Hit:4 http://download.proxmox.com/debian/pve buster InRelease
        Hit:5 http://download.proxmox.com/debian/ceph-octopus buster InRelease
        Fetched 56.6 kB in 2s (37.7 kB/s)
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        3 packages can be upgraded. Run 'apt list --upgradable' to see them.
        
        root@pve-07-07:~# apt list --upgradable
        Listing... Done
        libsnmp-base/oldstable 5.7.3+dfsg-5+deb10u4 all [upgradable from: 5.7.3+dfsg-5+deb10u3]
        libsnmp30/oldstable 5.7.3+dfsg-5+deb10u4 amd64 [upgradable from: 5.7.3+dfsg-5+deb10u3]
        libtasn1-6/oldstable 4.13-3+deb10u1 amd64 [upgradable from: 4.13-3]

        Comment

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

          #5
          Strange, never seen the file missing.

          What does it say if you add -D33 in the dpkg install command?

          Markku

          Comment

          • DarwinXNU
            Junior Member
            • Dec 2014
            • 2

            #6
            I'm also seeing this issue while trying to update from 5.0 to 6.0 on Debian 10 using the upgrade guide.

            Code:
            root@zabbix:~# dpkg -D33 -i zabbix-release_latest+debian10_all.deb
            D000001: ensure_diversions: new, (re)loading
            D000001: ensure_statoverrides: new, (re)loading
            D000010: path_remove_tree '/var/lib/dpkg/tmp.ci'
            (Reading database ... 58787 files and directories currently installed.)
            Preparing to unpack zabbix-release_latest+debian10_all.deb ...
            D000020: process_archive conffile '/etc/apt/sources.list.d/zabbix-agent2-plugins.list' package=zabbix-release:all same hash=ebf47c52e6c7c6ee8650b1bf7c565f77
            D000020: process_archive conffile '/etc/apt/sources.list.d/zabbix.list' package=zabbix-release:all same hash=4c1682d9d182caed416401d12e26d3c5
            D000020: process_archive conffile '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' package=zabbix-release:all same hash=c59dbe08aff7e91d2cc694ca178909ac
            D000001: process_archive oldversionstatus=installed
            D000002: maintscript_fallback nonexistent prerm '/var/lib/dpkg/info/zabbix-release.prerm'
            D000002: maintscript_new nonexistent preinst '/var/lib/dpkg/tmp.ci/preinst'
            Unpacking zabbix-release (1:6.0-4+debian10) over (1:6.0-4+debian10) ...
            D000010: tarobject ti->name='.' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/.' flags=2 instead='<none>'
            D000010: tarobject ti->name='./etc' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/etc' flags=2 instead='<none>'
            D000010: tarobject ti->name='./etc/apt' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/etc/apt' flags=2 instead='<none>'
            D000010: tarobject ti->name='./etc/apt/sources.list.d' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/etc/apt/sources.list.d' flags=2 instead='<none>'
            D000010: tarobject ti->name='./etc/apt/sources.list.d/zabbix-agent2-plugins.list' mode=100755 owner=0:0 type=48(-) ti->linkname='' namenode='/etc/apt/sources.list.d/zabbix-agent2-plugins.list' flags=7 instead='<none>'
            D000020: tarobject FNNF_NEW_CONFF deref='/etc/apt/sources.list.d/zabbix-agent2-plugins.list'
            D000010: path_remove_tree '/etc/apt/sources.list.d/zabbix-agent2-plugins.list.dpkg-new'
            D000010: path_remove_tree '/etc/apt/sources.list.d/zabbix-agent2-plugins.list.dpkg-tmp'
            D000010: tarobject ti->name='./etc/apt/sources.list.d/zabbix.list' mode=100755 owner=0:0 type=48(-) ti->linkname='' namenode='/etc/apt/sources.list.d/zabbix.list' flags=7 instead='<none>'
            D000020: tarobject FNNF_NEW_CONFF deref='/etc/apt/sources.list.d/zabbix.list'
            D000010: path_remove_tree '/etc/apt/sources.list.d/zabbix.list.dpkg-new'
            D000010: path_remove_tree '/etc/apt/sources.list.d/zabbix.list.dpkg-tmp'
            D000010: tarobject ti->name='./etc/apt/trusted.gpg.d' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/etc/apt/trusted.gpg.d' flags=2 instead='<none>'
            D000010: tarobject ti->name='./etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' mode=100755 owner=0:0 type=48(-) ti->linkname='' namenode='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' flags=7 instead='<none>'
            D000020: conffderef in='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' result='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg'
            D000020: tarobject FNNF_NEW_CONFF deref='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg'
            D000010: path_remove_tree '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg.dpkg-new'
            D000010: path_remove_tree '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg.dpkg-tmp'
            D000010: tarobject ti->name='./usr' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/usr' flags=2 instead='<none>'
            D000010: tarobject ti->name='./usr/share' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/usr/share' flags=2 instead='<none>'
            D000010: tarobject ti->name='./usr/share/doc' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/usr/share/doc' flags=2 instead='<none>'
            D000010: tarobject ti->name='./usr/share/doc/zabbix-release' mode=40755 owner=0:0 type=53(d) ti->linkname='' namenode='/usr/share/doc/zabbix-release' flags=2 instead='<none>'
            D000010: tarobject ti->name='./usr/share/doc/zabbix-release/README.Debian' mode=100644 owner=0:0 type=48(-) ti->linkname='' namenode='/usr/share/doc/zabbix-release/README.Debian' flags=2 instead='<none>'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/README.Debian.dpkg-new'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/README.Debian.dpkg-tmp'
            D000010: tarobject ti->name='./usr/share/doc/zabbix-release/changelog.Debian' mode=100644 owner=0:0 type=48(-) ti->linkname='' namenode='/usr/share/doc/zabbix-release/changelog.Debian' flags=2 instead='<none>'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/changelog.Debian.dpkg-new'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/changelog.Debian.dpkg-tmp'
            D000010: tarobject ti->name='./usr/share/doc/zabbix-release/copyright' mode=100644 owner=0:0 type=48(-) ti->linkname='' namenode='/usr/share/doc/zabbix-release/copyright' flags=2 instead='<none>'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/copyright.dpkg-new'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/copyright.dpkg-tmp'
            D000010: deferred extract of '/.'
            D000010: deferred extract of '/etc'
            D000010: deferred extract of '/etc/apt'
            D000010: deferred extract of '/etc/apt/sources.list.d'
            D000010: deferred extract of '/etc/apt/sources.list.d/zabbix-agent2-plugins.list'
            D000010: deferred extract of '/etc/apt/sources.list.d/zabbix.list'
            D000010: deferred extract of '/etc/apt/trusted.gpg.d'
            D000010: deferred extract of '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg'
            D000010: deferred extract of '/usr'
            D000010: deferred extract of '/usr/share'
            D000010: deferred extract of '/usr/share/doc'
            D000010: deferred extract of '/usr/share/doc/zabbix-release'
            D000010: deferred extract of '/usr/share/doc/zabbix-release/README.Debian'
            D000010: deferred extract of '/usr/share/doc/zabbix-release/changelog.Debian'
            D000010: deferred extract of '/usr/share/doc/zabbix-release/copyright'
            D000002: maintscript_fallback nonexistent postrm '/var/lib/dpkg/info/zabbix-release.postrm'
            D000001: process_archive updating info directory
            D000002: process_archive info installed /var/lib/dpkg/tmp.ci/md5sums as /var/lib/dpkg/info/zabbix-release.md5sums
            D000002: process_archive info installed /var/lib/dpkg/tmp.ci/conffiles as /var/lib/dpkg/info/zabbix-release.conffiles
            D000002: process_archive tmp.ci script/file '.' contains dot
            D000002: process_archive tmp.ci script/file '/var/lib/dpkg/tmp.ci/control' is control
            D000002: process_archive tmp.ci script/file '..' contains dot
            D000001: generating infodb hashfile
            D000010: process_archive looking for overwriting '/etc/apt/sources.list.d/zabbix-agent2-plugins.list'
            D000010: process_archive looking for overwriting '/etc/apt/sources.list.d/zabbix.list'
            D000010: process_archive looking for overwriting '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg'
            D000010: process_archive looking for overwriting '/usr/share/doc/zabbix-release/README.Debian'
            D000010: process_archive looking for overwriting '/usr/share/doc/zabbix-release/changelog.Debian'
            D000010: process_archive looking for overwriting '/usr/share/doc/zabbix-release/copyright'
            D000010: path_remove_tree '/etc.dpkg-tmp'
            D000010: path_remove_tree '/etc/apt.dpkg-tmp'
            D000010: path_remove_tree '/etc/apt/sources.list.d.dpkg-tmp'
            D000010: path_remove_tree '/etc/apt/trusted.gpg.d.dpkg-tmp'
            D000010: path_remove_tree '/usr.dpkg-tmp'
            D000010: path_remove_tree '/usr/share.dpkg-tmp'
            D000010: path_remove_tree '/usr/share/doc.dpkg-tmp'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release.dpkg-tmp'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/README.Debian.dpkg-tmp'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/changelog.Debian.dpkg-tmp'
            D000010: path_remove_tree '/usr/share/doc/zabbix-release/copyright.dpkg-tmp'
            D000010: path_remove_tree '/var/lib/dpkg/tmp.ci'
            D000010: path_remove_tree running rm -rf '/var/lib/dpkg/tmp.ci'
            D000010: path_remove_tree '/var/lib/dpkg/reassemble.deb'
            D000001: process queue pkg zabbix-release:all queue.len 0 progress 1, try 1
            Setting up zabbix-release (1:6.0-4+debian10) ...
            D000001: deferred_configure updating conffiles
            D000020: deferred_configure '/etc/apt/sources.list.d/zabbix-agent2-plugins.list' (= '/etc/apt/sources.list.d/zabbix-agent2-plugins.list') useredited=1 distedited=0 what=202
            D000020: deferred_configure '/etc/apt/sources.list.d/zabbix.list' (= '/etc/apt/sources.list.d/zabbix.list') useredited=1 distedited=0 what=202
            D000020: conffderef in='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' result='/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg'
            D000020: deferred_configure '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg' (= '/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg') useredited=-1 distedited=-1 what=2
            D000002: vmaintscript_installed nonexistent postinst
            After this I'd move it to Debian 12, but maybe I can do the migration and upgrade in one go.

            Comment

            Working...