I'm trying to fetch the php apc package using pecl and running into a problem that I believe may be caused by OpenVZ. To do so I need php5-dev. When I try to install it via apt-get, I get this:
php5-dev : Depends: libssl-dev but it is not going to be installed
Depends: libtool (>= 2.2) but it is not going to be installed
As I try to manually install dependencies (without success), I believe I've identified libc6-dev as the culprit.
libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.2) but 2.15-0ubuntu10+openvz0 is to be installed
I have libc6 installed on the system. If it's any help here is my sources.list:
deb http://archive.ubuntu.com/ubuntu precise main restricted universe
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted universe
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu precise partner
This is a very frustrating problem, as I have other instances of Ubuntu 12.04 running just fine elsewhere (though not on OpenVZ).
Best Answer
Easy Fix, what you need to do is specify the version of libc6-dev you want to install (the openvz one in this case), and it will install fine.
Heres how to figure out what you want, ok say you are going to do
In this case you want it to install the 2.15-0ubuntu10+openvz0 version, try it again specifying the version like this (notice the =version at the end of the line now):
As you can see here there wound up being 1 more package that it wanted an 'openvz' version for, so i just added that package onto the apt-get install line again specifying the version
And now it works!!!
Hope this helped you out , I ran into it myself a few times and knowing how to fix it PROPERLY can help alot, there are alternative ways to get around the error but this is the 'correct' way.