You are not logged in.

#1 2017-12-16 13:19:22

Bronek
Member
From: London
Registered: 2014-02-14
Posts: 119

[SOLVED] cryptsetup 2.0 breaks systemd

My system became unusable after upgrade of cryptsetup to version 2.0 . It turns out that systemd has a dependency on libcryptsetup.so.4 , and this file is replaced by cryptsetup 2 with libcryptsetup.so.12 . This breaks systemd .

The "good" news is that I was also prevented from gracefully restarting system, and was able to recover by reverting to older version (before potentially very problematic system restart).

root@kartuzy ~ # pacman -Sy cryptsetup
:: Synchronising package databases...
 repo-local                                                                          14.7 KiB  4.80M/s 00:00 [################################################################] 100%
 core is up to date
 extra is up to date
 community is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) cryptsetup-2.0.0-1

Total Installed Size:  1.41 MiB
Net Upgrade Size:      0.30 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                                               [################################################################] 100%
(1/1) checking package integrity                                                                             [################################################################] 100%
(1/1) loading package files                                                                                  [################################################################] 100%
(1/1) checking for file conflicts                                                                            [################################################################] 100%
(1/1) checking available disk space                                                                          [################################################################] 100%
:: Processing package changes...
(1/1) upgrading cryptsetup                                                                                   [################################################################] 100%
:: Running post-transaction hooks...
(1/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.14.6-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/lib/systemd/systemd-udevd'
==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/udevadm'
==> ERROR: binary dependency `libcryptsetup.so.4' not found for `/usr/bin/systemd-tmpfiles'
  -> Running build hook: [autodetect]
. . . 
root@kartuzy ~ # reboot
reboot: error while loading shared libraries: libcryptsetup.so.4: cannot open shared object file: No such file or directory
127 root@kartuzy ~ # ls -l /usr/lib/libcryptsetup*
lrwxrwxrwx 1 root root     23 Dec 11 07:53 /usr/lib/libcryptsetup.so -> libcryptsetup.so.12.0.0
lrwxrwxrwx 1 root root     23 Dec 11 07:53 /usr/lib/libcryptsetup.so.12 -> libcryptsetup.so.12.0.0
-rwxr-xr-x 1 root root 330736 Dec 11 07:53 /usr/lib/libcryptsetup.so.12.0.0
root@kartuzy ~ # pacman -Qo /usr/lib/libcryptsetup.so.12
/usr/lib/libcryptsetup.so.12 is owned by cryptsetup 2.0.0-1

Last edited by Bronek (2017-12-16 17:03:53)

Offline

#2 2017-12-16 13:25:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] cryptsetup 2.0 breaks systemd


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2017-12-16 14:39:24

Bronek
Member
From: London
Registered: 2014-02-14
Posts: 119

Re: [SOLVED] cryptsetup 2.0 breaks systemd

Thank you - indeed that was my mistake, all is good after upgrade to current version of systemd (i.e. 235.38-4)

Offline

#4 2017-12-16 14:46:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] cryptsetup 2.0 breaks systemd

Please remember to mark your thread as solved.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB