LightDM broke, can't reinstall it as I can't connect to internet. Can't chroot either

you are using yay ? or pacman??
for yay you would need to su username before using it if inside chroot… because in the chroot you are root by default…
If it was pacman you may need to reinstall keyring before the update… if you where not updating the system for a long time… but it could be also you try running update outside the chrootrd terminal or… you are not chrooted correctly…

All inside :crystal_ball: i can see… check the prompt and ls /home what should repeat your users name…

PGP key 0F65C7D881506130, "Maxime Gauduin <alucryd@archlinux.org>"

is part of the archlinux keyring …

pacman -Sy archlinux-keyring

I’m using pacman. It shows the directory with my name when I do ls /home, so I think everything’s right in that regard. I also see root@endeavouros to the left of my commands.

I haven’t used this laptop in around a month so it’s likely that could be the problem.

When I try running pacman -Sy archlinux-keyring I get the same issue, asks for

:: Proceed with installation? [Y/n] y (1/1) checking keys in keyring [--------------------------------------] 100% downloading required keys... :: Import PGP key 6D42BDD116E0068F, "Christian Hesse <eworm@archlinux.org>"? [Y/n] y error: key "6D42BDD116E0068F" could not be imported error: required key missing from keyring error: failed to commit transaction (unexpected error) Errors occurred, no packages were upgraded.

try …

pacman -Scc and give y for yes …
pacman -Sy archlinux-keyring

or:

pacman -U /var/cache/pacman/pkg/archlinux-keyring*.pkg.tar.zst

or:
wget https://mirror.theash.xyz/arch/core/os/x86_64/archlinux-keyring-20230320-1-any.pkg.tar.zst && pacman -U archlinux-keyring-20230320-1-any.pkg.tar.zst

or –

set sig level in /etc/pacman.conf to optional:


SigLevel    = Optional

I tried the three first ones and unfortunately none of them worked. When I try to pacman -Sy archlinux-keyring it still asks me to import a key, after which it gives me the same error.

I have tried to set the SigLevel to optional but I get the following error:
[root@EndeavourOS# sudo nano /etc/pacman.conf nano: error while loading shared libraries: /usr/lib/libmagic.so.1: file too short
i get the same error even if i dont run as sudo

looks like some serious damage to the installed system to me… you can try editing the file from the LiveSession running xed as root and open the same /mnt/etc/pacman.conf from outside the chroot…
sudo xed /mnt/etc/pacman.conf

1 Like

I’m afraid that didn’t do much, I was able to edit that in the live session, but it still asks me for the pgp if I try to install anything in the chroot.

In chroot, try the following to see if the keys will get reset:

mv /etc/pacman.d/gnupg /etc/pacman.d/gnupg.old
pacman-key --init
pacman-key --populate archlinux endeavouros
pacman -Syy archlinux-keyring endeavouros-keyring
pacman -Su

Thank you, I don’t have any problems with pgp keys now, but I got a load of errors, followed by Errors occurred, no packages were upgraded. I don’t think I should post all the errors here as some of them contain my name but they all follow the format
[PROGRAM] [directory to file] exists in filesystem
example:
zenity: /usr/share/zenity/zenity-list.png exists in filesystem
I think I was able to install lightdm though (and I just updated one of my unrelated programs just to see if it’d work and it did). Not sure if that solved all the problems, though, especially with the desktop panels missing in the last session I was logged in

Please read through the following post. It contains all the steps necessary for solving “…exists in filesystem” issue:

1 Like

Thank you all so much, I was then able to get back on and everything’s still here.
Not sure what to mark as “solution” as everything helped so I will go with that other comment.
I’m still having issues with my xfce panels, and doing xfce4-panel -r doesn’t seem to do anything. But I guess that’s fine, I’ll just use kde for now.

1 Like

You shouldn’t have Xfce and Kde installed together. It’s a bad idea IMHO. :wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.