this post was submitted on 10 Nov 2023
10 points (91.7% liked)
Arch Linux
7783 readers
20 users here now
The beloved lightweight distro
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It's not meant to be empty. You could fix it by mounting your root partition in a live environment and copying over the sudo binary from the live disk, but without knowing why this happened I'd personally be a bit nervous that other binaries are corrupted as well, so I'd maybe consider reinstalling the OS (preserving the home partition/folder ofc). You could also probably get away with just reinstalling coreutils and fixing any other issues as they crop up if and when they do.
don't copy over the sudo binary, chroot I to it and then reinstall the sudo package with pacman