You are not logged in.

#1 2024-04-21 10:21:28

azlaan
Member
Registered: 2024-04-21
Posts: 2

I can't login into my desktop

I run my arch on gnome and was updating the system. The system froze during update, I tried waiting but nothing worked so I used the power button to turn it completely off. When I tried loging in it started giving me :- https://imagebin.ca/v/7zErQblLuBss

Now I went through guides online they said using Ctrl alt f2 etc but that didn't work. Other said to use live iso and use mount and chroot so went and did that, I couldn't do it at first and faced various problems but atlast I successfully did and one command updated the system.

mount /dev/nvme0n1p2/mnt
mount /dev/Nvme0n1p2 /mnt/boot
arch-chroot/mnt
Pacman -Syu

I was trying to use commands to mount and chroot but I couldn't go pass the second command, idk why after trouble shooting I used this command

pacstrap /mnt base linux linux-firmware

And it triggered an update and after the update I tried
Arch-chroot/mnt
And Pacman -Syu

And rebooted and the problem is still there

This is the picture commands I did after trying again
https://imagebin.ca/v/7zF8WaXU0vW4

All of this but the problem at the top still persists
https://imagebin.ca/v/7zErQblLuBss

I have important data on the drive, If I couldn't recover the system I would still want the data from the drive. If you know how to solve this kindly help me or help me to recover my data, thanks.

Last edited by azlaan (2024-04-21 10:23:34)

Offline

#2 2024-04-21 14:14:56

seth
Member
Registered: 2012-09-03
Posts: 51,757

Re: I can't login into my desktop

Boot the install iso, mount the root partition of the installed system into /mnt and if you've a boot partition, mount that into /mnt/boot
Do NOT chroot.
Make sure you've an internet connection.

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' > /tmp/howbadisit.txt
cat /tmp/howbadisit.txt | curl -F 'file=@-' 0x0.st

Also look at that file - everything that shows up w/ a broken mtree needs to be re-installed w/

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg --dbonly list_of_broken_packages

Afterwards every pacakge that shows up w/ suspicious file deviations (in addition to the ones w/ the broken mtree) needs to be re-installed

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg list_of_more_broken_packages

Every deviation in /usr/bin and /usr/lib is a problem.
Some/most deviations in /etc are perfectly normal.
Everything else is gray area.

If the list of broken packages is (really. not "five") overwhelming you can also just re-install all packages
nb. that you'll still have to issue --root and --cachedir and fix the mtrees w/ --dbonly first. Whether you install all or just the affected pacakges.

Ftr., nvidia?

Offline

#3 2024-04-21 16:29:55

azlaan
Member
Registered: 2024-04-21
Posts: 2

Re: I can't login into my desktop

I followed and tried solving conflicting pkgs, since they are above 500 so I went and trying reinstalling all

I tried doing Pacman -S $(Pacman -Qnq)
It gives this :-

https://imagebin.ca/v/7zGvrPvEGJHI

Offline

#4 2024-04-21 16:33:48

seth
Member
Registered: 2012-09-03
Posts: 51,757

Re: I can't login into my desktop

I followed and tried solving conflicting pkgs

You followed and tried what?

1. DO NOT CHROOT!
2. You still need to operate on the installed system, not the install iso:

pacman -S --root /mnt --cachedir /mnt/var/cache/pacman/pkg --dbonly $(pacman --root /mnt -Qnq)
pacman -S --root /mnt --cachedir /mnt/var/cache/pacman/pkg $(pacman --root /mnt -Qnq)

Last edited by seth (2024-04-21 16:34:18)

Offline

Board footer

Powered by FluxBB