You are not logged in.

#1 2020-11-08 12:47:56

Pippip19
Member
Registered: 2018-02-19
Posts: 15

systemd-tmpfiles error loading shared libraries [SOLVED]

During my last system upgrade I failed to notice WARNINGs of errors during the build, which (looking at pacman.log) concern the libidn2 package (e.g. 7744 segmentation fault install -Dm755 /usr/lib/libidn2.so.0).

The system will no longer boot, with the error

systemd-tmpfiles: error while loading shared libraries: /usr/lib/libidn2.so.0 file too short

I have tried re-installing the package via a live-installation media (as per the advice here), but the system still does not boot.

Given this is potentially critical (systemd) I thought of coming here for advice. I have not tried downgrading the package to a previous version.

Looking again at the pacman -Syu output, the packages upgraded were imagemagick, libmagick6, linux, xine-lib and zbar (see full output in below reply).

Edit: After re-installing the package and regenerating the system image with mkinitcpio, the problem was solved.

Last edited by Pippip19 (2020-11-08 14:21:07)

Offline

#2 2020-11-08 13:31:35

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

Please post the full errors from pacman.log.

https://bbs.archlinux.org/viewtopic.php?id=57855


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.

Offline

#3 2020-11-08 13:33:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,697

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

Also check whether you're simply out of disk space.

Offline

#4 2020-11-08 13:38:24

Pippip19
Member
Registered: 2018-02-19
Posts: 15

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

The full output:

[2020-11-08T10:11:11+0000] [PACMAN] Running 'pacman -Syu'
[2020-11-08T10:11:11+0000] [PACMAN] synchronizing package lists
[2020-11-08T10:11:13+0000] [PACMAN] starting full system upgrade
[2020-11-08T10:11:37+0000] [ALPM] running '60-mkinitcpio-remove.hook'...
[2020-11-08T10:11:37+0000] [ALPM] transaction started
[2020-11-08T10:11:37+0000] [ALPM] upgraded imagemagick (7.0.10.35-1 -> 7.0.10.37-1)
[2020-11-08T10:11:37+0000] [ALPM] upgraded libmagick6 (6.9.11.35-1 -> 6.9.11.37-1)
[2020-11-08T10:11:38+0000] [ALPM] upgraded linux (5.9.4.arch1-1 -> 5.9.6.arch1-1)
[2020-11-08T10:11:38+0000] [ALPM] upgraded xine-lib (1.2.10-4 -> 1.2.10-5)
[2020-11-08T10:11:38+0000] [ALPM] upgraded zbar (0.23.1-2 -> 0.23.1-3)
[2020-11-08T10:11:38+0000] [ALPM] transaction completed
[2020-11-08T10:11:38+0000] [ALPM] running '30-systemd-update.hook'...
[2020-11-08T10:11:38+0000] [ALPM] running '60-depmod.hook'...
[2020-11-08T10:11:44+0000] [ALPM] running '90-mkinitcpio-install.hook'...
[2020-11-08T10:11:44+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2020-11-08T10:11:44+0000] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2020-11-08T10:11:44+0000] [ALPM-SCRIPTLET] ==> Starting build: 5.9.6-arch1-1
[2020-11-08T10:11:44+0000] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET] /usr/lib/initcpio/functions: line 544:  7744 Segmentation fault      install -Dm755 /usr/lib/libidn2.so.0 /tmp/mkinitcpio.IzDCHE/root/usr/lib/libidn2.so.0
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2020-11-08T10:11:45+0000] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2020-11-08T10:11:46+0000] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2020-11-08T10:11:46+0000] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2020-11-08T10:11:46+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2020-11-08T10:11:46+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET] ==> Starting build: 5.9.6-arch1-1
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET] /usr/lib/initcpio/functions: line 544:  8338 Segmentation fault      install -Dm755 /usr/lib/libidn2.so.0 /tmp/mkinitcpio.61Iix8/root/usr/lib/libidn2.so.0
[2020-11-08T10:11:47+0000] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2020-11-08T10:11:48+0000] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2020-11-08T10:11:48+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2020-11-08T10:11:49+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: wd719x
[2020-11-08T10:11:50+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: xhci_pci
[2020-11-08T10:11:51+0000] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2020-11-08T10:11:53+0000] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2020-11-08T10:11:54+0000] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2020-11-08T10:11:56+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2020-11-08T10:11:56+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
[2020-11-08T10:12:00+0000] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2020-11-08T10:12:00+0000] [ALPM] running 'dbus-reload.hook'...
[2020-11-08T10:12:00+0000] [ALPM] running 'detect-old-perl-modules.hook'...
[2020-11-08 11:58] [PACMAN] Running 'pacman --sysroot /mnt -Syu'
[2020-11-08 11:58] [PACMAN] synchronizing package lists
[2020-11-08 11:59] [PACMAN] starting full system upgrade
[2020-11-08 11:59] [PACMAN] Running 'pacman --sysroot /mnt -Su libidn2'
[2020-11-08 11:59] [PACMAN] starting full system upgrade
[2020-11-08 12:00] [PACMAN] Running 'pacman --sysroot /mnt -U /mnt/var/cache/pacman/pkg/libidn2-2.2.0-1-x86_64.pkg.tar.xz'
[2020-11-08 12:01] [PACMAN] Running 'pacman --sysroot /mnt -U /mnt/var/cache/pacman/pkg/libidn2-2.1.1-2-x86_64.pkg.tar.xz'
[2020-11-08 12:02] [PACMAN] Running 'pacman --sysroot /mnt -Syu'
[2020-11-08 12:02] [PACMAN] synchronizing package lists
[2020-11-08 12:02] [PACMAN] starting full system upgrade
[2020-11-08 12:06] [PACMAN] Running 'pacman --sysroot /mnt -Su libidn2'
[2020-11-08 12:06] [PACMAN] starting full system upgrade
[2020-11-08T12:36:35+0000] [PACMAN] Running 'pacman --sysroot /mnt -Syu'
[2020-11-08T12:36:35+0000] [PACMAN] synchronizing package lists
[2020-11-08T12:36:36+0000] [PACMAN] starting full system upgrade
[2020-11-08T12:36:54+0000] [PACMAN] Running 'pacman --sysroot /mnt -Su libidn2'
[2020-11-08T12:36:54+0000] [PACMAN] starting full system upgrade
[2020-11-08T12:36:56+0000] [ALPM] transaction started
[2020-11-08T12:36:56+0000] [ALPM] reinstalled libidn2 (2.3.0-1)
[2020-11-08T12:36:56+0000] [ALPM] transaction completed
[2020-11-08T12:36:56+0000] [ALPM] running '30-systemd-update.hook'...
[2020-11-08T12:36:56+0000] [ALPM] running 'texinfo-install.hook'...
[2020-11-08T12:43:54+0000] [PACMAN] Running 'pacman --sysroot /mnt /mnt/var/cache/pacman/pkg/libidn2-2.2.0-1-x86_64.pkg.tar.xz'
[2020-11-08T12:44:07+0000] [PACMAN] Running 'pacman --sysroot /mnt -U /mnt/var/cache/pacman/pkg/libidn2-2.2.0-1-x86_64.pkg.tar.xz'
[2020-11-08T13:12:49+0000] [PACMAN] Running 'pacman --sysroot /mnt -Qi libidn2'

Offline

#5 2020-11-08 13:41:53

Pippip19
Member
Registered: 2018-02-19
Posts: 15

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

seth wrote:

Also check whether you're simply out of disk space.

There is 53G available on the root filesystem.

Offline

#6 2020-11-08 13:43:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

So the error was encountered during the mkinitcpio run. If you have fixed the problem on the root filesystem, then you just need to re-run mkinitcpio to fix the ramdisk.

https://wiki.archlinux.org/index.php/Mk … generation


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.

Offline

#7 2020-11-08 13:53:48

Pippip19
Member
Registered: 2018-02-19
Posts: 15

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

WorMzy wrote:

So the error was encountered during the mkinitcpio run. If you have fixed the problem on the root filesystem, then you just need to re-run mkinitcpio to fix the ramdisk.

Could you please advise me on how to correctly run mkinitcpio from a live installation media? I see the command has a -d option to specify the build directory, but I presumably need to also use the kernel version of the system, 5.9.6 (the usb has 5.9.2).

Offline

#8 2020-11-08 14:01:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,644
Website

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

Just mount all your system partitions (i.e. / and /boot), chroot into the system (using arch-chroot if available, or using the traditional method if not), and run mkinitcpio from there.


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.

Offline

#9 2020-11-08 14:17:24

Pippip19
Member
Registered: 2018-02-19
Posts: 15

Re: systemd-tmpfiles error loading shared libraries [SOLVED]

This worked, thank you WorMzy.

For reference (if anyone else needs to mkinicpio remotely):

# mount /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot
# arch-chroot /mnt mkinitcpio -p linux

Here sda2 is the root filesystem (which has a /boot directory) and sda1 an efi system partition.

Last edited by Pippip19 (2020-11-08 14:17:36)

Offline

Board footer

Powered by FluxBB