如何在16.04上安装ldapsearch?


10

来自Trusty,我习惯了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


尝试sudo apt install -f 然后尝试重新安装。
乔治·乌德森

您可能需要sudo apt update再次运行(如果尚未运行)。
muru

Answers:


4

System Settings> 下浏览了一会儿之后,Software & Updates我曾经记得我从以下来源禁用了安装更新,因为我对频繁中断的弹出式窗口感到有些恼火。我更喜欢从apt终端上手动管理升级,但我不希望它自动将我从16.04升级到16.10或其他版本。我没有意识到的是,这些复选框剥夺了deb软件包的来源,/etc/apt/sources.list因此它永远不会获取软件包更新,并始终报告我的系统是最新的。选中这些框,然后运行apt updateupgrade我能够成功安装ldap-utils

屏幕截图软件和更新从所有安装更新


0

我也面临着同样的问题。

操作系统:Ubuntu 16.04.4 LTS 64 bit

日志:

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.

解决问题的步骤:

  1. 运行命令: sudo apt install -f
  2. 运行命令: sudo apt install ldap-utils

是的,现在我可以看到系统上已安装了ldapsearch

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.