Ubuntu upgrade OS 22.04 to 24.04 LTS Noble Numbat VM

vmdocker01
 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

telegraf version
Telegraf 1.34.2 (git: HEAD@552f7e20)
zabbix_agentd --version
zabbix_agentd (daemon) (Zabbix) 5.0.17

grafana
mysql

sudo apt update
sudo apt upgrade

sudo do-release-upgrade

A new version (/usr/share/chrony/chrony.conf) of configuration file /etc/chrony/chrony.conf is available
Install the package maintainers version
(it creates a backup of the old)

Configuration file '/etc/default/useradd'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** useradd (Y/I/N/O/D/Z) [default=N] ? D

Y again

Purging configuration files for zabbix-agent (1:5.0.17+dfsg-1) ...
dpkg: warning: while removing zabbix-agent, directory '/etc/zabbix' not empty so not removed

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.


Ok, then.

sudo service telegraf status
● telegraf.service - Telegraf
     Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; preset: enabled)
     Active: active (running) since Fri 2025-05-02 21:09:35 UTC; 1min 53s ago

# no zabbix agent, but conf is there
cd /etc/zabbix/
zabbix_agentd.conf_bck
sudo wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_6.0+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest_6.0+ubuntu24.04_all.deb
sudo apt update -y

cd /etc/zabbix
cat zabbix_agentd.conf | grep "Server="
Server= Private ip of zabbix server
sudo service zabbix-agent stop
sudo service zabbix-agent start

Grafana check and mysql

perfect

Scroll to Top