Ad Widget
Collapse
Ubuntu 22.04 unable to install agent 2
Collapse
X
-
As it happens, today I found a 22.04 server still with 7.2 installed, so I upgraded to 7.4.
Code:root@websvr:~# wget https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu22.04_all.deb --2026-03-12 08:45:27-- https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu22.04_all.deb Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001 Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 7336 (7.2K) [application/octet-stream] Saving to: ‘zabbix-release_latest_7.4+ubuntu22.04_all.deb’ zabbix-release_latest_7.4+ubuntu22.04_all.deb 100%[=================>] 7.16K --.-KB/s in 0s 2026-03-12 08:45:27 (2.37 GB/s) - ‘zabbix-release_latest_7.4+ubuntu22.04_all.deb’ saved [7336/7336] root@websvr:~# dpkg -i zabbix-release_latest_7.4+ubuntu22.04_all.deb (Reading database ... 149593 files and directories currently installed.) Preparing to unpack zabbix-release_latest_7.4+ubuntu22.04_all.deb ... Unpacking zabbix-release (1:7.4-1+ubuntu22.04) over (1:7.2-1+ubuntu22.04) ... Setting up zabbix-release (1:7.4-1+ubuntu22.04) ... Configuration file '/etc/apt/sources.list.d/zabbix-release.list' ==> 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. *** zabbix-release.list (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/apt/sources.list.d/zabbix-release.list ... Configuration file '/etc/apt/sources.list.d/zabbix-unstable.list' ==> 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. *** zabbix-unstable.list (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/apt/sources.list.d/zabbix-unstable.list ... Configuration file '/etc/apt/sources.list.d/zabbix.list' ==> 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. *** zabbix.list (Y/I/N/O/D/Z) [default=N] ? y Installing new version of config file /etc/apt/sources.list.d/zabbix.list ... root@websvr:~# l /etc/apt/sources.list.d/ total 36 drwxr-xr-x 2 root root 4096 Mar 12 08:45 . drwxr-xr-x 9 root root 4096 Apr 15 2024 .. -rw-r--r-- 1 root root 58 Mar 12 08:32 bitninja.list -rw-r--r-- 1 root root 40 Apr 15 2024 goaccess.list -rw-r--r-- 1 root root 140 Apr 15 2024 ondrej-ubuntu-php-jammy.list -rw-r--r-- 1 root root 198 Apr 15 2024 rspamd.list -rw-r--r-- 1 root root 173 Jun 30 2025 zabbix-release.list -rw-r--r-- 1 root root 167 Jun 30 2025 zabbix-unstable.list -rw-r--r-- 1 root root 157 Jun 30 2025 zabbix.list root@websvr:~# apt update Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:4 http://apt-beta.bitninja.io/debian bitninja InRelease Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:7 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease Hit:6 https://rspamd.com/apt-stable jammy InRelease Hit:8 https://deb.goaccess.io jammy InRelease Get:9 https://repo.zabbix.com/zabbix/7.4/release/ubuntu jammy InRelease [2459 B] Get:10 https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy InRelease [3938 B] Get:11 https://repo.zabbix.com/zabbix/7.4/release/ubuntu jammy/main Sources [940 B] Get:12 https://repo.zabbix.com/zabbix/7.4/release/ubuntu jammy/main all Packages [626 B] Get:13 https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy/main Sources [15.8 kB] Get:14 https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy/main all Packages [5725 B] Get:15 https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy/main amd64 Packages [30.5 kB] Fetched 59.9 kB in 1s (42.7 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it. root@websvr:~# apt install zabbix-agent2 Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be upgraded: zabbix-agent2 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 5710 kB of archives. After this operation, 502 kB of additional disk space will be used. Get:1 https://repo.zabbix.com/zabbix/7.4/stable/ubuntu jammy/main amd64 zabbix-agent2 amd64 1:7.4.7-1+ubuntu22.04 [5710 kB] Fetched 5710 kB in 2s (3384 kB/s) Reading changelogs... Done debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.) debconf: falling back to frontend: Readline (Reading database ... 149593 files and directories currently installed.) Preparing to unpack .../zabbix-agent2_1%3a7.4.7-1+ubuntu22.04_amd64.deb ... Unpacking zabbix-agent2 (1:7.4.7-1+ubuntu22.04) over (1:7.2.15-1+ubuntu22.04) ... Setting up zabbix-agent2 (1:7.4.7-1+ubuntu22.04) ... Configuration file '/etc/zabbix/zabbix_agent2.conf' ==> 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. *** zabbix_agent2.conf (Y/I/N/O/D/Z) [default=N] ? Installing new version of config file /etc/zabbix/zabbix_agent2.d/plugins.d/mqtt.conf ... Configuration file '/etc/zabbix/zabbix_agent2.d/plugins.d/mysql.conf' ==> 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. *** mysql.conf (Y/I/N/O/D/Z) [default=N] ? Installing new version of config file /etc/zabbix/zabbix_agent2.d/plugins.d/oracle.conf ... Installing new version of config file /etc/zabbix/zabbix_agent2.d/plugins.d/redis.conf ... Processing triggers for man-db (2.10.2-1) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) debconf: falling back to frontend: Readline Scanning processes... Scanning candidates... Scanning linux images... Running kernel seems to be up-to-date. Restarting services... No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. root@websvr:~# systemctl status zabbix-agent2 ● zabbix-agent2.service - Zabbix Agent 2 Loaded: loaded (/lib/systemd/system/zabbix-agent2.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2026-03-12 08:46:41 UTC; 20s ago Main PID: 328271 (zabbix_agent2) Tasks: 10 (limit: 19179) Memory: 11.9M CPU: 41ms CGroup: /system.slice/zabbix-agent2.service └─328271 /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.confComment
-
Code:dpkg -i zabbix-release_latest_7.4+ubuntu22.04_all.deb (Reading database ... 153847 files and directories currently installed.) Preparing to unpack zabbix-release_latest_7.4+ubuntu22.04_all.deb ... Unpacking zabbix-release (1:7.4-1+ubuntu22.04) over (1:7.4-1+ubuntu22.04) ... Setting up zabbix-release (1:7.4-1+ubuntu22.04) ...
Code:[root@server ~] ls -ald `dpkg -L zabbix-release` ls: cannot access '/etc/apt/sources.list.d/zabbix-release.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/zabbix-tools.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/zabbix-unstable.list': No such file or directory ls: cannot access '/etc/apt/sources.list.d/zabbix.list': No such file or directory drwxr-xr-x 21 root root 4096 Dec 18 11:33 /. drwxr-xr-x 113 root root 4096 Feb 17 10:39 /etc drwxr-xr-x 9 root root 4096 Feb 17 10:43 /etc/apt drwxr-xr-x 2 root root 4096 Mar 13 14:54 /etc/apt/sources.list.d drwxr-xr-x 2 root root 4096 Mar 13 14:54 /etc/apt/trusted.gpg.d -rw-r--r-- 1 root root 2275 Jun 30 2025 /etc/apt/trusted.gpg.d/zabbix-official-repo-apr2024.gpg -rw-r--r-- 1 root root 2254 Jun 30 2025 /etc/apt/trusted.gpg.d/zabbix-tools.gpg drwxr-xr-x 14 root root 4096 Sep 11 2024 /usr drwxr-xr-x 122 root root 4096 Dec 22 11:40 /usr/share drwxr-xr-x 758 root root 36864 Feb 17 10:39 /usr/share/doc drwxr-xr-x 2 root root 4096 Mar 13 14:54 /usr/share/doc/zabbix-release -rw-r--r-- 1 root root 6142 Jun 30 2025 /usr/share/doc/zabbix-release/changelog.Debian -rw-r--r-- 1 root root 551 Jun 30 2025 /usr/share/doc/zabbix-release/copyright -rw-r--r-- 1 root root 258 Jun 30 2025 /usr/share/doc/zabbix-release/README.Debian
Code:apt install zabbix-agent2 Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package zabbix-agent2
Last edited by bloodyskullz; 13-03-2026, 22:31.Comment
-
Yeah, that's pretty weird. I have been using Debian and its derivatives for >25 years and I haven't seen dpkg be unable to create a file and yet say nothing! Clearly dpkg knows the files should exist as they are listed in dpkg -L.
If you want to pursue this then all I can suggest is increase the verbosity of dpkg and see if it tells you why it can't create the files.Comment
-
Ideally I would like this resolved and it shouldn't be doing this at all which is definitely weird.
More verbosity would be the -v argument?Comment
-
Try -D10 to start with.
Code:$ dpkg -Dhelp dpkg debugging option, --debug=<octal> or -D<octal>: Number Ref. in source Description 1 general Generally helpful progress information 2 scripts Invocation and status of maintainer scripts 10 eachfile Output for each file processed 100 eachfiledetail Lots of output for each file processed 20 conff Output for each configuration file 200 conffdetail Lots of output for each configuration file 40 depcon Dependencies and conflicts 400 depcondetail Lots of dependencies/conflicts output 10000 triggers Trigger activation and processing 20000 triggersdetail Lots of output regarding triggers 40000 triggersstupid Silly amounts of output regarding triggers 1000 veryverbose Lots of drivel about eg the dpkg/info directory 2000 stupidlyverbose Insane amounts of drivel Debugging options can be mixed using bitwise-or. Note that the meanings and values are subject to change.Comment
Comment