Dislocker-fuse requires libruby.so.2.7 and libmbedcrypto.so.3

Current system state

sudo pacman-mirrors -f5 && sudo pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: http://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  1.478 Germany        : https://mirror.atysleaks.org/manjaro/
  1.505 Germany        : http://mirror.atysleaks.org/manjaro/
  3.946 China          : https://mirrors.tuna.tsinghua.edu.cn/manjaro/
  1.498 Poland         : http://ftp.vectranet.pl/manjaro/
  1.184 Poland         : ftp://ftp.vectranet.pl/manjaro/
  1.572 Belgium        : http://ftp.belnet.be/mirrors/manjaro/repos/
  1.202 Belgium        : ftp://ftp.belnet.be/mirrors/manjaro/repos/
  ..... Netherlands    : https://manjaro.mirrors.lavatech.top/

::ERROR Connection: HTTPSConnectionPool(host='manjaro.mirrors.lavatech.top', port=443): Read timed out. (read timeout=4)

  ..... Netherlands    : http://manjaro.mirrors.lavatech.top/
::INFO Writing mirror list
::Poland          : http://ftp.vectranet.pl/manjaro/stable
::Belgium         : http://ftp.belnet.be/mirrors/manjaro/repos/stable
::Germany         : https://mirror.atysleaks.org/manjaro/stable
::Netherlands     : https://manjaro.mirrors.lavatech.top/stable
::China           : https://mirrors.tuna.tsinghua.edu.cn/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                                                                       166.0 KiB   461 KiB/s 00:00 [#############################################################] 100%
 extra                                                                     1980.8 KiB  3.58 MiB/s 00:01 [#############################################################] 100%
 community                                                                    6.6 MiB  4.35 MiB/s 00:02 [#############################################################] 100%
 multilib                                                                   179.5 KiB  5.84 MiB/s 00:00 [#############################################################] 100%
:: Starting full system upgrade...
 there is nothing to do

Here’s the error when I try to mount BitLocker encrypted partition:

dislocker-fuse: error while loading shared libraries: libruby.so.2.7: cannot open shared object file: No such file or directory

These are the contents:

ls /usr/lib/librub*
librubberband-jni.so  librubberband.so  librubberband.so.2  librubberband.so.2.1.3  libruby.so  libruby.so.3.0  libruby.so.3.0.1

Fixed with this:

ln -s /usr/lib/libruby.so /usr/lib/libruby.so.2.7

So now:

ls -l /usr/lib/librub*
-rwxr-xr-x 1 root root  218984 Mar 12 19:16 /usr/lib/librubberband-jni.so
lrwxrwxrwx 1 root root      18 Mar 12 19:16 /usr/lib/librubberband.so -> librubberband.so.2
lrwxrwxrwx 1 root root      22 Mar 12 19:16 /usr/lib/librubberband.so.2 -> librubberband.so.2.1.3
-rwxr-xr-x 1 root root  218984 Mar 12 19:16 /usr/lib/librubberband.so.2.1.3
lrwxrwxrwx 1 root root      16 Apr  5 18:35 /usr/lib/libruby.so -> libruby.so.3.0.1
lrwxrwxrwx 1 root root      19 Apr 25 10:00 /usr/lib/libruby.so.2.7 -> /usr/lib/libruby.so
lrwxrwxrwx 1 root root      16 Apr  5 18:35 /usr/lib/libruby.so.3.0 -> libruby.so.3.0.1
-rwxr-xr-x 1 root root 3598904 Apr  5 18:35 /usr/lib/libruby.so.3.0.1

This is an AUR package that need to be rebuilded against the current system ruby version which is 3.0.0

Delete the symlink and rebuild dislocker, there is also a pkgbuild with no ruby dependency dislocker-noruby

1 Like

Maybe even try to install ruby2.7 if the rebuild of the original app does not work.

Tried removing the symlink, but still doesn’t work, because installed library is 2.7.so, not so.2.7:

sudo rm /usr/lib/libruby.so.2.7
# install ruby2.7
ls -l /usr/lib/libru*
-rwxr-xr-x 1 root root    218984 Mar 12 19:16 /usr/lib/librubberband-jni.so
lrwxrwxrwx 1 root root        18 Mar 12 19:16 /usr/lib/librubberband.so -> librubberband.so.2
lrwxrwxrwx 1 root root        22 Mar 12 19:16 /usr/lib/librubberband.so.2 -> librubberband.so.2.1.3
-rwxr-xr-x 1 root root    218984 Mar 12 19:16 /usr/lib/librubberband.so.2.1.3
lrwxrwxrwx 1 root root        20 Apr  5 18:09 /usr/lib/libruby-2.7.so -> libruby-2.7.so.2.7.3
lrwxrwxrwx 1 root root        20 Apr  5 18:09 /usr/lib/libruby-2.7.so.2.7 -> libruby-2.7.so.2.7.3
-rwxr-xr-x 1 root root   3430952 Apr  5 18:09 /usr/lib/libruby-2.7.so.2.7.3
lrwxrwxrwx 1 root root        16 Apr  5 18:35 /usr/lib/libruby.so -> libruby.so.3.0.1
lrwxrwxrwx 1 root root        16 Apr  5 18:35 /usr/lib/libruby.so.3.0 -> libruby.so.3.0.1
-rwxr-xr-x 1 root root   3598904 Apr  5 18:35 /usr/lib/libruby.so.3.0.1
-rw-r--r-- 1 root root 116112968 Mar 25 16:07 /usr/lib/librustc_driver-1de261767755d399.so

Somebody tell me how to report this bug? AUR related?

Fixed with this now:

cd /usr/lib/
sudo ln -s libruby-2.7.so libruby.so.2.7

Another issue:

dislocker-fuse: error while loading shared libraries: libmbedcrypto.so.3: cannot open shared object file: No such file or directory

Patch:

sudo ln -s /usr/lib/libmbedcrypto.so.6 /usr/lib/libmbedcrypto.so.3

You need to rebuild the package

1 Like

How do I do that? I use the integrated system updater (graphical).

Disinstall, then re-install (I don’t know if the graphical updater is caching or not the builded packages, in that case it need to be deleted)

So do I use pacman or pamac from terminal as root?

Fixed both lib issues with dislocker 0.7.3-2 without the need to make any symlink. Thanks a lot.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.