安装php5-mcrypt时出错

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了安装php5-mcrypt时出错脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
就在今天,我注册GOOGLE Cloud Compute Engine.我做了一切,但后来我在安装PHP5-mcrypt扩展时遇到了错误.
错误
root@instance-2:~# sudo apt-get install PHP5-mcrypt
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:
 PHP5-mcrypt : Depends: PHPapi-20121212
               Depends: PHP5-common (= 5.5.24+DFsg-1+deb.sury.org~vivid+1) but 5.6.4+dfsg-4ubuntu6 is to be installed
E: Unable to correct PRoblems,you have held broken packages.

我到处搜索,然后我来到这里.请帮忙.

sudo service apache2 restar
apt-get install PHP5-common

或者,如果您不需要保持配置:

apt-get purge PHP5-common
apt-get install PHP5-common

你从apt-mark showhold获得任何输出吗?

如果它无法解决您的问题,您应该尝试使用aptitude进行安装:

sudo apt-get install aptitude
sudo aptitude install PHP5-mcrypt

最后重新安装服务器

sudo service apache2 restart

脚本宝典总结

以上是脚本宝典为你收集整理的安装php5-mcrypt时出错全部内容,希望文章能够帮你解决安装php5-mcrypt时出错所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。