So I just fixed my Arch KDE install this morning (I broke plasma after an update) and now I have an issue with sudo. It simply doesn’t do anything when I use it manually in the terminal and when I use yay, it gives an exec format error for the sudo file. After checking on the file using both the file command and kate. Both say that the file is empty. Is that supposed to be the case? If not, how do I fix it?

  • @[email protected]
    link
    fedilink
    111 year ago

    If you have access to root, login to root and reinstall sudo from pacman, if not then you’ll probably have to chroot into it and install it from there.

  • @yoevli
    link
    English
    31 year ago

    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.

    • @[email protected]
      link
      fedilink
      61 year ago

      don’t copy over the sudo binary, chroot I to it and then reinstall the sudo package with pacman

  • @Eheran
    link
    -161 year ago

    An update broke your Linux? I thought that only happens with windows and Mac?

    • @[email protected]OP
      link
      fedilink
      51 year ago

      It depends on what you have installed and what you do with your device. I just so happen to do a ton of stuff and have way too many packages installed. The big difference is that you don’t have to restart with Arch, meaning you might not know when something broke until it loads up the new code later.

      • Victor
        link
        41 year ago

        And you don’t have to reinstall from scratch either – you can just fix it, which is very nice. 🙂