使用SSH在AWS上安装mongodb时出错

时间:2018-04-18 09:02:03

标签: mongodb amazon-web-services amazon-ec2

我正在 A.W.S。为我的 MEAN 堆栈网站安装 mongodb 。 为此我遵循它的官方文档here

在此(sudo yum install -y mongodb-org)步骤之后,我收到此错误。 错误是:

我在 google stackoverflow 上搜索了此错误,但发现了类似的问题但不完全正确,例如here

Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.3)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2()(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libc.so.6(GLIBC_2.9)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: openssl
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: openssl
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10()(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.4)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.12)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1()(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: rtld(GNU_HASH)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1()(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.0)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_4.2.0)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.4)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: rtld(GNU_HASH)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_4.2.0)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: rtld(GNU_HASH)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.3)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: /bin/bash
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.3)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libc.so.6(GLIBC_2.9)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libc.so.6(GLIBC_2.9)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_4.2.0)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: openssl
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: librt.so.1()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.3)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libc.so.6(GLIBC_2.9)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_4.2.0)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.4)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2()(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.12)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2()(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libm.so.6()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: /bin/sh
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.12)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.3)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0(GLIBC_2.12)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1()(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit)
Error: Package: mongodb-org-shell-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10(libssl.so.10)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: rtld(GNU_HASH)
Error: Package: mongodb-org-mongos-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libpthread.so.0()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2(GLIBC_2.2.5)(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libgcc_s.so.1(GCC_3.3)(64bit)
Error: Package: mongodb-org-tools-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libdl.so.2()(64bit)
Error: Package: mongodb-org-server-3.4.14-1.amzn1.x86_64 (mongodb-org-3.4)
           Requires: libssl.so.10()(64bit)

在此错误之前,我已完成这些依赖项:

--> Processing Dependency: libcrypto.so.10()(64bit) for package: mongodb-org-too
ls-3.4.14-1.amzn1.x86_64
--> Processing Dependency: /bin/bash for package: mongodb-org-server-3.4.14-1.am
zn1.x86_64
--> Processing Dependency: /bin/sh for package: mongodb-org-server-3.4.14-1.amzn
1.x86_64
--> Processing Dependency: /bin/sh for package: mongodb-org-server-3.4.14-1.amzn
1.x86_64
--> Finished Dependency Resolution

在配置数据包管理器的步骤中,给出了以下行路径,

/etc/yum.repos.d/mongodb-org-3.6.repo

但是在等号中没有yum.repos.d目录而是yum/repos.d/,所以我在其中创建了一个文件mongodb-org-3.6.repo并输入了现场给出的信息。 我尝试过不同的版本来安装它并制作不同的文件并最终删除它们。

我已尝试过其他方法在A.W.S上安装mongodb,例如来自here。 我发现安装的另一个网站是this。 但是我在sudo apt update之后收到了错误:

ubuntu@ip-172-31-37-170:~$ sudo apt update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/mongodb-org-3.4.list (
Component)
E: The list of sources could not be read.

我发现他们在上一步中使用的链接是404,所以我手动尝试了不同的组合,发现这是修改过的链接https://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.4/multiverse/,我尝试更改它并更新但仍然有一些不同的错误。 任何人都可以使用 ssh ubuntu 提供解决方案以消除上述错误或在 AWS 上安装 mongodb 的方法 EM>)。

0 个答案:

没有答案