3

我试图在我的 Linux Ubuntu 16.04 环境中安装 AWS Session Manager 插件。但是当我将 yum 命令与 rpm 文件一起使用时,不断出现以下错误:

sudo yum install -y session-manager-plugin.rpm


Setting up Install Process
Examining session-manager-plugin.rpm: session-manager-plugin-1.2.279.0-1.x86_64
Marking session-manager-plugin.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package session-manager-plugin.x86_64 0:1.2.279.0-1 will be installed
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.2.5)(64bit) for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: libpthread.so.0(GLIBC_2.2.5)(64bit) for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: libpthread.so.0(GLIBC_2.3.2)(64bit) for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: libc.so.6()(64bit) for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: libpthread.so.0()(64bit) for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Processing Dependency: /bin/sh for package: session-manager-plugin-1.2.279.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: libpthread.so.0()(64bit)
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: libc.so.6(GLIBC_2.2.5)(64bit)
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: libc.so.6()(64bit)
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: libpthread.so.0(GLIBC_2.3.2)(64bit)
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: /bin/sh
Error: Package: session-manager-plugin-1.2.279.0-1.x86_64 (/session-manager-plugin)
       Requires: libpthread.so.0(GLIBC_2.2.5)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

即使我尝试安装这些丢失的软件包,它也不起作用。

AWS CLI 版本 -> aws-cli/1.20.49. Python 版本 -> Python 3.5.2.

我也将/usr/bin/yum文件/usr/bin/python更改/usr/bin/python2为。

4

1 回答 1

0

Yum 不是基于 debian 的发行版(在本例中为 Ubuntu)的正确工具

转到官方网站: https ://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html

然后向下滚动直到“在 Ubuntu Server 上安装 Session Manager 插件”部分。

于 2022-01-25T15:46:33.860 回答