Hi Team,
I've found the problems (for my installation) and the solutions (perhaps to be improved).
Problems:
- centreon bookworm packages are not considered as an update but as a downgrade when debian version change
- the perl update doesn't work correctly between debian 11 and debian 12 (@inc is not correct), which creates dependency problems, modules not found, etc.
Solutions:
- force installation of centreon Bookworm packages
- reinstall perl from scratch
@Laurent , can you tell me if it looks good ? if it's good, I think it might be interesting to link or modify this how-to
@TA-FFM & @Jonathan Rio, you can test it if you like...
Good reading
So here's my solution to update Debian 11 / Centreon 24.04.6 logged in as root but if it doesn't work, I have steps to debug :
Step 1 : Update the current installation
apt update
apt upgrade
apt dist-upgrade
Apply the update via the web interface
# To clean up and make sure the update has been applied correctly
apt autoremove
apt autoclean
reboot
At this stage, make sure there are no more updates available and you have a working centreon.
Step 2 : Start update to Bookworm
# Change the repo
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/centreon*
# Passage of the first update phase
apt clean
apt update
apt upgrade --without-new-pkgs
Now we force the installation of Bookworm packages for centreon.
Create file /etc/apt/preferences.d/centreon.pref and add
Package: centreon*
Pin: release n=bookworm
Pin-Priority: 1001
And update centreon packages and others
apt upgrade
# Then, we can delete the pref file
rm -f /etc/apt/preferences.d/centreon.pref
Step 3 : Reinstall Perl and its dependencies
# Uninstall all Perl packages and lib and purge conf
for package in $(dpkg-query -l | grep perl | grep -v centreon | awk -F " " '{print $2}')
do
dpkg -r --force-depends $package
dpkg --purge --force-depends $package
done
Now we can reinstall the necessary
apt --fix-broken install
Step 4 : Finalize Bookworm installation
# Now, the full-upgrade doesn't uninstall centreon packages
apt full-upgrade
apt autoremove
reboot
And apply the update via the web interface
Now we're running Debian 12 / Centreon 24.04.7
Step 5 : Update to Centreon 24.10
# Change centreon repo
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
# Perform update
apt update
apt full-upgrade
# Clean the install
apt autoremove
# Restart to finalize
reboot
And apply the update via the web interface
Sorry @Bastien , had other Tasks to run first.
I tried your way and yes, it works flawlessly. Thank you for your effort.
Regards
Timo
Hello,
@Bastien I tested on my central lab server, your procedure works correctly. Congrats !
@Laurent What is your opinion ?
Regards.
Jonathan.