2014-09-24 74 views
1

我有一個Ubuntu的服務器用PHP 5.5PHP 5.5在Ubuntu與PHP5-mcrypt的:不能滿足的依賴

$ php -v 
PHP 5.5.3-1ubuntu2 (cli) (built: Oct 9 2013 14:49:12) 
Copyright (c) 1997-2013 The PHP Group 
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies 
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies 

我正嘗試安裝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-20090626 
E: Unable to correct problems, you have held broken packages. 

據我所知,mcrypt軟件包與我目前的PHP版本不兼容,但我該如何解決這個問題?

謝謝!

回答

0

確保您的回購協議是最新:

sudo apt-get update 

你可能已經舉行了包。你可以得到實際持有套餐與列表:

dpkg --get-selections | grep hold 

然後你就可以刪除任何不看的權利:

apt-get remove "package_name" 

BTW - 看起來像一個PHP 5.3包。