System crashed while updating

Hi,

I was doing an update which crashed the system when it was installing the papirus icon theme. Both the 5.19 and 5.15LTS kernel are not bootable. Previously I’ve been able to recover that by using a live image and chrooting in and installing the two kernels and updating grub however this time both pamac and pacman do nothing. It looks like all it does is recognise the commands but the actual packages themselves are missing and therefore I can’t update anything. All that happens if I run either pamac or pacman is it it will just give me a new cursor with no errors but doesn’t actually do anything either. update-grub confirms that both kernels are missing so it didn’t get that far in the update hence why I need to install them.

I’ve no idea how to actually recover this given the package managers appear to be missing. Any help appreciated.

1 Like

so from chroot run this:
pacman-mirrors --fasttrack 5 && pacman -Syyu
whats the output from it

It goes through the mirrors and then I get a final message saying:

:: INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist

Therefore it handles the mirror list part however doesn’t seem to do anything related to the pacman -Syyu

and if you run:
pamac update

It just gives me a new cursor line. Doesn’t error in anyway. It just does nothing.

ok, so exit chroot:
exit
then run these commands:

sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
exit | manjaro-chroot -a
sudo pacman-mirrors -f5
sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -

Apologies for the delay. I was having some problems with this,. I’m used running manjaro-chroot under su. I have 2 manjaro partitions and every time I run exit | manjaro-chroot -a it automatically defaults to /dev/sda6 not sda8 which is the partition that I need. Anyway when I unmount the /mnt and then run manjaro-chroot again this time I can actually choose between the options allowing me to choose 1. Unfortunately no difference in the end. Just the same. No output after running pacman. Here’s the full output of all the commands run.

   ~  sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh                   ✔ 
    ~  exit | manjaro-chroot -a                                                            ✔ 
==> Detected systems:
 --> 0) ManjaroLinux
 --> 1) Manjaro
==> Select system to mount [0-1] : 
==> Mounting (ManjaroLinux) [/dev/sda6]
 --> mount: [/mnt]
    ~  sudo umount -l /mnt                                                          ✔  5s  
    ~  manjaro-chroot -a                                                                   ✔ 
==> Detected systems:
 --> 0) ManjaroLinux
 --> 1) Manjaro
==> Select system to mount [0-1] : 
1
==> Mounting (Manjaro) [/dev/sda8]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-gnome /]# sudo pacman-mirrors -f5
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.394 Germany        : https://mirror.alpix.eu/manjaro/
  1.309 Russia         : https://mirror.kamtv.ru/manjaro/
  2.271 Brazil         : https://manjaro.c3sl.ufpr.br/
  1.893 Thailand       : https://mirror.kku.ac.th/manjaro/
  2.188 Taiwan         : https://mirror.archlinux.tw/Manjaro/
::INFO Writing mirror list
::Germany         : https://mirror.alpix.eu/manjaro/stable
::Russia          : https://mirror.kamtv.ru/manjaro/stable
::Thailand        : https://mirror.kku.ac.th/manjaro/stable
::Taiwan          : https://mirror.archlinux.tw/Manjaro/stable
::Brazil          : https://manjaro.c3sl.ufpr.br/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
[manjaro-gnome /]# sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -
[manjaro-gnome /]# 

so close terminal, and install this in the live usb:
sudo pacman -S arch-install-scripts
then mount the manjaro partition:
sudo mount /dev/sda8 /mnt
then reinstall pacman + glibc:
sudo pacstrap -i /mnt glibc lib32-glibc pacman

Unfortunately it can’t find the install scripts,.

warning: database file for 'core' does not exist (use '-Sy' to download)
warning: database file for 'extra' does not exist (use '-Sy' to download)
warning: database file for 'community' does not exist (use '-Sy' to download)
warning: database file for 'multilib' does not exist (use '-Sy' to download)
error: target not found: arch-install-scripts

:face_with_peeking_eye:
it just tell you there what to do:
sudo pacman -Sy
then proceed with:

report back

Thanks @brahma . Ok that errors out. complaining that it can’t lock the database.

 sudo pacstrap -i /mnt glibc lib32-glibc pacman                  ✔ 
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
==> ERROR: Failed to install packages to new root

try this:
sudo rm /var/lib/pacman/db.lck
sudo rm /var/tmp/pamac/dbs/db.lck
then run again:
sudo pacstrap -i /mnt glibc lib32-glibc pacman

I’m now getting a message to say that it can’t find any lock files.

sudo rm /var/lib/pacman/db.lck                                 1 ✘ 
sudo rm /var/tmp/pamac/dbs/db.lck
rm: cannot remove '/var/lib/pacman/db.lck': No such file or directory
rm: cannot remove '/var/tmp/pamac/dbs/db.lck': No such file or directory

ok run the pacstrap command again:
sudo pacstrap -i /mnt glibc lib32-glibc pacman

Same message as before about unable to lock database.

i see so you need to run this:
sudo rm /mnt/var/lib/pacman/db.lck
sudo rm /mnt/var/tmp/pamac/dbs/db.lck
then run again:
sudo pacstrap -i /mnt glibc lib32-glibc pacman

That did run but now another error. Rather long one this one.

sudo pacstrap -i /mnt glibc lib32-glibc pacman                1 ✘ 
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: glibc-2.36-4.0 is up to date -- reinstalling
warning: lib32-glibc-2.36-4.0 is up to date -- reinstalling
warning: pacman-6.0.1-15 is up to date -- reinstalling
resolving dependencies...
error: could not open file /mnt/var/lib/pacman/local/papirus-icon-theme-20220910-1/desc: No such file or directory
looking for conflicting packages...

Packages (3) glibc-2.36-4.0  lib32-glibc-2.36-4.0  pacman-6.0.1-15

Total Installed Size:  70.13 MiB
Net Upgrade Size:       4.80 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 glibc-2.36-4.0-x86_64 is up to date
(3/3) checking keys in keyring                     [######################] 100%
(3/3) checking package integrity                   [######################] 100%
(3/3) loading package files                        [######################] 100%
(3/3) checking for file conflicts                  [######################] 100%
error: failed to commit transaction (conflicting files)
pacman: /mnt/usr/bin/checkupdates exists in filesystem
pacman: /mnt/usr/bin/makepkg exists in filesystem
pacman: /mnt/usr/bin/makepkg-template exists in filesystem
pacman: /mnt/usr/bin/paccache exists in filesystem
pacman: /mnt/usr/bin/pacdiff exists in filesystem
pacman: /mnt/usr/bin/paclist exists in filesystem
pacman: /mnt/usr/bin/paclog-pkglist exists in filesystem
pacman: /mnt/usr/bin/pacman exists in filesystem
pacman: /mnt/usr/bin/pacman-conf exists in filesystem
pacman: /mnt/usr/bin/pacman-db-upgrade exists in filesystem
pacman: /mnt/usr/bin/pacman-key exists in filesystem
pacman: /mnt/usr/bin/pacscripts exists in filesystem
pacman: /mnt/usr/bin/pacsearch exists in filesystem
pacman: /mnt/usr/bin/pacsort exists in filesystem
pacman: /mnt/usr/bin/pactree exists in filesystem
pacman: /mnt/usr/bin/rankmirrors exists in filesystem
pacman: /mnt/usr/bin/repo-add exists in filesystem
pacman: /mnt/usr/bin/repo-elephant exists in filesystem
pacman: /mnt/usr/bin/repo-remove exists in filesystem
pacman: /mnt/usr/bin/testpkg exists in filesystem
pacman: /mnt/usr/bin/updpkgsums exists in filesystem
pacman: /mnt/usr/bin/vercmp exists in filesystem
pacman: /mnt/usr/include/alpm.h exists in filesystem
pacman: /mnt/usr/include/alpm_list.h exists in filesystem
pacman: /mnt/usr/lib/libalpm.so exists in filesystem
pacman: /mnt/usr/lib/libalpm.so.13 exists in filesystem
pacman: /mnt/usr/lib/libalpm.so.13.0.1 exists in filesystem
pacman: /mnt/usr/lib/pkgconfig/libalpm.pc exists in filesystem
pacman: /mnt/usr/lib/systemd/system/etc-pacman.d-gnupg.mount exists in filesystem
pacman: /mnt/usr/lib/systemd/system/paccache.service exists in filesystem
pacman: /mnt/usr/lib/systemd/system/paccache.timer exists in filesystem
pacman: /mnt/usr/lib/systemd/system/pacman-filesdb-refresh.service exists in filesystem
pacman: /mnt/usr/lib/systemd/system/pacman-filesdb-refresh.timer exists in filesystem
pacman: /mnt/usr/lib/systemd/system/pacman-init.service exists in filesystem
pacman: /mnt/usr/share/bash-completion/completions/makepkg exists in filesystem
pacman: /mnt/usr/share/bash-completion/completions/pacman exists in filesystem
pacman: /mnt/usr/share/bash-completion/completions/pacman-key exists in filesystem
pacman: /mnt/usr/share/locale/ar/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ar/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/ast/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ast/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/az_AZ/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/az_AZ/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/az_AZ/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/bg/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/bg/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/bg/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/br/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/br/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/br/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/ca/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ca/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/ca/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/cs/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/cs/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/cs/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/da/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/da/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/da/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/de/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/de/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/de/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/el/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/el/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/el/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/en_GB/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/en_GB/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/en_GB/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/eo/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/eo/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/eo/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/es/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/es/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/es/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/es_419/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/es_419/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/es_419/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu_ES/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu_ES/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/eu_ES/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/fi/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/fi/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/fi/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/fr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/fr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/fr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/gl/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/gl/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/gl/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/hi/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/hi/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/hi/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/hr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/hr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/hu/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/hu/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/hu/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/id/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/id/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/id/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/it/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/it/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/it/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/ja/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ja/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/ja/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/kk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ko/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ko/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/ko/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/lt/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/lt/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/lt/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/nb/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/nb/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/nb/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/nl/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/nl/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/nl/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/pl/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/pl/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/pl/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt_BR/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt_BR/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/pt_BR/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/ro/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ro/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/ro/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/ru/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/ru/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/ru/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/sk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/sk/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/sk/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/sl/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/sl/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/sl/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr@latin/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr@latin/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/sr@latin/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/sv/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/sv/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/sv/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/tr/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/tr/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/tr/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/uk/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/uk/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/uk/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_CN/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_CN/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_CN/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_TW/LC_MESSAGES/libalpm.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_TW/LC_MESSAGES/pacman-scripts.mo exists in filesystem
pacman: /mnt/usr/share/locale/zh_TW/LC_MESSAGES/pacman.mo exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv/buildflags.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv/compiler.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv/debugflags.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv/lto.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/buildenv/makeflags.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/ccache.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/checksum.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/distcc.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/fakeroot.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/gpg.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/gzip.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/pacman.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/strip.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/sudo.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/executable/vcs.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/integrity.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/integrity/generate_checksum.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/integrity/generate_signature.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/integrity/verify_checksum.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/integrity/verify_signature.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_config.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_config/ext.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_config/paths.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_config/source_date_epoch.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_config/variable.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_package.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_package/build_references.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_package/dotfiles.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_package/file_names.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_package/missing_backup.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/arch.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/arch_specific.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/backup.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/changelog.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/checkdepends.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/conflicts.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/depends.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/epoch.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/fullpkgver.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/install.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/makedepends.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/optdepends.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/options.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/package_function.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/package_function_variable.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/pkgbase.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/pkglist.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/pkgname.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/pkgrel.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/pkgver.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/provides.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/source.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/util.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/lint_pkgbuild/variable.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/reproducible.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/reproducible/python.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/bzr.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/file.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/fossil.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/git.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/hg.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/local.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/source/svn.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/srcinfo.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/docs.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/emptydirs.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/libtool.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/purge.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/staticlibs.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/strip.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/tidy/zipman.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/compress.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/config.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/dirsize.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/error.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/message.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/option.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/parseopts.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/pkgbuild.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/schema.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/source.sh exists in filesystem
pacman: /mnt/usr/share/makepkg/util/util.sh exists in filesystem
pacman: /mnt/usr/share/man/man1/makepkg-template.1.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_cb.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_databases.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_depends.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_errors.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_files.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_groups.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_handle.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_list.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_log.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_misc.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_options.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_packages.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_sig.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man3/libalpm_trans.3.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/BUILDINFO.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/PKGBUILD.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/alpm-hooks.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/makepkg.conf.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/pacman-hooks.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man5/pacman.conf.5.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/checkupdates.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/makepkg.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/paccache.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pacdiff.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pacman-conf.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pacman-key.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pacman.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pacsort.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/pactree.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/repo-add.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/repo-remove.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/updpkgsums.8.gz exists in filesystem
pacman: /mnt/usr/share/man/man8/vercmp.8.gz exists in filesystem
pacman: /mnt/usr/share/pacman/PKGBUILD-split.proto exists in filesystem
pacman: /mnt/usr/share/pacman/PKGBUILD-vcs.proto exists in filesystem
pacman: /mnt/usr/share/pacman/PKGBUILD.proto exists in filesystem
pacman: /mnt/usr/share/pacman/proto.install exists in filesystem
pacman: /mnt/usr/share/pkgconfig/libmakepkg.pc exists in filesystem
pacman: /mnt/usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim exists in filesystem
pacman: /mnt/usr/share/vim/vimfiles/ftplugin/PKGBUILD.vim exists in filesystem
pacman: /mnt/usr/share/vim/vimfiles/syntax/PKGBUILD.vim exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_checkupdates exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_paccache exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pacdiff exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_paclist exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_paclog-pkglist exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pacman exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pacscripts exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pacsearch exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pacsort exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_pactree exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_rankmirrors exists in filesystem
pacman: /mnt/usr/share/zsh/site-functions/_updpkgsums exists in filesystem
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root

try this:

sudo pacstrap -i /mnt glibc lib32-glibc pacman --overwrite '*'

but i have no idea if the overwrite will work with pacstrap

Looks like there are some issues with that. Interestingly I note this:

error: could not open file /mnt/var/lib/pacman/local/papirus-icon-theme-20220910-1/desc: No such file or directory

It was on the papirus icon theme install that the whole system crashed.

Here’s the full output

sudo pacstrap -i /mnt glibc lib32-glibc pacman --overwrite '*'
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: glibc-2.36-4.0 is up to date -- reinstalling
warning: lib32-glibc-2.36-4.0 is up to date -- reinstalling
warning: pacman-6.0.1-15 is up to date -- reinstalling
resolving dependencies...
error: could not open file /mnt/var/lib/pacman/local/papirus-icon-theme-20220910-1/desc: No such file or directory
looking for conflicting packages...

Packages (3) glibc-2.36-4.0  lib32-glibc-2.36-4.0  pacman-6.0.1-15

Total Installed Size:  70.13 MiB
Net Upgrade Size:       4.80 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring                     [######################] 100%
(3/3) checking package integrity                   [######################] 100%
(3/3) loading package files                        [######################] 100%
(3/3) checking for file conflicts                  [######################] 100%
(3/3) checking available disk space                [######################] 100%
:: Processing package changes...
(1/3) reinstalling glibc                           [######################] 100%
Generating locales...
  en_US.UTF-8... done
  en_GB.UTF-8... done
Generation complete.
ldconfig: File /usr/lib/libdcerpc-binding.so is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so is empty, not checked.
ldconfig: File /usr/lib/libmariadbd.so.19 is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libpamac-gtk.so is empty, not checked.
ldconfig: File /usr/lib/libmariadbd.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0.15 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0 is empty, not checked.
ldconfig: File /usr/lib/libalpm.so.13 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmysqlclient_r.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libalpm.so.13.0.1 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2.1.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libmariadb.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0.7.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmysqlclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so.6 is empty, not checked.
ldconfig: File /usr/lib/libnss_wins.so.2 is empty, not checked.
ldconfig: File /usr/lib/libmariadb.so.3 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so.1 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so.6 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so is empty, not checked.
ldconfig: File /usr/lib/libndr.so.3 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libmysqld.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so is empty, not checked.
ldconfig: File /usr/lib/libqgnomeplatform6.so is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0.28.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr.so.3.0.0 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so.1 is empty, not checked.
ldconfig: File /usr/lib/libnss_winbind.so.2 is empty, not checked.
ldconfig: File /usr/lib/libalpm.so is empty, not checked.
ldconfig: File /usr/lib/libqgnomeplatform.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0.0.1 is empty, not checked.
(2/3) reinstalling lib32-glibc                     [######################] 100%
(3/3) reinstalling pacman                          [######################] 100%
warning: /mnt/etc/pacman.conf installed as /mnt/etc/pacman.conf.pacnew
ldconfig: File /usr/lib/libdcerpc-binding.so is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so is empty, not checked.
ldconfig: File /usr/lib/libmariadbd.so.19 is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libpamac-gtk.so is empty, not checked.
ldconfig: File /usr/lib/libmariadbd.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0.15 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmysqlclient_r.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2.1.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libmariadb.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so is empty, not checked.
ldconfig: File /usr/lib/libsmbclient.so.0.7.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so.0 is empty, not checked.
ldconfig: File /usr/lib/libmysqlclient.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-policy.cpython-310-x86-64-linux-gnu.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-credentials.so.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandClient.so.6 is empty, not checked.
ldconfig: File /usr/lib/libnss_wins.so.2 is empty, not checked.
ldconfig: File /usr/lib/libmariadb.so.3 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so.1 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsmbldap.so.2 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-samr.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so.6 is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libsamba-hostconfig.so is empty, not checked.
ldconfig: File /usr/lib/libndr.so.3 is empty, not checked.
ldconfig: File /usr/lib/libsamba-errors.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libsmbconf.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libmysqld.so is empty, not checked.
ldconfig: File /usr/lib/libsamba-util.so is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so is empty, not checked.
ldconfig: File /usr/lib/libndr-nbt.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libwbclient.so.0 is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-server-core.so is empty, not checked.
ldconfig: File /usr/lib/libqgnomeplatform6.so is empty, not checked.
ldconfig: File /usr/lib/libndr-standard.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0.28.0 is empty, not checked.
ldconfig: File /usr/lib/libsamba-passdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandCompositor.so.6.4.0 is empty, not checked.
ldconfig: File /usr/lib/libsamdb.so.0 is empty, not checked.
ldconfig: File /usr/lib/libndr.so.3.0.0 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so.1.0.0 is empty, not checked.
ldconfig: File /usr/lib/libndr-krb5pac.so.0.0.1 is empty, not checked.
ldconfig: File /usr/lib/libnetapi.so.1 is empty, not checked.
ldconfig: File /usr/lib/libnss_winbind.so.2 is empty, not checked.
ldconfig: File /usr/lib/libqgnomeplatform.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglClientHwIntegration.so.6 is empty, not checked.
ldconfig: File /usr/lib/libtevent-util.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WlShellIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libQt6WaylandEglCompositorHwIntegration.so is empty, not checked.
ldconfig: File /usr/lib/libdcerpc-binding.so.0.0.1 is empty, not checked.
:: Running post-transaction hooks...
(1/6) Reloading system manager configuration...
  Skipped: Running in chroot.
(2/6) Creating temporary files...
Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
error: command failed to execute correctly
(3/6) Arming ConditionNeedsUpdate...
(4/6) Restarting cronie for libc upgrade...
Running in chroot, ignoring command 'try-restart'
(5/6) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly
(6/6) Updating the info directory file...

try this:

sudo touch /mnt/var/lib/pacman/local/papirus-icon-theme-20220910-1/desc
sudo pacstrap -i /mnt papirus-icon-theme