You are not logged in.

#1 2026-05-02 03:14:17

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

[SOLVED] Can no longer boot into Arch Linux

I tried normally connecting to my Arch Linux VM via Hyper-V through an xrdp setup that has been working for a while and it won't let me connect and just terminates.

I tried booting through Hyper-V start menu and I see a bunch of D-bus failed error messages that come up quickly.

So I booted from an iso but I'm not sure where to proceed from here. I tried arch-chroot to my mounted file system and then running pacman -Syu but I get: "pacman: error while loading shared libraries: /usr/lib/libgpg-error.so.0: file too short with the symbolic link to /usr/lib/libgpg-error.so.0.42.0 and the file exists but I see no size associated with it.

How do I resolve issue? I'm not even sure if this is what the issue is but that is the first step and appear to be stuck on this.

Regards.

Last edited by dramatis.persona (2026-05-02 13:16:19)

Offline

#2 2026-05-02 07:05:40

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

Re: [SOLVED] Can no longer boot into Arch Linux

You'll have to fix it offline, https://wiki.archlinux.org/title/Pacman … an_upgrade
Notably no chroot, the local pacman doesn't work because at least one critical library is corrupted on disk.

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup

Everything that shows up w/ missing or broken mtree needs to be re-installed "--dbonly" first, then properly in a second pass.

Offline

#3 2026-05-02 11:25:17

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: [SOLVED] Can no longer boot into Arch Linux

seth wrote:

You'll have to fix it offline, https://wiki.archlinux.org/title/Pacman … an_upgrade
Notably no chroot, the local pacman doesn't work because at least one critical library is corrupted on disk.

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup

Everything that shows up w/ missing or broken mtree needs to be re-installed "--dbonly" first, then properly in a second pass.

Hi, I tried all of this with the packages that showed up in the sudo LC_ALL ... command, but didn't seem to do anything.

Then I tried pacman -S linux and it failed.

then I ran the sudo LC_ALL again I this is what shows up:

https://i.ibb.co/wF3dCm5M/archissues.jpg

Last edited by dramatis.persona (2026-05-02 12:11:35)

Offline

#4 2026-05-02 11:30:08

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

Re: [SOLVED] Can no longer boot into Arch Linux

Please don't embed oversized pictures (mousewheel-cause) and generally never post images of text, post the text.
Don't chroot, then actually run

LC_ALL=C pacman --root /mnt -Qkk | grep -v ', 0 altered files' | grep -v backup | tee /tmp/integrity.txt
cat /tmp/integrity.txt | curl -s -H "Accept: application/json, */*" --upload-file - 'https://paste.c-net.org/' 

(sorry, I posted a textblock w/o adjusting for the context) then fix those packages.

Offline

#5 2026-05-02 12:01:15

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: [SOLVED] Can no longer boot into Arch Linux

seth wrote:

Please don't embed oversized pictures (mousewheel-cause) and generally never post images of text, post the text.
Don't chroot, then actually run

LC_ALL=C pacman --root /mnt -Qkk | grep -v ', 0 altered files' | grep -v backup | tee /tmp/integrity.txt
cat /tmp/integrity.txt | curl -s -H "Accept: application/json, */*" --upload-file - 'https://paste.c-net.org/' 

(sorry, I posted a textblock w/o adjusting for the context) then fix those packages.

amd-ucode: 17 total files, 1 altered file
at-spi2-core: no mtree file
boost-libs: no mtree file
bubblewrap: no mtree file
code: 26712 total files, 1 altered file
electron39: no mtree file
expat: no mtree file
fluidsynth: no mtree file
freerdp: no mtree file
gdb: no mtree file
gdb-common: no mtree file
highway: no mtree file
imath: no mtree file
intel-ucode: 161 total files, 1 altered file
lcms2: no mtree file
libblockdev: no mtree file
libblockdev-crypto: no mtree file
libblockdev-fs: no mtree file
libblockdev-loop: no mtree file
libblockdev-mdraid: no mtree file
libblockdev-nvme: no mtree file
libblockdev-part: no mtree file
libblockdev-smart: no mtree file
libblockdev-swap: no mtree file
libcups: no mtree file
libgpg-error: no mtree file
libutempter: 20 total files, 1 altered file
libvlc: 120 total files, 1 altered file
memtest86+: 6 total files, 1 altered file
memtest86+-efi: 6 total files, 1 altered file
mpg123: no mtree file
openxr: no mtree file
python-cryptography: no mtree file
sed: no mtree file
shadow: 576 total files, 1 altered file
source-highlight: no mtree file
systemd: 1828 total files, 1 altered file
xorg-xwayland: no mtree file
xrdp: 144 total files, 1 altered file

So I tried to run pacman --root=/mnt ....

for one of the missing mtree file packages like at-spi2-coreand got a corrupted .zst file issue and when it prompted me to delete it and I said yes, it error with failed to commit transaciton.

Last edited by dramatis.persona (2026-05-02 12:11:03)

Offline

#6 2026-05-02 12:10:33

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

Re: [SOLVED] Can no longer boot into Arch Linux

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.
Also replace the oversized image w/ a link.

Why is linux not in that list? Why did you not upload the output?
Ifff the ouput is correct do NOT chroot! and run

pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S --dbonly amd-ucode  at-spi2-core  boost-libs  bubblewrap  code  electron39  expat  fluidsynth  freerdp  gdb  gdb-common  highway  imath  intel-ucode  lcms2  libblockdev  libblockdev-crypto  libblockdev-fs  libblockdev-loop  libblockdev-mdraid  libblockdev-nvme  libblockdev-part  libblockdev-smart  libblockdev-swap  libcups  libgpg-error  libutempter  libvlc  memtest86+  memtest86+-efi  mpg123  openxr  python-cryptography  sed  shadow  source-highlight  systemd  xorg-xwayland  xrdp
pacman --root /mnt --cachedir=/mnt/var/cache/pacman/pkg -S amd-ucode  at-spi2-core  boost-libs  bubblewrap  code  electron39  expat  fluidsynth  freerdp  gdb  gdb-common  highway  imath  intel-ucode  lcms2  libblockdev  libblockdev-crypto  libblockdev-fs  libblockdev-loop  libblockdev-mdraid  libblockdev-nvme  libblockdev-part  libblockdev-smart  libblockdev-swap  libcups  libgpg-error  libutempter  libvlc  memtest86+  memtest86+-efi  mpg123  openxr  python-cryptography  sed  shadow  source-highlight  systemd  xorg-xwayland  xrdp

some of those aren't necessary for --dbonly but it won't harm either.

Offline

#7 2026-05-02 12:15:38

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: [SOLVED] Can no longer boot into Arch Linux

I don't know what you mean by using "quote" tags. I don't explicitly use them. I just quote the post. If you don't want me to quote, I won't do that.

I don't know what you mean by upload the output. I ran those commands and I presume it uploaded the pasted text that site in the curl and went to the link and just copied and pasted the text in the response which was that list.

If I try to run the pacman --root /mnt ... command

I get a signature is invalid error and a corrupted .zst issue.

Last edited by dramatis.persona (2026-05-02 12:21:27)

Offline

#8 2026-05-02 12:21:09

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

Re: [SOLVED] Can no longer boot into Arch Linux

Sorry, yet another textblock - just code tags will do wink

went to the link and just copied and pasted the text

Ok, but there's no reason to copy around the internet - the link works here as well.

got a corrupted .zst file issue

It's possible that the cached packages are also corrupted, but the subsequent download should™ fix that - what is the exact error you get?

Offline

#9 2026-05-02 12:28:47

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: [SOLVED] Can no longer boot into Arch Linux

It's possible that the cached packages are also corrupted, but the subsequent download should™ fix that - what is the exact error you get?

If I try to run the pacman --root /mnt ... command

I get this: https://paste.c-net.org/SeamusBeatin

Offline

#10 2026-05-02 12:33:19

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

Re: [SOLVED] Can no longer boot into Arch Linux

Stuff like

ldconfig: File /usr/lib/libboost_date_time.so.1.91.0 is empty, not checked.

is uncritical during the --dbonly pass - the package has not been fixed. Just plow through - after fixing the mtree you can re-install the package.
Don't try to only fix a subset but all broken packages at once.
If you still get ldconfig errors on the actual update, just run it again - you'd expect all of those to be gone on a second pass.

Offline

#11 2026-05-02 13:14:38

dramatis.persona
Member
Registered: 2021-03-02
Posts: 53

Re: [SOLVED] Can no longer boot into Arch Linux

Thank you. That worked.

Was able to reinstall everything except xrdp. But that was downloaded and self-installed from AUR a while ago.

I was able to RDP into my VM Arch linux like normal after all of the previous packages were re-installed, so I'm not sure what file it sees as altered or whether it is necessary to "fix" per se.

Offline

Board footer

Powered by FluxBB