icinga-packaging icon indicating copy to clipboard operation
icinga-packaging copied to clipboard

Change Debian package suffixes for release upgrades

Open lazyfrosch opened this issue 7 years ago • 8 comments
trafficstars

Currently all package versions end in -1.<dist>, so:

x.x.x-1.trusty
x.x.x-1.xenial
x.x.x-1.stretch

This came apparent with latest Ubuntu releases, where Canonical rolled over the codenames alphabetically. Currently the OS won't upgrade 2.10.1-1.xenial to 2.10.1-1.bionic to to alphabetical order.

To have proper version information we should switch over to numeric version suffixes, this will guarantee that Icinga 2 packages will be upgraded.

Examples:

x.x.x-1.ubuntu1604
x.x.x-1.ubuntu1804
x.x.x-1.debian9
x.x.x-1.debian10

Question: Is debian10 newer than debian9?

/cc @R-Sommer

lazyfrosch avatar Nov 22 '18 10:11 lazyfrosch

Yes it works:

$ dpkg --compare-versions 1.1.1-1.debian10 gt 1.1.1-1.debian9; echo $?
0

lazyfrosch avatar Nov 22 '18 10:11 lazyfrosch

This is still pending, you should be able to fully upgrade like this:

sudo apt-get install icinga2 --allow-downgrades

lazyfrosch avatar Sep 01 '19 09:09 lazyfrosch

I tried it today and got this icinga2 ist schon die neueste Version (2.10.5-1.stretch). icinga2 is on the newest version

r4a5a88 avatar Sep 02 '19 06:09 r4a5a88

Is there an ETA on changing the versioning? We are currently suffering from the same issue.

ThreeFx avatar Sep 18 '19 21:09 ThreeFx

This will hopefully solve itself when I release 2.11 today.

dnsmichi avatar Sep 19 '19 07:09 dnsmichi

Unfortunately this did not fix this issue. Actually I'm working around something like this:

ICINGA2_VER="$(apt-cache policy icinga2| grep "\.buster" | head -1 | awk '{print $1}')" && [ -n "${ICINGA2_VER}" ] && apt install icinga2-bin=${ICINGAWEB2_VER} icinga2-common=${ICINGAWEB2_VER}

Same goes for icingaweb2. But this isn't a no brainer like moving away from release names in package versions but using distibutions release versions like "~deb10" and "~deb9" or something like this.

waja avatar Sep 23 '19 10:09 waja

Any news?

Kazyini avatar Nov 03 '21 09:11 Kazyini

ping? :P

waja avatar Jan 21 '22 13:01 waja

This has been fixed for new packages: https://packages.icinga.com/debian/pool/main/i/icinga-kubernetes/

Al2Klimov avatar Jun 21 '24 10:06 Al2Klimov