BlackArch 更新 systemd 后无法启动

BlackArch 更新 systemd 后无法启动

重新启动后我更新了 systemd 和 linux-firmware ,但出现错误:

   :: running early hook [udev]
systemd-tempfiles : error while loading shared libraries : libcryptsetup.so.12: cannot open shared object file: No such file or directorty
/usr/lib/systemd/systemd-udevd: error while loading shared libraries: libcryptsetup.so.12: cannot open shared object file: no such file or directory
:: running hook [udev]
:: Triggering uevents...
udevadm: error while loading shared libraries: libcryptsetup.so.12: cannot open shared object file: no such file or directory 
udevadm: error while loading shared libraries: libcryptsetup.so.12: cannot open shared object file: no such file or directory 
udevadm: error while loading shared libraries: libcryptsetup.so.12: cannot open shared object file: no such file or directory
:: running hook [keymap]
:: Loading keymap...done.
:: running hook [encrypt]
Waiting 10 seconds for device /dev/disk/by-uuid/8abcac1e-3502-****-***-*********** ...
waiting 10 seconds foe device /dev/mapper/root ...
ERROR: device '/dev/mapper/root/' not found. Skipping fsck.
:: Mounting '/dev/mapper/r00t' on real root
mount: /new_root: no filesystem type specified
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off
[rootfs ]#

输出是:

[ blackarch / ]# ldd /usr/lib/libcryptsetup.so.12
        linux-vdso.so.1 (0x00007ffdc0d35000)
        libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f6731f6d000)
        libdevmapper.so.1.02 => /usr/lib/libdevmapper.so.1.02 (0x00007f6731d17000)
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f67319fb000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f67317e6000)
        libjson-c.so.2 => /usr/lib/libjson-c.so.2 (0x00007f67315db000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f67313bd000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f6731005000)
        /usr/lib64/ld-linux-x86-64.so.2 (0x00007f67323c5000)
        libudev.so.1 => /usr/lib/libudev.so.1 (0x00007f6730de7000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f6730a9b000)
[ blackarch / ]# 

当前版本是:

systemd 235.38-4
systemd-sysvcompat 235.38-4
Cryptsetup 2.0.0-1
linux 4.14.5-1
linux-firmware 20171206.fdee922-1

但是当我从 live usb 使用 cryptsetup 时,它正在挂载我的根文件系统/dev/sda3

有什么解决方案可以解决这个问题吗?

答案1

我不了解 BlackArch,但似乎有问题的两个软件包来自主要的 archlinux 存储库。

你永远不应该更新单个包。现在您已经拥有了链接到新版本的 systemd地穴(昨天发布),但你没有这个版本的 crypt。

您必须启动 livecd 并进行完整的系统升级。您可以使用拱形 chroot。这黑拱门常见问题解答说,你应该运行这个命令:

pacman -Syyu --needed --force blackarch

相关内容