Upgrading to IcingaWeb2 2.11 Debian, package dependency issue

Faced with issues during upgrading IcingaWeb2 from 2.10 to 2.11 via apt on Debian box - because of cross dependencies :frowning:

icingaweb2 repository issue link:
Upgrading IcingaWeb2 from 2.10 to 2.11 on Debian/Ubuntu 路 Issue #4851 路 Icinga/icingaweb2 路 GitHub

$ lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye
apt list --upgradable
Listing... Done
icinga-php-library/icinga-bullseye 0.9.0-1.bullseye all [upgradable from: 0.8.1-1.bullseye]
icinga-php-thirdparty/icinga-bullseye 0.11.0-1.bullseye all [upgradable from: 0.10.0-2.bullseye]
icingacli/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
icingaweb2-common/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
icingaweb2-module-doc/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
icingaweb2-module-monitoring/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
icingaweb2/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
php-icinga/icinga-bullseye 2.11.0-1.bullseye all [upgradable from: 2.10.1-1.bullseye]
$ sudo apt upgrade -y
...
The following packages have been kept back:
  icinga-php-library icinga-php-thirdparty icingacli icingaweb2 icingaweb2-common icingaweb2-module-doc
  icingaweb2-module-monitoring php-icinga
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

Tried manually upgrade by package:

$ sudo apt upgrade icingaweb2
...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 icingacli : Depends: icingaweb2-common (= 2.10.1-1.bullseye) but 2.11.0-1.bullseye is to be installed
E: Broken packages
$ sudo apt upgrade icingacli

...

The following packages have unmet dependencies:
 icingaweb2 : Depends: icingaweb2-common (= 2.10.1-1.bullseye) but 2.11.0-1.bullseye is to be installed
E: Broken packages
$ sudo apt upgrade icingaweb2-common

...

The following packages have unmet dependencies:
 icingacli : Depends: icingaweb2-common (= 2.10.1-1.bullseye) but 2.11.0-1.bullseye is to be installed
 icingaweb2 : Depends: icingaweb2-common (= 2.10.1-1.bullseye) but 2.11.0-1.bullseye is to be installed
E: Broken packages

Does anyone upgraded to icingaweb2 2.11 using apt?

Sincerely,
Ilya

Hi @Ilya

since our dependencies for Icingaweb2 have changed, this behaviour is to be expected. Check out this article on debian-administration.org for more information. The obvious solution would be to execute apt full-upgrade or apt-get dist-upgrade, which would upgrade all packages to their current versions.

If this isn鈥檛 an option due to other packages being unwantedly upgraded, I suggest using one of the following commands for your OS, which will explicity upgrade the packages to the version named in the command - the current one for this case.

Debian 10 Buster:

apt install icinga-php-thirdparty=0.11.0-1.buster \
icinga-php-library=0.9.0-1.buster \
icingacli=2.11.0-1.buster \
icingaweb2=2.11.0-1.buster \
icingaweb2-common=2.11.0-1.buster \
icingaweb2-module-doc=2.11.0-1.buster \
icingaweb2-module-monitoring=2.11.0-1.buster \
php-icinga=2.11.0-1.buster

Debian 11 Bullseye:

apt install icinga-php-thirdparty=0.11.0-1.bullseye \
icinga-php-library=0.9.0-1.bullseye \
icingacli=2.11.0-1.bullseye \
icingaweb2=2.11.0-1.bullseye \
icingaweb2-common=2.11.0-1.bullseye \
icingaweb2-module-doc=2.11.0-1.bullseye \
icingaweb2-module-monitoring=2.11.0-1.bullseye \
php-icinga=2.11.0-1.bullseye

Ubuntu 20.04 Focal Fossa:

apt install icinga-php-thirdparty=0.11.0-1.focal \
icinga-php-library=0.9.0-1.focal \
icingacli=2.11.0-1.focal \
icingaweb2=2.11.0-1.focal \
icingaweb2-common=2.11.0-1.focal \
icingaweb2-module-doc=2.11.0-1.focal \
icingaweb2-module-monitoring=2.11.0-1.focal \
php-icinga=2.11.0-1.focal

Ubuntu 22.04 Jammy Jellyfish:

apt install icinga-php-thirdparty=0.11.0-1.jammy \
icinga-php-library=0.9.0-1.jammy \
icingacli=2.11.0-1.jammy \
icingaweb2=2.11.0-1.jammy \
icingaweb2-common=2.11.0-1.jammy \
icingaweb2-module-doc=2.11.0-1.jammy \
icingaweb2-module-monitoring=2.11.0-1.jammy \
php-icinga=2.11.0-1.jammy

Hope that helps & have fun with the new version!

1 Like

Confirm, it works!

Upgraded my Icinga Web 2 to 2.11 instance by
$ sudo apt full-upgrade

Thank you!

1 Like