Boot errors after update

Oh I have no idea what those say, I just thought I might as well include them when the error message told me it got dumped. =P

Alright, that very much seems like the right direction, thank you!

I followed the pacman wiki (Pacman crashes during an upgrade) and ran into a bunch of “error: failed retrieving file” from mirrors. The servers were able to be pinged, I doublechecked the mirrorlist and ended up finding this thread over on the arch forums that seemed to describe this precise issue & a working solution:

pacman-key --init && pacman-key --refresh-keys
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -Syu

…and via that I was able to update the system. I am now able to access pacman commands just fine via the live medium & arch-chroot. No more Bus errors!

However: After trying to boot the system I ran into a “initramfs-linux.img not found”-error, tried again with fallbacks and I was greeted with the exact same issue that made me open this thread to begin with: https://i.imgur.com/vEgwaP5.jpg

pacman -Syu via arch-chroot from the live medium gave me this when a small update was pushed:

[liveuser@eos-2021.12.17 ~]$ sudo mount /dev/sdb2 /mnt -o subvol=@
[liveuser@eos-2021.12.17 ~]$ sudo arch-chroot /mnt
[root@EndeavourOS /]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
[root@EndeavourOS /]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra                          1717.3 KiB  6.14 MiB/s 00:00 [--------------------------------] 100%
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (1)         Old Version  New Version  Net Change  Download Size

extra/python-tomli  2.0.0-1      2.0.1-1        0.01 MiB       0.02 MiB

Total Download Size:   0.02 MiB
Total Installed Size:  0.08 MiB
Net Upgrade Size:      0.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-tomli-2.0.1-1-any         22.6 KiB   752 KiB/s 00:00 [--------------------------------] 100%
(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 python-tomli                                 [--------------------------------] 100%
ldconfig: /opt/cuda/lib64/libcufftw.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcufftw.so.10 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcufftw.so.10.7.1.112 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusolver.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusolver.so.11 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusolver.so.11.3.3.112 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusparse.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusparse.so.11 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libcusparse.so.11.7.2.112 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppicc.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppicc.so.11 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppicc.so.11.6.2.112 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppist.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppist.so.11 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnppist.so.11.6.2.112 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnvToolsExt.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnvToolsExt.so.1 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /opt/cuda/lib64/libnvToolsExt.so.1.0.0 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: file /usr/lib32/libasan.so is truncated

ldconfig: file /usr/lib32/libasan.so.6 is truncated

ldconfig: file /usr/lib32/libasan.so.6.0.0 is truncated

ldconfig: File /usr/lib32/libgcc_s.so.1 is empty, not checked.
ldconfig: File /usr/lib32/libgdruntime.so is empty, not checked.
ldconfig: File /usr/lib32/libgdruntime.so.2 is empty, not checked.
ldconfig: File /usr/lib32/libgdruntime.so.2.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libgfortran.so is empty, not checked.
ldconfig: File /usr/lib32/libgfortran.so.5 is empty, not checked.
ldconfig: File /usr/lib32/libgfortran.so.5.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libgomp.so is empty, not checked.
ldconfig: File /usr/lib32/libgomp.so.1 is empty, not checked.
ldconfig: File /usr/lib32/libgomp.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libitm.so is empty, not checked.
ldconfig: File /usr/lib32/libitm.so.1 is empty, not checked.
ldconfig: File /usr/lib32/libitm.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libobjc.so is empty, not checked.
ldconfig: File /usr/lib32/libobjc.so.4 is empty, not checked.
ldconfig: File /usr/lib32/libobjc.so.4.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libquadmath.so is empty, not checked.
ldconfig: File /usr/lib32/libquadmath.so.0 is empty, not checked.
ldconfig: File /usr/lib32/libquadmath.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libstdc++.so is empty, not checked.
ldconfig: File /usr/lib32/libstdc++.so.6 is empty, not checked.
ldconfig: File /usr/lib32/libstdc++.so.6.0.29 is empty, not checked.
ldconfig: File /usr/lib32/libubsan.so is empty, not checked.
ldconfig: File /usr/lib32/libubsan.so.1 is empty, not checked.
ldconfig: File /usr/lib32/libubsan.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib32/libgio-2.0.so is empty, not checked.
ldconfig: File /usr/lib32/libgio-2.0.so.0 is empty, not checked.
ldconfig: File /usr/lib32/libgio-2.0.so.0.7000.4 is empty, not checked.
ldconfig: File /usr/lib32/libglib-2.0.so is empty, not checked.
ldconfig: File /usr/lib32/libglib-2.0.so.0 is empty, not checked.
ldconfig: File /usr/lib32/libglib-2.0.so.0.7000.4 is empty, not checked.
ldconfig: File /usr/lib32/libgobject-2.0.so is empty, not checked.
ldconfig: File /usr/lib32/libgobject-2.0.so.0 is empty, not checked.
ldconfig: File /usr/lib32/libgobject-2.0.so.0.7000.4 is empty, not checked.
ldconfig: file /usr/lib/libasan.so is truncated

ldconfig: file /usr/lib/libasan.so.6 is truncated

ldconfig: file /usr/lib/libasan.so.6.0.0 is truncated

ldconfig: file /usr/lib/libgdruntime.so is truncated

ldconfig: file /usr/lib/libgdruntime.so.2 is truncated

ldconfig: file /usr/lib/libgdruntime.so.2.0.0 is truncated

ldconfig: file /usr/lib/libgfortran.so is truncated

ldconfig: file /usr/lib/libgfortran.so.5 is truncated

ldconfig: file /usr/lib/libgfortran.so.5.0.0 is truncated

ldconfig: File /usr/lib/libgomp.so is empty, not checked.
ldconfig: File /usr/lib/libgomp.so.1 is empty, not checked.
ldconfig: File /usr/lib/libgomp.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/liblsan.so is empty, not checked.
ldconfig: File /usr/lib/liblsan.so.0 is empty, not checked.
ldconfig: File /usr/lib/liblsan.so.0.0.0 is empty, not checked.
ldconfig: file /usr/lib/libstdc++.so is truncated

ldconfig: file /usr/lib/libstdc++.so.6 is truncated

ldconfig: file /usr/lib/libstdc++.so.6.0.29 is truncated

ldconfig: file /usr/lib/libtsan.so is truncated

ldconfig: file /usr/lib/libtsan.so.0 is truncated

ldconfig: file /usr/lib/libtsan.so.0.0.0 is truncated

ldconfig: file /usr/lib/libubsan.so is truncated

ldconfig: file /usr/lib/libubsan.so.1 is truncated

ldconfig: file /usr/lib/libubsan.so.1.0.0 is truncated

ldconfig: File /usr/lib/libbabl-0.1.so is empty, not checked.
ldconfig: File /usr/lib/libbabl-0.1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libbabl-0.1.so.0.189.1 is empty, not checked.
ldconfig: File /usr/lib/libgettextlib-0.21.so is empty, not checked.
ldconfig: File /usr/lib/libgettextlib.so is empty, not checked.
ldconfig: file /usr/lib/libgettextpo.so is truncated

ldconfig: file /usr/lib/libgettextpo.so.0 is truncated

ldconfig: file /usr/lib/libgettextpo.so.0.5.7 is truncated

ldconfig: File /usr/lib/libgettextsrc-0.21.so is empty, not checked.
ldconfig: File /usr/lib/libgettextsrc.so is empty, not checked.
ldconfig: file /usr/lib/libgio-2.0.so is truncated

ldconfig: file /usr/lib/libgio-2.0.so.0 is truncated

ldconfig: file /usr/lib/libgio-2.0.so.0.7000.4 is truncated

ldconfig: file /usr/lib/libglib-2.0.so is truncated

ldconfig: file /usr/lib/libglib-2.0.so.0 is truncated

ldconfig: file /usr/lib/libglib-2.0.so.0.7000.4 is truncated

ldconfig: file /usr/lib/libgobject-2.0.so is truncated

ldconfig: file /usr/lib/libgobject-2.0.so.0 is truncated

ldconfig: file /usr/lib/libgobject-2.0.so.0.7000.4 is truncated

ldconfig: file /usr/lib/libfwupdplugin.so is truncated

ldconfig: file /usr/lib/libfwupdplugin.so.5 is truncated

ldconfig: file /usr/lib/libfwupdplugin.so.5.0.0 is truncated

ldconfig: File /usr/lib/libcc1.so is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libcc1.so.0.0.0 is empty, not checked.
ldconfig: /usr/lib/libLTO.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libLTO.so.13 is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libRemarks.so is not an ELF file - it has the wrong magic bytes at the start.

ldconfig: /usr/lib/libRemarks.so.13 is not an ELF file - it has the wrong magic bytes at the start.

:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Cleaning pacman cache...

==> finished: 263 packages removed (disk space saved: 2.89 GiB)
[root@EndeavourOS /]# 

I would assume that the ldconfig issues are (harmless/unrelated) results of the (apparently very much failed) update and would be fixed by reinstalling the respective packages. Please correct me if I’m wrong there.

The only other idea I got from my google-fu was checking the output of LC_ALL=C pacman -Qk | grep -v ', 0 altered files' which resulted in exactly one entry with missing files that sounds a little bit terrifying to mess with:
grub: 1104 total files, 4 missing files
No idea if that is the cause of the issue on boot but maybe that’s something we can find out somehow?

Where do I go from here?