Solved

Upgrade to centreon 24.04 from 23.10 on debian fails


Badge +3

Hi,

after updating the sources in apt on Debian 11, I cannot upgrade to centreon 24.04

apt upgrade centreon fails with:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
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:
centreon : Depends: centreon-mariadb (= 24.04.0-1~bullseye) but it is not going to be installed or
centreon-mysql (= 24.04.0-1~bullseye) but it is not going to be installed
centreon-central : Depends: centreon-poller (= 24.04.0-1~bullseye) but it is not going to be installed
Depends: centreon-web (= 24.04.0-1~bullseye) but 23.10.11-bullseye is to be installed
Depends: centreon-broker-cbd (>= 24.04~) but 23.10.6-1 is to be installed
Depends: centreon-license-manager (>= 24.04~) but 23.10.0-1 is to be installed
Depends: centreon-pp-manager (>= 24.04~) but 23.10.2-1 is to be installed
Depends: centreon-auto-discovery-server (>= 24.04~) but 23.10.1-1 is to be installed
Depends: centreon-it-edition-extensions (>= 24.04~) but 23.10.2-1 is to be installed
E: Broken packages

If I try with apt-get full-upgrade I get the following:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
apache2 apache2-bin apache2-data apache2-utils brotli centreon-auto-discovery-server centreon-broker centreon-broker-cbd centreon-broker-cbmod centreon-broker-core centreon-clib centreon-common
centreon-connector centreon-connector-perl centreon-connector-ssh centreon-engine centreon-engine-daemon centreon-gorgone centreon-gorgone-centreon-config centreon-license-manager
centreon-license-manager-common centreon-perl-libs centreon-poller centreon-pp-manager centreon-trap centreon-web comerr-dev debsuryorg-archive-keyring fonts-font-awesome galera-4 gettext icu-devtools
javascript-common krb5-multidev libabsl20200923 libaio1 libapache2-mod-php8.1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libatomic1 libauthen-pam-perl libauthen-simple-net-perl libauthen-simple-pam-perl
libauthen-simple-perl libavif9 libbsd-dev libc-dev-bin libc-devtools libc6-dev libclass-accessor-perl libconfig-inifiles-perl libcrypt-des-perl libcrypt-dev libcrypt-passwdmd5-perl libdbd-sqlite3-perl
libde265-0 libdigest-md5-file-perl libev-perl libffi-checklib-perl libffi-platypus-perl libfuture-asyncawait-perl libfuture-perl libgav1-0 libgd-perl libgd3 libgmp-dev libgmpxx4ldbl libgnutls-dane0
libgnutls28-dev libgnutlsxx28 libgpgme11 libgssrpc4 libhash-merge-perl libheif1 libhttp-daemon-ssl-perl libicu-dev libidn2-dev libio-socket-socks-perl libjs-bootstrap4 libjs-highlight.js libjs-jquery
libjs-popper.js libjs-sizzle libkadm5clnt-mit12 libkadm5srv-mit12 libkdb5-10 libkrb5-dev liblzma-dev libmd-dev libmojo-server-fastcgi-perl libmojolicious-perl libnetaddr-ip-perl libnorm-dev libnsl-dev
libnspr4-dev libnss3-dev libonig5 libp11-kit-dev libparams-validate-perl libpgm-dev libschedule-cron-perl libsodium-dev libtasn1-6-dev libtasn1-doc libterm-readkey-perl libtirpc-dev libunbound8 libunwind-dev
libxml2-dev libxs-parse-sublike-perl libxslt1.1 libyaml-libyaml-perl libzip4 libzmq-ffi-perl libzmq3-dev linux-libc-dev lua5.3 lua5.3-curl manpages-dev mariadb-client mariadb-client-10.5
mariadb-client-core-10.5 mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 nettle-dev node-jquery php-common php-pear php-xml php8.1 php8.1-cli php8.1-common php8.1-curl php8.1-fpm php8.1-gd
php8.1-gnupg php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-readline php8.1-snmp php8.1-sourceguardian-loader php8.1-sqlite3 php8.1-xml php8.1-zip php8.2-common php8.2-xml
php8.3-common php8.3-xml rrdtool snmp socat ssl-cert
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
centreon centreon-central centreon-database centreon-it-edition-extensions centreon-poller-centreon-engine centreon-web-apache centreon-web-common centreon-widget-engine-status centreon-widget-global-health
centreon-widget-graph-monitoring centreon-widget-grid-map centreon-widget-host-monitoring centreon-widget-hostgroup-monitoring centreon-widget-httploader centreon-widget-live-top10-cpu-usage
centreon-widget-live-top10-memory-usage centreon-widget-service-monitoring centreon-widget-servicegroup-monitoring centreon-widget-single-metric centreon-widget-tactical-overview
The following NEW packages will be installed:
brotli centreon-gorgone-centreon-config centreon-poller lua5.3-curl mariadb-client
The following packages will be upgraded:
centreon-auto-discovery-server centreon-broker centreon-broker-cbd centreon-broker-cbmod centreon-broker-core centreon-clib centreon-common centreon-connector centreon-connector-perl centreon-connector-ssh
centreon-engine centreon-engine-daemon centreon-gorgone centreon-license-manager centreon-license-manager-common centreon-perl-libs centreon-plugins-sudoers centreon-pp-manager centreon-trap centreon-web
20 upgraded, 5 newly installed, 20 to remove and 0 not upgraded.
Need to get 61.1 MB of archives.
After this operation, 24.5 MB disk space will be freed.

So it wants to remove apache2, mariadb, php, … which will be problematic to run centreon.

 

It seems the dependencies are not fully checked in the packages, and not all packages are available.

 

Gr,

 

Philip

icon

Best answer by kduret 2 May 2024, 09:37

View original

5 replies

Userlevel 3
Badge +5

Hello @philipraets 

We’re looking into this and will keep you posted. Thanks for reporting the problem.

Userlevel 4
Badge +10

Hi,

 

You can now upgrade centreon with the following command :

apt update && apt install --only-upgrade centreon

(apt-get full-upgrade centreon should work too)

 

One package was missing in the stable repository : centreon-it-edition-extensions.

 

We will update the documentation.

Badge +3

The upgrade worked, and afterwards I could upgrade debian 11 to debian 12.

 

Thank you

Badge

Upgrading to Centreon 24.04 on Debian 11 worked just fine, but after Upgrading Debian to bookworm I get the same error:

# apt install -y --no-install-recommends centreon-mariadb centreon
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
centreon-mariadb is already the newest version (24.04.0-1~bullseye).
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:
centreon : Depends: centreon-mariadb (= 24.04.0-1~bookworm) but 24.04.0-1~bullseye is to be installed or
centreon-mysql (= 24.04.0-1~bookworm) but it is not installable
centreon-broker-cbd : Depends: centreon-broker-core (= 24.04.0-1~bookworm) but 24.04.0-1~bullseye is to be installed
centreon-connector-ssh : Depends: centreon-clib (= 24.04.0-1~bookworm) but 24.04.0-1~bullseye is to be installed
E: Unable to correct problems, you have held broken packages.

Any ideas?

Badge +3

Have you set all sources to bookworm (and disabled any additional repositorys, so only debian and centreon repositories are enabled)?

# grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*
/etc/apt/sources.list:deb http://deb.debian.org/debian/ bookworm main contrib
/etc/apt/sources.list:deb-src http://deb.debian.org/debian/ bookworm main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://security.debian.org/debian-security bookworm-security main contrib
/etc/apt/sources.list:deb-src http://security.debian.org/debian-security bookworm-security main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# bookworm-updates, to get updates before a point release is made;
/etc/apt/sources.list:# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
/etc/apt/sources.list:deb http://deb.debian.org/debian/ bookworm-updates main contrib
/etc/apt/sources.list:deb-src http://deb.debian.org/debian/ bookworm-updates main contrib
/etc/apt/sources.list.d/centreon.list:deb https://packages.centreon.com/apt-standard-24.04-stable/ bookworm main
/etc/apt/sources.list.d/centreon-plugins.list:deb https://packages.centreon.com/apt-plugins-stable/ bookworm main

Also try to create a file centreon.pref in /etc/apt/preferences.d before the upgrade to bookworm with the following content:

Package: *
Pin: origin packages.centreon.com
Pin-Priority: 1000

This way all the packages get updates (downgrades)

then upgrade with

apt-get update
apt-get dist-upgrade

 

Reply