[SERVER-35277] debian 9 support Created: 29/May/18  Updated: 27/Oct/23  Resolved: 31/May/18

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.6.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Aleksey Shirokih Assignee: Zakhar Kleyman
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Hey!

i am trying to install mongodb 3.6 from http://repo.mongodb.org/apt/debian/ to my clean debian9 vm.

i got this error

# apt install  mongodb-org mongodb-org-server  mongodb-org-shell mongodb-org-tools 
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-mongos but it is not going to be installed
 mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
 mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
 mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
 
 

 

that is why

# apt-cache show mongodb-org-server
Package: mongodb-org-server
Source: mongodb-org
Version: 3.6.5
Architecture: amd64
Maintainer: Ernie Hershey <ernie.hershey@mongodb.com>
Installed-Size: 57883
Depends: libc6 (>= 2.18), libgcc1 (>= 1:4.1.1), libssl1.0.0 (>= 1.0.1), adduser, tzdata
 

but there are no package with name libssl1.0.0 and version >= 1.0.1

debian 9 has only

# apt-cache search libssl
cl-plus-ssl - Common Lisp interface to OpenSSL
dcmtk - OFFIS DICOM toolkit command line utilities
libdcmtk-dev - OFFIS DICOM toolkit development libraries and headers
libdcmtk8 - OFFIS DICOM toolkit runtime libraries
libssl-ocaml - OCaml bindings for OpenSSL (runtime)
libssl-ocaml-dev - OCaml bindings for OpenSSL
libssl-dev - Secure Sockets Layer toolkit - development files
libssl-doc - Secure Sockets Layer toolkit - development documentation
libssl1.1 - Secure Sockets Layer toolkit - shared libraries
libssl1.0-dev - Secure Sockets Layer toolkit - development files
libssl1.0.2 - Secure Sockets Layer toolkit - shared libraries
perl-openssl-defaults - version compatibility baseline for Perl OpenSSL packages
r-cran-openssl - GNU R toolkit for encryption, signatures and certificates based on OpenSSL
 

"libssl1.0.2" and no "libssl1.0.0"

please fix packet metadata.



 Comments   
Comment by Zakhar Kleyman [ 31/May/18 ]

I'm glad we were able to find the root cause.

I'll close this ticket as "works as designed" since there are no issues with the repo or packages.

Comment by Aleksey Shirokih [ 30/May/18 ]

ok. tnx my bad.

that was the root cause

- name: "Add MongoDB repository"
  apt_repository:
    repo: "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/{{mongod_version}} main"
    state: present
    update_cache: "True" 

jessie instaed of

    repo: "deb http://repo.mongodb.org/apt/debian {{ansible_distribution_release}}/mongodb-org/{{mongod_version}} main"
 

that issue can be closed.

Comment by Zakhar Kleyman [ 30/May/18 ]

Hello, Aleksey!

Thank you for reporting this.

I'm not able to reproduce the problem. I tried the following debian versions:

  • 9.0 (Linux ip-10-123-55-209 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u1 (2017-06-18) x86_64 GNU/)
  • 9.1 (Linux ip-10-123-56-100 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux)
  • 9.2 (Linux ip-10-122-11-23 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux)
  • 9.3 (Linux ip-10-123-57-69 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3 (2017-12-03) x86_64 GNU/Linux)
  • 9.4 (Linux stretch 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux)

I get libssl1.1 on all of them

$ apt-cache show mongodb-org-server
Package: mongodb-org-server
Source: mongodb-org
Version: 3.6.5
Architecture: amd64
Maintainer: Ernie Hershey <ernie.hershey@mongodb.com>
Installed-Size: 57900
Depends: libc6 (>= 2.18), libgcc1 (>= 1:4.2), libssl1.1 (>= 1.1.0), adduser, tzdata

What does your 3.6 repo file (/etc/apt/sources.list.d/mongodb-org-3.6.list) look like? Is it possible that you're using debian 8 (jessie) repo on debian 9?

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