Can no longer boot OS

Hi,

I somehow managed to accidently delete all libcurl files (please don’t ask me how I managed this) and now the system will not boot. It gets stuck after “[OK] Reached target Graphical Interface.”

Tried pressing ctrl+alt+F2 and using pacman or yay, but they no longer work. Very much a complete newbie (obviously), so please help. I have no idea where to even start and would very much like to not need a clean install of Endeavour OS.

Thank you for your time.

First: @Galanton welcome to the forum! :purple_heart:
Now to your problem …

Can you please provide the output of what happens if you try to run yay or pacman?

To repair that you might need a live system from EOS. Do you have USB stick with it?
If yes, you have to enter your system with arch-chroot. Please see https://discovery.endeavouros.com/system-rescue/arch-chroot/2022/12/ for more instructions. If you manage to get into arch-chroot you need to reinstall all libcurl-related packages.

Thank you @marteng69!

Can you please provide the output of what happens if you try to run yay or pacman?

All I get is the following: “yay/pacman: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No sich file or directory”.

To repair that you might need a live system from EOS. Do you have USB stick with it?

Yes I do! I will check the guide out and get back to you! Thank you for answering so fast.

Regarding the arch-chroot guide: mounting everything works, but when I try the “sudo arch-chroot /mnt” all I get is “sudo: arch-chroot: command not found”.

The command is in package arch-install-scripts.
For libcurl you need package curl.

I’m sorry @manuel but I don’t think I understand what I’m supposed to do with that information. Could you please clarify?

Please post output of sudo lsblk -f when running the live system.

1 Like

OK. Please follow the instructions of @marteng69 to boot into the live environment first. Then provide the requested information about your disks and partitions.
Later you can use arch-chroot as mentioned in the link he provided to be able to modify the installed system.
And then it should be quite easy to run the needed commands.

All in all, looks like the problem is quite straightforward to solve.

2 Likes

Please post output of sudo lsblk -f when running the live system.

This is what I get:

NAME      FSTYPE   FSVER        LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0     squashfs 4.0                                                                 0   100% /run/archiso/airootfs
sda       ext4     1.0          Media       1d7f066b-0678-43c1-b7f1-fac1913e8277                
sdb       iso9660  Joliet Exten EOS_202601  2026-01-12-19-26-24-00                              
├─sdb1    iso9660  Joliet Exten EOS_202601  2026-01-12-19-26-24-00                     0   100% /run/archiso/bootmnt
└─sdb2    vfat     FAT32        ARCHISO_EFI 6965-4AE0                                           
nvme0n1                                                                                         
├─nvme0n1p1
│         vfat     FAT32                    6FA8-4E80                                           
└─nvme0n1p2
          ext4     1.0          endeavouros b67f47a9-cb27-4e7a-ae27-8000dd6209c8   

I managed to use arch-chroot via the USB OS to get into the installed system on the PC. How do I go about installing the libcurl files now that neither yay or pacman works?

Thank you both for all the help and patience. :folded_hands:

1 Like

Best way would be using pacman-static:
https://wiki.archlinux.org/title/Pacman#Using_pacman-static
As written in the page try first to reinstall pacman (and then yay). If you managed to install yay then simply start an update by typing yay in your arch-chroot. This should fix most of your problems. May be you have to reinstall curl additionally in arch-chroot.
Good luck!

That worked! System is up and running. Thank you so much for all the help! Glad I chose Endeavour as my first try with Linux because this forum is incredible.

1 Like