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.
First: @Galanton welcome to the forum!
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.
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”.
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.
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?
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.