LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Unable to install openldap in debain based elementary OS (http://www.linuxquestions.org/questions/linux-desktop-74/unable-to-install-openldap-in-debain-based-elementary-os-4175467373/)

yurmuki 06-25-2013 04:15 PM

Unable to install openldap in debain based elementary OS
 
Hi while installing openldap when i enter the command:
"apt-get install slapd"
I get the following output
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:
slapd : Depends: libldap-2.4-2 (= 2.4.28-1.1ubuntu4.1) but 2.4.28-1.1ubuntu4.2 is to be installed
E: Unable to correct problems, you have held broken packages.


Please help.

evo2 06-27-2013 01:49 AM

Hi,

we should be able to help you, but need more information. So, I have a few questions.

- Did you do an "apt-get update" before doing "apt-get install slapd"?
- Have you done and "apt-get upgrade" recently?
- Have you installed any packages "by hand"? (Eg download .deb from random place and install)?
- Can you post your /etc/apt/sources.list and /etc/apt/sources.list.d/* (if any)
- You say this is "debian based" yet the package version strings have "ubuntu" in them": can you explain why?

Evo2.

yurmuki 06-27-2013 05:00 AM

Hi Evo,
 
Thanks for the reply.

I run update and upgrade just before running this command. I want to install "openldap" and for this I am running the command apt-get install slapd.

Below is the output of sources list.
I am running this distro:

http://elementaryos.org/

root@hiweed:/home/waqas# cat /etc/apt/sources.list
# deb cdrom:[elementary OS 0.2 _Luna_ - Beta 2 i386 (20130506)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://pk.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pk.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://pk.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise universe
deb http://pk.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://pk.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://pk.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://pk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://pk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

Thanks.


All times are GMT -5. The time now is 01:27 PM.