我在我的一台测试服务器上安装了 zentyal,但遇到了一些问题,于是我决定将其删除。我从源列表中删除了软件包存储库,并使用apt-get remove zentyal
和apt-get purge zentyal
和apt-get autoclean && apt-get clean cache
但现在我无法安装任何软件包,因为它抱怨软件包的依赖关系被 zentyal 替换,例如
The following packages have unmet dependencies:
bind9 : Depends: libbind9-90 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
Depends: libdns100 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
Depends: libisc95 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
Depends: libisccc90 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
Depends: libisccfg90 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
Depends: liblwres90 (= 1:9.9.5.dfsg-3ubuntu0.5) but 2:9.9.5.dfsg-3+zentyal is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
在你的情况下,你必须降级每个包
sudo apt-get update
sudo apt-get install libbind9-90=1:9.9.5.dfsg-3ubuntu0.5 libdns100=1:9.9.5.dfsg-3ubuntu0.5 libisc95=1:9.9.5.dfsg-3ubuntu0.5 libisccc90=1:9.9.5.dfsg-3ubuntu0.5 libisccfg90=1:9.9.5.dfsg-3ubuntu0.5 liblwres90