Kernel panic after shutdown

Thomas Kaiser ubuntu at kaiser-linux.li
Sat Oct 22 17:56:29 UTC 2022


Hi

Ubuntu 22.04.1 LTS 64-bit on bare metal.

When issued "sudo shutdown now" or "sudo reboot" the kernel panics in the last step of shutdown or reboot.
The last message on the screen before the panic:
/shutdown: error while loading shared libraries: libsystemd-shared-249.so: cannot open shared object file: No such file or directory

libsystemd-shared-249.so can be found on the filesystem:
sudo find / -name libsystemd-shared-249.so
/lib/systemd/libsystemd-shared-249.so
/usr/lib/systemd/libsystemd-shared-249.so

ldd doesn't show any problems:
ldd /usr/sbin/shutdown
	linux-vdso.so.1 (0x00007ffd567d1000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f43dc9a7000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f43dc97b000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f43dc950000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f43dc930000)
	libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f43dc861000)
	libblkid.so.1 => /usr/lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f43dc828000)
	libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f43dc6ea000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f43dc4c2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f43dcad3000)
	libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f43dc42b000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f43dc405000)

ldd /lib/systemd/libsystemd-shared-249.so
	linux-vdso.so.1 (0x00007ffd461e9000)
	libacl.so.1 => /usr/lib/x86_64-linux-gnu/libacl.so.1 (0x00007f8d44cc9000)
	libblkid.so.1 => /usr/lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f8d44c92000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f8d44c87000)
	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f8d44c4d000)
	libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f8d44b0f000)
	libip4tc.so.2 => /usr/lib/x86_64-linux-gnu/libip4tc.so.2 (0x00007f8d44b05000)
	libkmod.so.2 => /usr/lib/x86_64-linux-gnu/libkmod.so.2 (0x00007f8d44ae7000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f8d44ac7000)
	libmount.so.1 => /usr/lib/x86_64-linux-gnu/libmount.so.1 (0x00007f8d44a83000)
	libcrypto.so.3 => /usr/lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f8d44641000)
	libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f8d4462f000)
	libseccomp.so.2 => /usr/lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007f8d4460f000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f8d445e1000)
	libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f8d44512000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f8d444e7000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8d442bf000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8d44f9a000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f8d44299000)
	libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f8d44269000)
	libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f8d441d2000)
	libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007f8d441ca000)


ldd /usr/lib/systemd/libsystemd-shared-249.so
	linux-vdso.so.1 (0x00007ffec5750000)
	libacl.so.1 => /usr/lib/x86_64-linux-gnu/libacl.so.1 (0x00007f68219b3000)
	libblkid.so.1 => /usr/lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f682197c000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f6821971000)
	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f6821937000)
	libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f68217f9000)
	libip4tc.so.2 => /usr/lib/x86_64-linux-gnu/libip4tc.so.2 (0x00007f68217ef000)
	libkmod.so.2 => /usr/lib/x86_64-linux-gnu/libkmod.so.2 (0x00007f68217d1000)
	liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f68217b1000)
	libmount.so.1 => /usr/lib/x86_64-linux-gnu/libmount.so.1 (0x00007f682176d000)
	libcrypto.so.3 => /usr/lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f682132b000)
	libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f6821319000)
	libseccomp.so.2 => /usr/lib/x86_64-linux-gnu/libseccomp.so.2 (0x00007f68212f9000)
	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f68212cb000)
	libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f68211fc000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f68211d1000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6820fa9000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f6821c84000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f6820f83000)
	libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f6820f53000)
	libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f6820ebc000)
	libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007f6820eb4000)

Does somebody have any clue?
Or what should I check next?

Thomas



More information about the ubuntu-users mailing list