[ZBX-19839]  Ubuntu unattended-upgrades are not working with Zabbix Agent packages Created: 2021 Aug 20  Updated: 2024 Apr 10  Resolved: 2021 Aug 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Agent2 plugin (G), Packages (C)
Affects Version/s: 5.0.14, 5.4.3, 6.0.0alpha1
Fix Version/s: None

Type: Problem report Priority: Major
Reporter: Edgar Akhmetshin Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 0
Labels: agent, agent2, packaging, unattended, upgrade
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu


Issue Links:
Causes
Team: Team B
Sprint: Sprint 79 (Aug 2021)

 Description   

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)


 Comments   
Comment by dimir [ 2021 Aug 20 ]

somelabel and someversion are also not good?

Comment by Edgar Akhmetshin [ 2021 Aug 20 ]

this 'vars' should be set to a correct value

Comment by Jurijs Klopovskis [ 2021 Aug 26 ]

Added Suite and Version fields to 5.0, 5.4 and 5.5 reprepro conf/distribution files.
Changes will be available in 5.0.15, 5.4.4 and the next 6.0 pre release, when repository files are regenerated.

Generated at Sun Apr 27 09:53:47 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.