无法在Debian Stretch上安装MongoDB 3.4


9

我将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?

Answers:


12

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

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

/etc/apt/sources.list

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


1
希望有一种直接针对拉伸的方法,而不是在拉伸而不是jessie时不使用jessie-backports:/
Hamburml

@Hamburml直到没有正式版本,我认为没有其他办法
ponury-kostek

1

这是帮助我的。

root @ 7576d987a795:/# wget 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 install mongodb-org-tools


1
您是否知道提案的安全性?如果是这样,请花时间添加一些说明行。
gf_

1
我知道拥有libssl1.0.0容易受到内存缓冲区溢出的影响,并且可以用于通过远程代码注入执行拒绝服务。我的回答只是提供一个解决方案,尽管解决后我建议将库更新为libssl1.0.2,其中包含针对Ubuntu 16.04的补丁程序。如果我错过了任何事情,请补充,并感谢您提出这一宝贵的关切
Mansur Ali

deb8u10是我现在找到的版本。
乔·鲍比

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.