无法在 Debian stretch 上安装 MongoDB 3.4

无法在 Debian stretch 上安装 MongoDB 3.4

我将 mongodb repo 添加到源列表:

deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main

然后apt-get update

当我尝试安装时,mongodb-org出现以下信息:

root@ns:~# aptitude install mongodb-org
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos{ab} mongodb-org-server{ab} mongodb-org-shell{ab} mongodb-org-tools{ab} 
0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.7 MB of archives. After unpacking 269 MB will be used.
The following packages have unmet dependencies:
 mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package and is not provided by any available package

 mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package and is not provided by any available package

 mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package and is not provided by any available package

 mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.1) which is a virtual package and is not provided by any available package

The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     mongodb-org [Not Installed]                        
2)     mongodb-org-mongos [Not Installed]                 
3)     mongodb-org-server [Not Installed]                 
4)     mongodb-org-shell [Not Installed]                  
5)     mongodb-org-tools [Not Installed]                  



Accept this solution? [Y/n/q/?]

aptitude search libssl给了我:

root@ns:~# aptitude search libssl
p   libssl-dev                                                                                                                      - Secure Sockets Layer toolkit - development files                                                                                         
p   libssl-doc                                                                                                                      - Secure Sockets Layer toolkit - development documentation                                                                                 
p   libssl-ocaml                                                                                                                    - OCaml bindings for OpenSSL (runtime)                                                                                                     
v   libssl-ocaml-4e458                                                                                                              -                                                                                                                                          
p   libssl-ocaml-dev                                                                                                                - OCaml bindings for OpenSSL                                                                                                               
v   libssl-ocaml-dev-4e458                                                                                                          -                                                                                                                                          
p   libssl1.0-dev                                                                                                                   - Secure Sockets Layer toolkit - development files                                                                                         
i   libssl1.0.2                                                                                                                     - Secure Sockets Layer toolkit - shared libraries                                                                                          
i   libssl1.1                                                                                                                       - Secure Sockets Layer toolkit - shared libraries

所以我的问题是:如何从某些受信任的存储库在 Debian 9 上安装 MongoDB 3.4?

答案1

我通过添加解决了这个问题jessie-backports

deb http://ftp.debian.org/debian jessie-backports main

/etc/apt/sources.list

这适用于所有 MongoDB 3.x 版本

答案2

以下是对我有帮助的内容。

root@7576d987a795:/# 获得http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb

root@7576d987a795:/#sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb

完成上述步骤后,我就可以安装

root@7576d987a795:/#apt-get 安装 mongodb-org-tools

答案3

答案4

libssl1.1从此 URL下载软件包关联然后安装包

sudo dpkg -i <pkg you downloaded>

然后 mongodb 应该安装

相关内容