You are not logged in.
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 shortI 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
Please post the full errors from pacman.log.
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
Also check whether you're simply out of disk space.
Offline
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
Also check whether you're simply out of disk space.
There is 53G available on the root filesystem.
Offline
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.
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
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
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
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 linuxHere 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