PHP 5.5 в Ubuntu с php5-mcrypt: неудовлетворенные зависимости

У меня есть сервер Ubuntu с PHP 5.5.

$ 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, но как я могу это исправить?

Спасибо!


person tomraithel    schedule 24.09.2014    source источник


Ответы (1)


Убедитесь, что ваши репозитории обновлены:

sudo apt-get update

Возможно, вы держали посылки. Вы можете получить список фактически удерживаемых пакетов с помощью:

dpkg --get-selections | grep hold

И затем вы можете удалить все, что выглядит неправильно:

apt-get remove "package_name"

Кстати, это похоже на пакет php 5.3.

person Michael Duncan    schedule 08.04.2015