如何修复 E:无法纠正问题,您持有损坏的包裹

如何修复 E:无法纠正问题,您持有损坏的包裹

我试图在 Ubuntu 14.04.4 上安装 zabbix 3.2.3,但当我输入此命令时

apt-get install zabbix-server-pgsql zabbix-frontend-php

我收到一个错误,请告诉我如何修复它,错误如下:

apt-get install zabbix-server-pgsql zabbix-frontend-phpReading 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-server-pgsql : Depends: libodbc1 (>= 2.3.1) but it is not going to be installed
                       Depends: libsnmp30 (>= 5.7.3+dfsg-1ubuntu4~dfsg) but 5.7.2~dfsg-8.1ubuntu3.2 is to be installed
                       Recommends: postgresql (>= 8.1) but it is not going to be installed
                       Recommends: snmpd but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

root@ubuntu:/home/siwar# sudo apt install -f 

Reading package lists... 
Done Building dependency tree Reading state information... 
Done 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded

答案1

可能是删除或注释掉 /etc/apt/sources.list 中的 zabbix ppa,因为它可能不符合你的 ubuntu 依赖项,然后更新“sudo apt-get update”,sudo“apt-get dist-upgrade”,sudo apt-get“autoremove”,然后“sudo apt-get remove libsnmp30 并重新安装它(libsnmp30)

我不知道 zabbix 是什么,因为我尝试从 ubuntu 存储库安装它,显示 E: 无法找到包 zabbix

如我错了请纠正我

相关内容