Skip to main content

Hi, when following the upgrade procedure I get the following error:

apt install --only-upgrade centreon
Reading package lists... Done
Building dependency tree... Done
Reading state information... 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-central : Depends: centreon-license-manager (>= 24.10~) but 24.04.1-1~bookworm is to be installed
Depends: centreon-pp-manager (>= 24.10~) but 24.04.1-1~bookworm is to be installed
Depends: centreon-auto-discovery-server (>= 24.10~) but it is not going to be installed
Depends: centreon-auto-discovery-server (< 25.04~) but it is not going to be installed
Depends: centreon-it-edition-extensions (>= 24.10~) but 24.04.1-1~bookworm is to be installed
centreon-it-edition-extensions : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
centreon-license-manager : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
centreon-poller : Depends: centreon-gorgone-centreon-config (>= 24.10~) but 24.04.3-1~bookworm is to be installed
centreon-pp-manager : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
E: Unable to correct problems, you have held broken packages.
more /etc/apt/sources.list.d/centreon.list
deb https://packages.centreon.com/apt-standard-24.10-stable/ bookworm main

 

Hi,

 

Strange “apt install --only-upgrade centreon” working for me.

But more problems after, all MACRO seems to be vanished… working on


Hello,

@philipraets could you please share your previous terminal history for the upgrade procedure to help understand what step may have lead to this package dependency issue ?

@reglisse could you also share the terminal history for the upgrade procedure (since it worked at least on package level for you) ?


Hi

@tuntoja sorry, but technical upgarde (on command line) is ok, but seems that template hierarchy is broken on debian 12, after an upgrade or for a clean installation.

Need to open a case on support.

I’ve rolled back on a snapshot and haven’t got the terminal history sorry.

For me it is too early to switch to 24.10 on debian 12.


Hi,

I have the same issue.

All macros defined in the first host template link to the host work correctly.

Macros defined directly to the host is taken into account too.

But every macros defined in the next host template does not work.

My environnment :

OS : Debian GNU/Linux 12 (bookworm)

package version : 

centreon-auto-discovery-server/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-broker-cbd/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker-cbmod/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker-core/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-broker/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-central/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-clib/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-common/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-connector-perl/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-connector-ssh/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-connector/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine-daemon/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine-opentelemetry/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-engine/bookworm,now 24.10.0-1+deb12u1 amd64 4installed,automatic]
centreon-gorgone-centreon-config/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-gorgone/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-it-edition-extensions/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-license-manager-common/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-license-manager/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-mariadb/bookworm,now 24.10.0-1+deb12u1 all linstalled]
centreon-open-tickets/bookworm,now 24.10.0-1+deb12u1 all linstalled]
centreon-perl-libs/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-databases-mysql/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-gorgone-restapi/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-monitoring-centreon-central/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-database/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-map4-jmx/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-poller/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-monitoring-centreon-sql-metrics/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-openldap-ldap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-dns/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-ftp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-http/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-applications-protocol-imap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-ldap/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-radius/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-smtp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-ssh/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-protocol-x509/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-applications-webservers-nginx-serverstatus/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-cloud-prometheus-api/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-hardware-printers-generic-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-hardware-storage-synology-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-hardware-ups-standard-rfc1628-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-network-cisco-standard-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-network-firewalls-pfsense-snmp/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-operatingsystems-linux-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-operatingsystems-windows-restapi/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-plugin-operatingsystems-windows-snmp/bookworm,now 20241010-1+deb12u1 all linstalled,automatic]
centreon-plugin-virtualization-vmware-daemon/bookworm,now 3.3.2-1+deb12u1 all linstalled]
centreon-plugin-virtualization-vmware2-connector-plugin/bookworm,now 20241010-1+deb12u1 all linstalled]
centreon-poller/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-pp-manager/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-trap/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon-web/bookworm,now 24.10.0-1+deb12u1 all linstalled,automatic]
centreon/bookworm,now 24.10.0-1+deb12u1 all linstalled]

 


Here is the history of what I tried (these are the exact same commands as in the manual):

 

~# echo "deb https://packages.centreon.com/apt-standard-24.10-stable/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/centreon.list
echo "deb https://packages.centreon.com/apt-plugins-stable/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/centreon-plugins.list
deb https://packages.centreon.com/apt-standard-24.10-stable/ bookworm main
deb https://packages.centreon.com/apt-plugins-stable/ bookworm main
~# wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
apt update
--2024-11-05 10:53:36-- https://apt-key.centreon.com/
Resolving apt-key.centreon.com (apt-key.centreon.com)... 18.239.18.13, 18.239.18.69, 18.239.18.28, ...
Connecting to apt-key.centreon.com (apt-key.centreon.com)|18.239.18.13|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4276 (4.2K) binary/octet-stream]
Saving to: ‘STDOUT’

- 100% ==========================================================================================================================================================================>] 4.18K --.-KB/s in 0.001s

2024-11-05 10:53:37 (4.94 MB/s) - written to stdout d4276/4276]

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://packages.sury.org/php bookworm InRelease
Hit:5 https://packages.centreon.com/apt-plugins-stable bookworm InRelease
Get:6 https://packages.centreon.com/apt-standard-24.10-stable bookworm InRelease e2,972 B]
Get:7 https://packages.centreon.com/apt-standard-24.10-stable bookworm/main amd64 Packages a9,337 B]
Fetched 12.3 kB in 1s (12.4 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
~# systemctl stop php8.1-fpm
systemctl disable php8.1-fpm
Synchronizing state of php8.1-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable php8.1-fpm
Removed "/etc/systemd/system/multi-user.target.wants/php8.1-fpm.service".
~# systemctl stop cbd
~# rm /var/lib/centreon-broker/* -f
~# apt clean all
apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://packages.sury.org/php bookworm InRelease
Hit:5 https://packages.centreon.com/apt-plugins-stable bookworm InRelease
Hit:6 https://packages.centreon.com/apt-standard-24.10-stable bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
~# apt install --only-upgrade centreon
Reading package lists... Done
Building dependency tree... Done
Reading state information... 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-central : Depends: centreon-license-manager (>= 24.10~) but 24.04.1-1~bookworm is to be installed
Depends: centreon-pp-manager (>= 24.10~) but 24.04.1-1~bookworm is to be installed
Depends: centreon-auto-discovery-server (>= 24.10~) but it is not going to be installed
Depends: centreon-auto-discovery-server (< 25.04~) but it is not going to be installed
Depends: centreon-it-edition-extensions (>= 24.10~) but 24.04.1-1~bookworm is to be installed
centreon-it-edition-extensions : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
centreon-license-manager : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
centreon-poller : Depends: centreon-gorgone-centreon-config (>= 24.10~) but 24.04.3-1~bookworm is to be installed
centreon-pp-manager : Depends: centreon-web (< 24.10~) but 24.10.0-1+deb12u1 is to be installed
E: Unable to correct problems, you have held broken packages.
~#

 


In my platform, I have these repository 

 

Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease e55.4 kB]
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Get:4 https://packages.sury.org/php bookworm InRelease e7551 B]
Hit:5 https://packages.centreon.com/apt-plugins-stable bookworm InRelease
Hit:6 https://packages.centreon.com/apt-standard-24.10-stable bookworm InRelease
Get:7 https://packages.sury.org/php bookworm/main amd64 Packages s244 kB]

Can you check the sury repository (I have one more)?

root@xxxx:/etc/apt/sources.list.d# cat sury-php.list
deb https://packages.sury.org/php/ bookworm main
root@xxxx:/etc/apt/sources.list.d#

Note : I split the macros issue in another thread : 

 


I’ve got the sury repository:

 

~# cd /etc/apt/sources.list.d/
/etc/apt/sources.list.d# ls
centreon.list centreon-plugins.list sury-php.list
/etc/apt/sources.list.d# nano sury-php.list
/etc/apt/sources.list.d# cat sury-php.list
deb https://packages.sury.org/php/ bookworm main
/etc/apt/sources.list.d#
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://packages.sury.org/php bookworm InRelease
Hit:5 https://packages.centreon.com/apt-plugins-stable bookworm InRelease
Hit:6 https://packages.centreon.com/apt-standard-24.10-stable bookworm

 


I have : 

Get:4 https://packages.sury.org/php bookworm InRelease 7551 B]

Get:7 https://packages.sury.org/php bookworm/main amd64 Packages 244 kB]

You do not have the second one in your list.

> EDIT ] Stange after the clean all, i lose the second one :|

 

It seams that centreon-web can not be upgraded.

can you execute these command ?
 

apt policy php8.2-fpm
apt policy centreon-central
apt policy centreon-web

 


php8.2-fpm is not installed, but should come with the upgrade:

apt policy php8.2-fpm centreon-central centreon-web
php8.2-fpm:
Installed: (none)
Candidate: 8.2.25-1+0~20241104.64+debian12~1.gbpfc8dc9
Version table:
8.2.25-1+0~20241104.64+debian12~1.gbpfc8dc9 500
500 https://packages.sury.org/php bookworm/main amd64 Packages
8.2.24-1~deb12u1 500
500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
8.2.20-1~deb12u1 500
500 http://deb.debian.org/debian bookworm/main amd64 Packages
centreon-central:
Installed: 24.04.7-1~bookworm
Candidate: 24.10.0-1+deb12u1
Version table:
24.10.0-1+deb12u1 500
500 https://packages.centreon.com/apt-standard-24.10-stable bookworm/main amd64 Packages
*** 24.04.7-1~bookworm 100
100 /var/lib/dpkg/status
centreon-web:
Installed: 24.04.7-1~bookworm
Candidate: 24.10.0-1+deb12u1
Version table:
24.10.0-1+deb12u1 500
500 https://packages.centreon.com/apt-standard-24.10-stable bookworm/main amd64 Packages
*** 24.04.7-1~bookworm 100
100 /var/lib/dpkg/status

 


and 

apt policy centreon-auto-discovery-server


 apt policy centreon-auto-discovery-server
centreon-auto-discovery-server:
Installed: 24.04.0-1~bookworm
Candidate: 24.10.0-1+deb12u1
Version table:
24.10.0-1+deb12u1 500
500 https://packages.centreon.com/apt-standard-24.10-stable bookworm/main amd64 Packages
*** 24.04.0-1~bookworm 100
100 /var/lib/dpkg/status

Strangely, on another server the upgrade went without problems


try an apt upgrade without filtering centreon package 🤣

I think there is a missing package … but i don’t know which one.


apt can’t seem to find libmojo

apt install libmojo-ioloop-signal-perl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libmojo-ioloop-signal-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libmojo-ioloop-signal-perl' has no installation candidate

 


This package was actually installed during the upgrade process in my platform.

root@xxxx:/var/log/apt# apt policy libmojo-ioloop-signal-perl
libmojo-ioloop-signal-perl:
  Installed: 0.003-bookworm-1
  Candidate: 0.003-bookworm-1
  Version table:
 *** 0.003-bookworm-1 500
        500 https://packages.centreon.com/apt-plugins-stable bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
     0.003+deb12u1-1 500
        500 https://packages.centreon.com/apt-plugins-stable bookworm/main amd64 Packages

It is normaly available in the plugins repository.


I downloaded it with wget and installed it with dpkg, after that, the upgrade went fine.

It’s strange, because I have the plugins repository enabled:

Hit:5 https://packages.centreon.com/apt-plugins-stable bookworm InRelease

 


Reply