У меня есть версия PHP, прикрепленная к 5.2.x. Вот вывод командной строки
php -version
PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Запуск этой команды для установки php5-mhash:
sudo apt-get install php5-mhash
Здесь это сообщение об ошибке
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-mhash: Depends:
php5-common (= 5.2.10.dfsg.1-2ubuntu6.10) but 5.2.10.dfsg.1-2ubuntu6
is to be installed E: Broken packages
Мой вопрос в том, как я могу это исправить? Могу ли я установить более старую версию php5-mhash, и если да, то как это сделать?
Вот результат работы: sudo apt-get install -f:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Просто переименуйте /etc/php5/mods-available/pdo.ini, а также /usr/lib/php5.