我正在尝试在我的 Ubuntu 上安装 Zabbix 监控系统。但是当我尝试安装它时。我收到此错误:
The following have unmet dependencies:
zabbix-server-mysql : Depends: libsnmp15 (>= 5.4.3~dfsg) but it is no installable
Reccomends snmptt but it is not going to be installed
Unable to correct problems, you have held broken packages.
我已经尝试过了:
apt-get update -f
apt-get install snmpd -f
但似乎没有什么效果,有人能帮我解决吗?谢谢
答案1
从现有的 Ubuntu 12.04.3 LTS 安装开始,Zabbix 可以按照以下方式安装:
wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb
dpkg -i zabbix-release_2.2-1+precise_all.deb
apt-get update
然后,安装服务器和 Web 前端:
apt-get install zabbix-server-mysql zabbix-frontend-php
仅安装 Zabbix 代理:
apt-get install zabbix-agent
答案2
首先删除zabbix.list
sudo rm /etc/apt/sources.list.d/zabbix.list
然后运行文档中的命令(运行 dpkg -i ..... 时回答 Y 或 I):
# wget http://repo.zabbix.com/zabbix/2.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.2-1+precise_all.deb
# sudo dpkg -i zabbix-release_2.2-1+precise_all.deb
# sudo apt-get update