I was afraid of that, but kind of expected it. It seems you’ll have to use pacman-static. These commands are for the chroot environment, unless otherwise specified. So let’s try this:
-
Go the the
rootuser’s $HOME directory:cd /root -
Download the
pacman-staticprecompiled binary:curl --header 'Host: pkgbuild.com' --user-agent 'Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --referer 'https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/' --header 'Upgrade-Insecure-Requests: 1' --header 'Sec-Fetch-Dest: document' --header 'Sec-Fetch-Mode: navigate' --header 'Sec-Fetch-Site: same-origin' --header 'Sec-Fetch-User: ?1' --header 'DNT: 1' --header 'Sec-GPC: 1' 'https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/pacman-static' --output 'pacman-static'
I use a generator for it, didn’t come all out of my mind.
-
Make it executable:
chmod +x pacman-static -
Use that to reinstall
libxml2:./pacman-static -Sy libxml2 -
If successful you can reboot and see what happens.
reboot
Note:
I have never done this, so it’s all just theory. But I think my theory is sound.