Zabbix Ubuntu: zabbix-agent : Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed
If you have tried to install the Zabbix agent on a Linux server and gotten an error like this, start by checking package repository alignment:
$ apt install zabbix-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zabbix-agent : Depends: libssl1.1 (>= 1.1.1) but 1.1.0g-2ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.
Cause #1: Mismatched Repository
A common cause is a repository mismatch. Check that the package repository you are trying to install from matches your operating system version. Zabbix provides a repository selection tool on its download page.
Cause #2: Missing “-security” Repository
Rarer is a missing repository such as “bionic-security” (or similar for your OS version) which has updated SSL libraries for your version of Ubuntu. “Bionic” in this case is an example for Ubuntu 18.x.
To enable the appropriate -security repo edit /etc/apt/sources.list ala:
sudo nano /etc/apt/sources.list
And uncomment the lines/sources for the -security repository.
Need help with Linux or FreeBSD infrastructure?
A-Team Systems provides engineer-led support for production Linux and FreeBSD environments, including troubleshooting, operational oversight, and ongoing infrastructure management.
Contact A-Team Systems