Приезжая от Надежного человека, я привык к ldapsearch, но мне не установили его на моей новой установке Xerus:
Программа 'ldapsearch' в настоящее время не устанавливается. Можно установить его путем ввода:
sudo apt install ldap-utils
Но к сожалению это приводит к способному конфликту, который я не знаю, как решить.
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:
ldap-utils : Depends: libldap-2.4-2 (= 2.4.42+dfsg-2ubuntu3) but 2.4.42+dfsg-2ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Что я должен сделать для установки ldapsearch?
После рытья вокруг некоторое время под System Settings
> Software & Updates
я помнил когда-то давно, что отключил обновления установки из следующих источников, потому что я стал немного раздражаемым из-за частых всплывающих окон прерывания для обновления. Я предпочитаю справляться со своими обновлениями вручную от apt
на терминале, и я не хотел, чтобы он автоматически обновил меня от 16,04 до 16,10 или некоторый другой выпуск. То, что я не понял, - то, что эти флажки разделили deb источники пакета от /etc/apt/sources.list
, таким образом, это никогда не будет выбирать обновления пакета и всегда сообщать, что моя система была актуальна. После устанавливания тех флажков и затем выполнения apt update
и upgrade
я смог успешно установить ldap-utils
Я тоже столкнулся с той же проблемой.
ОС: Ubuntu 16.04.4 LTS 64 бит
Журналы:
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:
ldap-utils : Depends: libldap-2.4-2 (= 2.4.42+dfsg-2ubuntu3) but 2.4.42+dfsg-2ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Шаги, решившие проблему:
sudo apt install -f
sudo apt install ldap-utils
Да, теперь я вижу, что ldapsearch установлен в моей системе
sudo apt install aptitude
sudo aptitude install ldap-utils
Keep the following packages at their current version:
1) ldap-utils [Not Installed]
Accept this solution? [Y/n/q/?] **n**
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libldap-2.4-2 [2.4.49+dfsg-2ubuntu1.3 (now) -> 2.4.49+dfsg-2ubuntu1.2 (fo
Accept this solution? [Y/n/q/?] **Y**