gpt4 book ai didi

php - 安装 php5-mcrypt 时出错

转载 作者:可可西里 更新时间:2023-11-01 12:38:09 25 4
gpt4 key购买 nike

就在今天,我注册了 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 服务 apache2 重启

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

关于php - 安装 php5-mcrypt 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30285453/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com