[SERVER-24484] MongoDB 3.2.7 can not be installed on debian wheezy Created: 09/Jun/16  Updated: 14/Jul/16  Resolved: 15/Jun/16

Status: Closed
Project: Core Server
Component/s: Build, Packaging
Affects Version/s: 3.2.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Kedves Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Steps To Reproduce:

I've setup the MongoDB repository on a Debian 7.6 (wheezy) VirtualBox VM instance.

root@packer-debian-7:~# cat /etc/apt/sources.list.d/mongodb.list
deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main

(imported asc key.. apt-get update)

But it seems It is not possible to install because of a libc6 dependency error:

root@packer-debian-7:~# DEBIAN_FRONTEND=noninteractive LC_ALL=C apt-get -o Dpkg::Options::='--force-confnew' -y --force-yes install mongodb-org 2>&1
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:
 mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
               Depends: mongodb-org-server but it is not going to be installed
               Depends: mongodb-org-mongos but it is not going to be installed
               Depends: mongodb-org-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@packer-debian-7:~# DEBIAN_FRONTEND=noninteractive LC_ALL=C apt-get -o Dpkg::Options::='--force-confnew' -y --force-yes install mongodb-org mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools 2>&1
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:
 mongodb-org-mongos : Depends: libc6 (>= 2.14) but 2.13-38+deb7u7 is to be installed
 mongodb-org-server : Depends: libc6 (>= 2.14) but 2.13-38+deb7u7 is to be installed
 mongodb-org-shell : Depends: libc6 (>= 2.14) but 2.13-38+deb7u7 is to be installed
 mongodb-org-tools : Depends: libc6 (>= 2.14) but 2.13-38+deb7u7 is to be installed
E: Unable to correct problems, you have held broken packages.
 
 
root@packer-debian-7:~# apt-cache policy mongodb-org-server | head -n6
mongodb-org-server:
  Installed: (none)
  Candidate: 3.2.7
  Version table:
     3.2.7 0
        500 http://repo.mongodb.org/apt/debian/ wheezy/mongodb-org/3.2/main amd64 Packages

Participants:

 Description   

mongodb-org-server : Depends: libc6 (>= 2.14) but 2.13-38+deb7u11 is to be installed

My debian7 system doesn't have such a libc version, so something is not okay with the deb packaging for wheezy.

(
I used the following APT repo:
deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main
)



 Comments   
Comment by Ramon Fernandez Marina [ 17/Jun/16 ]

Thanks for the feedback kedazo, glad to hear you're up and running now.

Comment by David Kedves [ 17/Jun/16 ]

Yes now it looks fine, thanks for fixing!

Br,
David

Comment by Ramon Fernandez Marina [ 15/Jun/16 ]

kedazo, this issue was affecting Debian Wheeze only and we've generated new packages to fix the problem. You may need to uninstall the package and run apt-get clean before reinstalling the package if you have already installed one of the defective packages; then, installing the mongodb-org package should work, as per-normal.

Thanks for reporting the issue, and apologies for the inconvenience.

Regards,
Ramón.

Comment by Ramon Fernandez Marina [ 09/Jun/16 ]

kedazo, we believe we've identified the source of the issue and are working on a fix. Please continue to watch this ticket for updates.

Thanks,
Ramón.

Comment by David Kedves [ 09/Jun/16 ]

Well wheezy only have libc6 =2.13-38+deb7u11 (source: https://packages.debian.org/wheezy/libc6 ) while mongo packages
have depends line like "Depends: libc6 (>= 2.14)", so I think this is some kind of packaging problem...

Comment by Ramon Fernandez Marina [ 09/Jun/16 ]

Sorry you're having trouble installing MongoDB kedazo. I tried to reproduce on a Debian 7 machine and everything worked well, only I realized afterwards that I had spawned a Debian 8 (jessie). I'll see if I can get a wheezy box running and try again.

Generated at Thu Feb 08 04:06:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.