Отличные ответы! Но сегодня мое дело отличается от вашего. Вот мой совет.
Проблема:
Мне не удалось установить apache2 в ubuntu 10.10.
rick@wen-VirtualBox:~$ sudo apt-get install apache2
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:
apache2 : Depends: apache2-mpm-worker (= 2.2.16-1ubuntu3) but it is not going to be installed or
apache2-mpm-prefork (= 2.2.16-1ubuntu3) but it is not going to be installed or
apache2-mpm-event (= 2.2.16-1ubuntu3) but it is not going to be installed or
apache2-mpm-itk (= 2.2.16-1ubuntu3) but it is not going to be installed
Depends: apache2.2-common (= 2.2.16-1ubuntu3) but it is not going to be installed
E: Broken packages
Решение:
Мой путь добавляет зависящий пакет в список установки.
Если «sudo apt-get install apache2» не удалось, попробуйте «sudo apt-get install apache2 apache2.2-common».
Видите? apache2.2-common приходит из журнала ошибок предыдущего шага.
Наконец, я обнаружил, что существует цепочка зависимостей:
apache2.2-common <-- apache2.2-bin <-- libaprutil1-ldap <-- libaprutil1
Для первых 3 пакетов apt-get log сказал мне, что «не будет установлен»,
, но для последнего пакета он показывает «libaprutil1-ldap: Зависит: libaprutil1 (= 1.3.9 + dfsg-3build1), но 1.3.9+ dfsg-3ubuntu0.10.10.1 должен быть установлен '
У меня есть другая версия, существующая в моей lib, поэтому:
sudo apt-get remove libaprutil1
sudo apt-get install apache2
Теперь все в порядке.