[ZBX-23836] zabbix-agent and zabbix-agent2 6.4 not installable to Ubuntu 22.04 Jammy LTS due to libc6 required Created: 2023 Dec 13 Updated: 2024 Apr 10 Resolved: 2023 Dec 20 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | None |
Affects Version/s: | 6.4.10 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Kenny Hibberd | Assignee: | Zabbix Development Team |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu 22.04 Jammy LTS |
Attachments: |
![]() |
Team: |
Description |
Steps to reproduce:
Result: sudo apt install zabbix-agent2 The following packages have unmet dependencies: Expected: |
Comments |
Comment by Kenny Hibberd [ 2023 Dec 13 ] |
I don't know of a way to safely update LTS to libc6. At least with LTS anyway. So it seems that the Zabbix Agent was compiled with a libc6 version that is incompatible with Ubuntu 22.04. Please correct me if I have overlooked something. |
Comment by Kenny Hibberd [ 2023 Dec 13 ] |
I suppose the package also listed libssl3 as a dependency problem. That's not as big of an issue for me personally, but I suppose that's a problem as well maybe. |
Comment by Jurijs Klopovskis [ 2023 Dec 14 ] |
What's the output of cat /etc/apt/sources.list.d/zabbix.list ? |
Comment by Kenny Hibberd [ 2023 Dec 16 ] |
I apologize for taking so long to get back to you. This is a development server and I have very long shifts. sudo cat /etc/apt/sources.list.d/zabbix.list
|
Comment by Kenny Hibberd [ 2023 Dec 16 ] |
I didn't see your reply right away. I'm truly very sorry for not getting back to you. I hope you don't need anything else from this server. It need to install a different OS for a project. I can setup a different server to continue testing this Sunday if that would help. |
Comment by Jurijs Klopovskis [ 2023 Dec 18 ] |
Repo file on your system seems OK. |
Comment by Kenny Hibberd [ 2023 Dec 19 ] |
I ended up moving this server back to Ubuntu 22.04 and had to compile the agent from source on that machine. I'm rather surprised that you haven't been getting more complaints or flak for this issue? I created a Debian package for it here: zabbix_6.4.10-1_amd64.deb I had to upgrade the go environment to a higher version than what the standard Ubuntu repo contained to compile it, but otherwise I didn't have any trouble. This deb package installs to the config file to /usr/local/etc/zabbix_agent2.conf and the binary to /usr/local/sbin/zabbix_agent2 This package doesn't have a startup service configuration however, so I created a config file at /etc/systemd/system/zabbix-agent2.service with the following contents: [Unit] Description=Zabbix Agent 2 After=syslog.target After=network.target [Service] Type=simple User=zabbix ExecStart=/usr/local/sbin/zabbix_agent2 -c /usr/local/etc/zabbix_agent2.conf [Install] WantedBy=multi-user.target
When the repo is working again, I will uninstall this from my system.
|
Comment by Jurijs Klopovskis [ 2023 Dec 19 ] |
On an up-to date clean VM root@ubuntu2204:~# cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.3 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy root@ubuntu2204:~# apt install zabbix-agent2 zabbix-agent2-plugin-* Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'zabbix-agent2-plugin-mongodb' for glob 'zabbix-agent2-plugin-*' Note, selecting 'zabbix-agent2-plugin-postgresql' for glob 'zabbix-agent2-plugin-*' The following NEW packages will be installed: zabbix-agent2 zabbix-agent2-plugin-mongodb zabbix-agent2-plugin-postgresql 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 10.7 MB of archives. After this operation, 35.8 MB of additional disk space will be used. Get:1 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main amd64 zabbix-agent2 amd64 1:6.4.10-1+ubuntu22.04 [5,095 kB] Get:2 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main amd64 zabbix-agent2-plugin-mongodb amd64 1:6.4.10-1+ubuntu22.04 [3,120 kB] Get:3 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main amd64 zabbix-agent2-plugin-postgresql amd64 1:6.4.10-2+ubuntu22.04 [2,509 kB] Fetched 10.7 MB in 5s (2,105 kB/s) Selecting previously unselected package zabbix-agent2. (Reading database ... 110691 files and directories currently installed.) Preparing to unpack .../zabbix-agent2_1%3a6.4.10-1+ubuntu22.04_amd64.deb ... Unpacking zabbix-agent2 (1:6.4.10-1+ubuntu22.04) ... Selecting previously unselected package zabbix-agent2-plugin-mongodb. Preparing to unpack .../zabbix-agent2-plugin-mongodb_1%3a6.4.10-1+ubuntu22.04_amd64.deb ... Unpacking zabbix-agent2-plugin-mongodb (1:6.4.10-1+ubuntu22.04) ... Selecting previously unselected package zabbix-agent2-plugin-postgresql. Preparing to unpack .../zabbix-agent2-plugin-postgresql_1%3a6.4.10-2+ubuntu22.04_amd64.deb ... Unpacking zabbix-agent2-plugin-postgresql (1:6.4.10-2+ubuntu22.04) ... Setting up zabbix-agent2-plugin-postgresql (1:6.4.10-2+ubuntu22.04) ... Setting up zabbix-agent2-plugin-mongodb (1:6.4.10-1+ubuntu22.04) ... Setting up zabbix-agent2 (1:6.4.10-1+ubuntu22.04) ... Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent2.service → /lib/systemd/system/zabbix-agent2.service. Processing triggers for man-db (2.10.2-1) ... Scanning processes... Scanning linux images...Running kernel seems to be up-to-date.No services need to be restarted.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@ubuntu2204:~# root@ubuntu2204:~# ldd /usr/sbin/zabbix_agent2 linux-vdso.so.1 (0x00007ffcef080000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4ba3bff000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f4ba3b68000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4ba3b4c000) libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f4ba3aa8000) libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f4ba3665000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4ba343d000) /lib64/ld-linux-x86-64.so.2 (0x00007f4ba3cee000) root@ubuntu2204:~# apt show zabbix-agent2 ... Depends: libc6 (>= 2.34), libpcre2-8-0 (>= 10.22), libssl3 (>= 3.0.0~~alpha1), zlib1g (>= 1:1.2.0), adduser, lsb-base ... root@ubuntu2204:~# apt show libc6 Package: libc6 Version: 2.35-0ubuntu3.5 Priority: required Section: libs Source: glibc Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> ... root@ubuntu2204:~# apt show libssl3 Package: libssl3 Version: 3.0.2-0ubuntu1.12 Priority: required Section: libs Source: openssl Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> ... Core system packages seem to be messed up on your system. |
Comment by Kenny Hibberd [ 2023 Dec 19 ] |
You are correct. I was looking at the major release number 22.04 thinking that was Jammy when a simple cat /etc/apt/sources.list would make it crystal clear I am using Focal, not Jammy. I will be sure to verify such things in the future rather than bothering you. My apologies. |
Comment by Kenny Hibberd [ 2023 Dec 19 ] |
I think this is the first bug report I have ever created to any opensource community however, and it was a huge learning experience. I just now learned that the Ubuntu major release numbers just refer to the year and month and therefore cannot be used to determine the major release. My apologies. |
Comment by Jurijs Klopovskis [ 2023 Dec 20 ] |
No worries. This happens quite a lot. |