wine will not upgrade to 1.0 due to missing libldap2 package dependency

Asked by Jeremy Akers

Attempting to upgrade to wine 1.0 results in this error from synaptic:

wine:
 Depends: libldap2 (>=2.1.17-1) but it is not installable

I did a search for 'libldap2' and the only package that matches is 'libldap2-dev', which I installed but did not help. I noticed that there is a 'libldap' package (I have version 2.4.7 installed). It's possible this is a bug in the way wine was packaged, I think it should be pointing at 'libldap' instead of 'libldap2'.

Thanks,
-Jeremy

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Mugan
Solved:
Last query:
Last reply:
Revision history for this message
Tony Mugan (tmugan) said :
#1

There should be a libldap2 package in your repository.

I would suggest checking your Software Sources (System menu, Administration)
Got to "Download From" and choose Other, then select the "Choose Best Server" button.
This will attempt to choose the repository mirror that will be fastest for you.

The go back and try to install Wine in synaptic, or try from a terminal

sudo apt-get install libldap2

Revision history for this message
Jeremy Akers (irwinr12) said :
#2

I followed your steps and then tried to install libldap2 again:

jeremy@jeremy-d620:~$ sudo apt-get install libldap2
[sudo] password for jeremy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libldap2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libldap-2.4-2 slapd
E: Package libldap2 has no installation candidate

Still does not install.

For kicks I went back into Synaptic and tried to upgrade wine but still received:

wine:
 Depends: libldap2 (>=2.1.17-1) but it is not installable

Thanks,
-Jeremy

Revision history for this message
Tony Mugan (tmugan) said :
#3

Are you using Ubuntu 7.10 or 8.04?
I can see the libldap2 package at version 2.1.30-13.4 under Ubuntu Hardy Heron 8.04.

Can you post the contents here of your sources

cat /etc/apt/sources.list

Revision history for this message
Jeremy Akers (irwinr12) said :
#4

Hardy 8.04

I did add a source to this file to install IEs4Linux according to the instructions here:
http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu

Specifically the line to add was:

 deb http://wine.budgetdedicated.com/apt edgy main

Could this line be the problem?

Here is the output for the entire file, as requested, I will try removing that source I added and see if that helps.

jeremy@jeremy-d620:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://mirror.imbrandon.com/ubuntu/ hardy main restricted
deb-src http://mirror.imbrandon.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.imbrandon.com/ubuntu/ hardy-updates main restricted
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://mirror.imbrandon.com/ubuntu/ hardy universe
deb-src http://mirror.imbrandon.com/ubuntu/ hardy universe
deb http://mirror.imbrandon.com/ubuntu/ hardy-updates universe
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-updates universe
deb http://wine.budgetdedicated.com/apt edgy main

## 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://mirror.imbrandon.com/ubuntu/ hardy multiverse
deb-src http://mirror.imbrandon.com/ubuntu/ hardy multiverse
deb http://mirror.imbrandon.com/ubuntu/ hardy-updates multiverse
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe 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 hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://mirror.imbrandon.com/ubuntu/ hardy-security main restricted
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-security main restricted
deb http://mirror.imbrandon.com/ubuntu/ hardy-security universe
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-security universe
deb http://mirror.imbrandon.com/ubuntu/ hardy-security multiverse
deb-src http://mirror.imbrandon.com/ubuntu/ hardy-security multiverse

Revision history for this message
Jeremy Akers (irwinr12) said :
#5

Ok, removing that source removed the option to upgrade to wine 1.0.

But I still can not install libldap2. Are you sure this package exists in 8.04 and was not obsoleted like the apt-get message said?

-Jeremy

Revision history for this message
Best Tony Mugan (tmugan) said :
#6

Yes, try removing that line for now.

Wine Version 0.5.59 is available from the Ubuntu repositories at the moment.

If that fixes the issue then you could try altering that line to include "hardy" instead of "edgy"

Revision history for this message
Jeremy Akers (irwinr12) said :
#7

Thanks Tony Mugan, that solved my question.

Revision history for this message
Jeremy Akers (irwinr12) said :
#8

The change from "edgy" to "hardy" fixed it, and allowed me to upgrade to wine 1.0 from the wine repos.

Thanks again,
-Jeremy

Revision history for this message
emmawinstone (emma-winstone) said :
#9

i had the same problems. i am a complete newbie but reading this helped me to solve the prob and am now successfully upgraded - just wanted to add a thanks