manjaro-升级到-21.2.4-后,virtualbox-5-无法启动

问题现象: VBoxManage 无法启动

报错:

1
VBoxManage: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

原因分析

glibc 2.33-5 升级到 2.35-2 , 就不包含 libcrypt.so.1

从 aur 安装 yay -S libxcrypt-compat ,就可以解决这个问题。

重要!! 虽然可以使用vbox 5, 但是虚拟机关机后,都现实 aborted 状态。。。一般可以正常启动,偶尔不能启动,重新打开 VBox Manager,又可以启动了。

升级后

1
2
3
4
5
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        21.2.4
Codename:       Qonos
1
pacman -Ql openssl
1
2
3
4
5
6
7
8
$ ldd /usr/bin/openssl 
        linux-vdso.so.1 (0x00007ffd6a917000)
        libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f5be2200000)
        libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f5be1f1f000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f5be1f1a000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f5be1d10000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f5be1d0b000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f5be2376000)
1
2
3
4
5
6
7
8
9
10
11
12
$ pacman -Ss glibc
core/glibc 2.35-2 [installed]
    GNU C Library
core/lib32-glibc 2.35-2 [installed]
    GNU C Library (32-bit)
extra/libnss_nis 3.1-3
    NSS NIS plugin for glibc
extra/nss-mdns 0.15.1-1 [installed]
    glibc plugin providing host name resolution via mDNS

$ pacman -Ql glibc | grep crypt
没有任何 libcrypto.so 相关文件

升级前

1
2
3
4
5
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:        21.2.0
Codename:       Qonos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ ldd /usr/bin/VBoxManage
        linux-vdso.so.1 (0x00007ff9ac3a3000)
        VBoxDDU.so => /opt/VirtualBox/VBoxDDU.so (0x00007ff9ac136000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007ff9ac0ec000)
        VBoxRT.so => /opt/VirtualBox/VBoxRT.so (0x00007ff9ab80a000)
        VBoxXPCOM.so => /opt/VirtualBox/VBoxXPCOM.so (0x00007ff9ab4f3000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff9ab2dd000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ff9ab2c2000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007ff9ab0f4000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007ff9ac3a4000)
        libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007ff9ab0ba000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007ff9ab0a0000)
        librt.so.1 => /usr/lib/librt.so.1 (0x00007ff9ab095000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007ff9ab08e000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007ff9aaf4a000)
1
2
3
4
5
6
7
8
9
10
11
$ ll libcrypt*
-rwxr-xr-x 1 root root   43264  5月 13  2021 libcrypt-2.33.so*
lrwxrwxrwx 1 root root      16  8月 24  2021 libcrypto.so -> libcrypto.so.1.1*
-rwxr-xr-x 1 root root 2990920  8月 24  2021 libcrypto.so.1.1*
lrwxrwxrwx 1 root root      23 10月 26 04:16 libcryptsetup.so -> libcryptsetup.so.12.7.0*
lrwxrwxrwx 1 root root      23 10月 26 04:16 libcryptsetup.so.12 -> libcryptsetup.so.12.7.0*
-rwxr-xr-x 1 root root  475920 10月 26 04:16 libcryptsetup.so.12.7.0*
lrwxrwxrwx 1 root root      17  9月 18 04:37 libcrypt.so -> libcrypt.so.2.0.0*
lrwxrwxrwx 1 root root      16  5月 13  2021 libcrypt.so.1 -> libcrypt-2.33.so*
lrwxrwxrwx 1 root root      17  9月 18 04:37 libcrypt.so.2 -> libcrypt.so.2.0.0*
-rwxr-xr-x 1 root root  186200  9月 18 04:37 libcrypt.so.2.0.0
1
2
$ pacman -F /usr/lib/libcrypt-2.33.so
usr/lib/libcrypt-2.33.so is owned by core/glibc 2.33-5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ pacman -Ss glibc
core/glibc 2.33-5 [installed]
    GNU C Library
core/lib32-glibc 2.33-5 [installed]
    GNU C Library (32-bit)
extra/libnss_nis 3.1-3
    NSS NIS plugin for glibc
extra/nss-mdns 0.15.1-1 [installed]
    glibc plugin providing host name resolution via mDNS
extra/rpcsvc-proto 1.4.2-1
    rpcsvc protocol definitions from glibc
community/aarch64-linux-gnu-glibc 2.34-1
    GNU C Library ARM64 target
community/glibc-locales 2.33-1
    
community/riscv64-linux-gnu-glibc 2.32-1 (risc-v)
    GNU C Library RISCV target
multilib/lib32-nss-mdns 0.14.1-1
    glibc plugin providing host name resolution via mDNS