L’heure est venue de mettre notre serveur Apollo à jour: jusqu’alors sous Ubuntu 22.04 (jammy jellyfish), nous passons à Ubuntu 24.04 LTS (noble numbat).
On installe l’outil de mise à jour Ubuntu:
apt install ubuntu-release-upgrader-core
On vérifie que l’outil est bien configuré pour récupérer la version LTS:
grep 'lts' /etc/update-manager/release-upgrades
# lts - Check to see if a new LTS release is available. The upgrader
Prompt=lts
Code language: PHP (php)
On ajoute une règle pour ufw
pour ouvrir le port 1022 en cas de souci:
sudo ufw allow 1022/tcp comment 'Open port ssh TCP/1022 as failsafe for upgrades'
Rule added
Rule added (v6)
Code language: JavaScript (javascript)
On lance la mise à jour:
sudo do-release-upgrade -d
Checking for a new Ubuntu release
= Welcome to Ubuntu 24.04 LTS 'Noble Numbat' =
The Ubuntu team is proud to announce Ubuntu 24.04 LTS 'Noble Numbat'.
Reading cache
Checking package manager
Continue running under SSH?
This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.
If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?
Continue [yN] y
Starting additional sshd
To make recovery in case of failure easier, an additional sshd will
be started on port '1022'. If anything goes wrong with the running
ssh you can still connect to the additional one.
If you run a firewall, you may need to temporarily open this port. As
this is potentially dangerous it's not done automatically. You can
open the port with e.g.:
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'
To continue please press [ENTER]
Code language: PHP (php)