安装php5-mcrypt时出错
发布时间:2020-12-13 13:11:54 所属栏目:PHP教程 来源:网络整理
导读:就在今天,我注册了Google Cloud Compute Engine.我做了一切,但后来我在安装php5-mcrypt扩展时遇到了错误. 错误: root@instance-2:~# sudo apt-get install php5-mcryptReading package lists... DoneBuilding dependency tree Reading state information...
就在今天,我注册了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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |