Ad Widget

Collapse

Upgrade zabbix server 6.0.4 to 6.0.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • batchen_regev
    Member
    • Aug 2018
    • 80

    #1

    Upgrade zabbix server 6.0.4 to 6.0.5

    Hello,
    I have zabbix server 6.0.4 on ubuntu20 and i want to upgrade to 6.0.5 but the zabbix repo has no 6.0.5 release only up to 6.0.3, why?
    If i use apt-get update and see what is available i see 6.0.6




    Have tried also to run
    Code:
    apt-get install --only-upgrade zabbix-server-mysql=6.0.5-1
    but it says
    Code:
    Version '6.0.5-1' for 'zabbix-server-mysql' was not found
    Last edited by batchen_regev; 06-07-2022, 14:30.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Have you recently updated the repository information?
    Code:
    # apt update

    Comment

    • batchen_regev
      Member
      • Aug 2018
      • 80

      #3
      Originally posted by Atsushi
      Have you recently updated the repository information?
      Code:
      # apt update
      I wrote in the question that i did that..

      Comment

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

        #4
        The zabbix-release package/file version is not the same thing as Zabbix version.

        Just install whatever is the latest zabbix-release package, then "apt update" and "apt install" for all the needed packages. (Or "apt upgrade")

        Note that you most probably want to install 6.0.6 and not 6.0.5, see: https://www.zabbix.com/forum/zabbix-...p-auditlog-ibd

        Markku

        Comment

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

          #5
          Extra information follows, if you are really interested about the idea of the zabbix-release package (otherwise ignore these).

          With "dpkg -L zabbix-release" command you can see the list of files installed by the package. I don't have any Ubuntus but here is one from a Debian box:

          Code:
          $ dpkg -L zabbix-release
          /.
          /etc
          /etc/apt
          /etc/apt/sources.list.d
          /etc/apt/sources.list.d/zabbix-agent2-plugins.list
          /etc/apt/sources.list.d/zabbix.list
          /etc/apt/trusted.gpg.d
          /etc/apt/trusted.gpg.d/zabbix-official-repo.gpg
          /usr
          /usr/share
          /usr/share/doc
          /usr/share/doc/zabbix-release
          /usr/share/doc/zabbix-release/README.Debian
          /usr/share/doc/zabbix-release/changelog.Debian
          /usr/share/doc/zabbix-release/copyright
          The important file regarding the whole process of downloading anything from the official Zabbix repository is /etc/apt/sources.list.d/zabbix.list:

          Code:
          $ cat /etc/apt/sources.list.d/zabbix.list
          deb https://repo.zabbix.com/zabbix/6.0/debian buster main
          deb-src https://repo.zabbix.com/zabbix/6.0/debian buster main
          Every "apt update" run causes the system to check those URLs for the latest packages related to Zabbix. Do not edit that file manually, just install the correct zabbix-release package for your system, and it takes care of the URLs automatically.

          The changelog file /usr/share/doc/zabbix-release/changelog.Debian contains the Debian-specific history of the zabbix-release package:

          Code:
          $ head -20 /usr/share/doc/zabbix-release/changelog.Debian
          zabbix-release (1:6.0-3+debian10) stable; urgency=low
          
          * added agent2-plugins repo
          
          -- Zabbix Packager <[email protected]> Mon, 27 Jun 2022 14:33:49 +0300
          
          zabbix-release (1:6.0-2) stable; urgency=low
          
          * fixed repo url for raspbian
          
          -- Zabbix Packager <[email protected]> Tue, 15 Feb 2022 13:34:40 +0200
          
          zabbix-release (1:6.0-1) stable; urgency=low
          
          * update to 6.0
          
          -- Zabbix Packager <[email protected]> Fri, 11 Feb 2022 14:08:44 +0200
          
          zabbix-release (1:5.5-1) stable; urgency=low
          There you can see that the zabbix-release file for 6.0 series of Zabbix has been updated twice, first from 6.0-1 to 6.0-2 and the latest is 6.0-3. It has been automatically upgraded when running "apt upgrade" earlier.

          Last, "dpkg -l zabbix\*" gets you the list of currently installed Zabbix packages and versions. This is from one of my Zabbix servers:

          Code:
          $ 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:6.0.6-1+debian10 amd64        Zabbix network monitoring solution - agent
          ii  zabbix-apache-conf  1:6.0.6-1+debian10 all          Zabbix network monitoring solution - apache configuration for front-end
          ii  zabbix-frontend-php 1:6.0.6-1+debian10 all          Zabbix network monitoring solution - PHP front-end
          un  zabbix-nginx-conf   <none>             <none>       (no description available)
          ii  zabbix-release      1:6.0-3+debian10   all          Zabbix official repository configuration
          ii  zabbix-sender       1:6.0.6-1+debian10 amd64        Zabbix network monitoring solution - sender
          ii  zabbix-server-mysql 1:6.0.6-1+debian10 amd64        Zabbix network monitoring solution - server (MySQL)
          un  zabbix-server-pgsql <none>             <none>       (no description available)
          ii  zabbix-sql-scripts  1:6.0.6-1+debian10 all          Zabbix network monitoring solution - sql-scripts

          Markku
          Last edited by Markku; 11-07-2022, 12:45.

          Comment

          • batchen_regev
            Member
            • Aug 2018
            • 80

            #6
            Originally posted by Markku
            The zabbix-release package/file version is not the same thing as Zabbix version.

            Just install whatever is the latest zabbix-release package, then "apt update" and "apt install" for all the needed packages. (Or "apt upgrade")

            Note that you most probably want to install 6.0.6 and not 6.0.5, see: https://www.zabbix.com/forum/zabbix-...p-auditlog-ibd

            Markku
            Thank you! ended up installing 6.0.6

            Comment

            Working...