Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19839

Ubuntu unattended-upgrades are not working with Zabbix Agent packages

XMLWordPrintable

    • Sprint 79 (Aug 2021)

      Online repos for Ubuntu should include the "Suite: " tag to allow the ubuntu unattended-upgrades to automatically rollout new versions of the zabbix_agents when available.

      For example:

      bash
      ~$ less /var/lib/apt/lists/mirror.server.name_zabbix-ubuntu_dists_bionic_InRelease
      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA512
      
      Origin: Zabbix
      Label: somelabel
      Suite: bionic
      Version: someversion
      Codename: bionic
      Date: Fri, 07 May 2021 17:44:30 UTC
      Architectures: amd64
      Components: main
      

      The configuration for unattended-upgrades then will read something like this:

      Unattended-Upgrade::Allowed-Origins {
              "${distro_id}:${distro_codename}";
              "${distro_id}:${distro_codename}-updates";
              "${distro_id}:${distro_codename}-backports";
              "${distro_id}:${distro_codename}-security";
              "Zabbix:${distro_codename}";
      };
      

      Here is a reference: https://linux-audit.com/upgrading-external-packages-with-unattended-upgrade/

      Please note that the other format available is not supported on some Ubuntu releases:

      Unattended-Upgrade::Allowed-Origins {
              "o=Zabbix,n=${distro_codename}";
      };
      

      Producing the error:

      ValueError: not enough values to unpack (expected 2, got 1)
      

            yurii Jurijs Klopovskis
            edgar.akhmetshin Edgar Akhmetshin
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: