安装 s3fs 后在 Amazon Linux 上运行挂载时出现错误(未找到挂载所需的“MOUNT_2.22”)

安装 s3fs 后在 Amazon Linux 上运行挂载时出现错误(未找到挂载所需的“MOUNT_2.22”)

已关注这些说明如何在 Amazon Linux 上安装 s3fs

它在我的一个系统上运行良好,但在另一个系统上(按照相同的说明)运行 /bin/mount 时出现以下错误

[root@ip-10-99-1-35 lib64]# mount
mount: /lib64/libmount.so.1: version `MOUNT_2.21' not found (required by mount)
mount: /lib64/libmount.so.1: version `MOUNT_2.22' not found (required by mount)
mount: /lib64/libmount.so.1: version `MOUNT_2.20' not found (required by mount)

编辑:我应该提到,它只得到了上述错误之一(2.20),然而,当我开始遇到问题时,我尝试安装版本 v2.21 和 v2.22 的 util-linux 源包。

在挂载上运行 ldd,我得到了这个

[root@ip-10-99-1-35 lib64]# ldd /bin/mount
/bin/mount: /lib64/libmount.so.1: version `MOUNT_2.21' not found (required by /bin/mount)
/bin/mount: /lib64/libmount.so.1: version `MOUNT_2.22' not found (required by /bin/mount)
/bin/mount: /lib64/libmount.so.1: version `MOUNT_2.20' not found (required by /bin/mount)
    linux-vdso.so.1 =>  (0x00007fff507ff000)
    libmount.so.1 => /lib64/libmount.so.1 (0x00007f5e9331a000)
    libblkid.so.1 => /lib64/libblkid.so.1 (0x00007f5e930f9000)
    libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f5e92ef4000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f5e92b62000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5e93533000)

/lib64 中的相应文件

lrwxrwxrwx 1 root root     17 Jul 30 15:25 /lib64/libmount.so.1 -> libmount.so.1.1.0
-rwxr-xr-x 1 root root  61728 Jul 28  2011 /lib64/libmount.so.1.1.0

发行版信息

[ec2-user@ip-10-99-1-35 ~]$ cat /etc/issue
Amazon Linux AMI release 2012.03
Kernel \r on an \m

[ec2-user@ip-10-99-1-35 ~]$ uname -a
Linux ip-10-99-1-35 3.2.20-1.29.6.amzn1.x86_64 #1 SMP Tue Jun 12 01:19:28 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

答案1

我通过重新安装 util-linux 包解决了这个问题。

yum reinstall util-linux

相关内容