Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working on a Debian box and trying to install libssl-dev, but am getting the following error when I try. Anybody have a solution?

# sudo apt-get install libssl-dev

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:  
  libssl-dev: Depends: libssl0.9.8 (= 0.9.8g-15+lenny13) but 0.9.8o-4~bpo50+1 is to be installed  
E: Broken packages
share|improve this question

2 Answers 2

up vote 2 down vote accepted

The unmet dependencies statement is the key here. It appears there's a mismatch in the version of libssl the -dev package needs and the version available on whatever repository you're using. The distro specification for the two is different (lenny vs bpo), are you sure your repositories are set up correctly? You could try explicitly specifying a version number (the same one) for both:

sudo apt-get install libssl-dev=0.9.8g-15+lenny13 libssl0.9.8=0.9.8g-15+lenny13

If one isn't in the repo, look at the repos and pick a version that is.

share|improve this answer

Looks like you've got some generational differences in packages - your libssl-dev seems to be trying to install from the main package repository for lenny, while libssl0.9.8 looks like it's already installed from backports.

You'll need to resolve this by getting the versions to where they don't conflict - what do you get from apt-cache policy libssl-dev and apt-cache policy libssl0.9.8, and do you know why this backports version was installed in the first place?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.