想用本手册更新ubuntu12.04上的apache:https://www.ivankrizsan.se/2014/07/17/upgrading-apache-http-server-2-2-to-2-4-on-ubuntu-12-04/
我卸载了apache2.2,现在我想安装Apache2.4,但是我想安装它,我得到了消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
php5-cli : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
php5-curl : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
php5-gd : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
php5-sqlite : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
php5-tidy : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
php5-xmlrpc : Depends: php5-common (= 5.3.10-1ubuntu3.6) but 5.3.10-1ubuntu3.26 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).通过"apt-get -f安装“,我得到了:
invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: error processing phpldapadmin (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
phpldapadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)我不需要phpldapadmin。我能做什么?
发布于 2017-03-14 09:21:52
看起来在5.3.10-1ubuntu3.6版本中仍然安装了一些PHP包,而新的软件包正在尝试安装5.3.10-1ubuntu3.26。这些版本不匹配。请先卸载旧的PHP包:
apt-get remove php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common phpldapadmin可能还有其他PHP包,所以您可能还想使用通配符:
apt-get remove php5-* phpldapadmin删除包后,用新版本重新安装所有内容:
apt-get update
apt-get install php5-cli php5-curl php5-gd php5-sqlite php5-tidy php5-xmlrpc php5-common apache2https://askubuntu.com/questions/891296
复制相似问题