KB 2808: UPDATE LINUX DEBIAN SYSTEM OF OLFEO VIRTUAL APPLIANCES
Published November 27, 2023Amended on February 29, 2024
Upgrade Debian Linux 9 or 10 to Debian 11 for Olfeo virtual appliances running under VMware/Hyper-V.
We're going to upgrade from Debian 9 to Debian 11.
We'll do this gradually, starting with the upgrade
-> Debian 9 to Debian 10 and then
-> Debian 10 to Debian 11
Attention The machines concerned must be upgraded in a non-production state, one by one, so as not to disrupt your company's network activity.
PROCEDURE
BACKUP THE APPLIANCE AND CHECK THE CURRENT DEBIAN VERSION
- We start by backing up our virtual machine. A snapshot under VMware or Hyper-V is sufficient.
- We then check which Debian version we are on by typing the following command: lsb_release -aResult under Debian 9 :Result under Debian 10 :
- If you're in Debian 10, you can scroll down to the "Upgrade Debian 10 to Debian 11" section.
UPGRADE DEBIAN 9 TO DEBIAN 10
- We start by updating our system :apt update
apt upgrade
apt full-upgrade - We then go to /etc/apt/source.list and replace "stretch" with "buster".
- We rerun the previous commands to retrieve Debian 10 updates :apt update
apt upgrade
apt full-upgradeIf you come across this screen during the upgrade, you can select "Yes". - After the update and upgrade, we can reboot the machine :reboot
- Check that we have upgraded to Debian 10 :lsb_release -a
UPGRADE DEBIAN 10 TO DEBIAN 11
- We start by updating our system :apt update
apt upgrade
apt full-upgrade - We then go to /etc/apt/source.list, where we replace "buster" with "bullseye" and "buster/updates" with "bullseye-security".
Our file should look like this: - We rerun the previous commands to retrieve the Debian 11 updates: apt update
apt upgrade
apt full-upgrade - Once the update and upgrade are complete, we run a command to clean up any unnecessary packages: apt autoremove -purge
- We can now reboot the machine :reboot
- Check that we have upgraded to Debian 11 :lsb_release -a
OLFEO SERVICES VERIFICATION
To check the status of Olfeo services.
We enter the Olfeo chroot:
chroot /opt/olfeo/chroot/
We then enter the following command:
./olfeo-status.sh
If any services are not started correctly, you can type the following command to restart the services:
./olfeo-stop.sh && ./olfeo-start.sh