Great question — answering as the UphillTech team:
The error sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied occurs when the process/ user lacks the CAP_SETUID capability. The man page setresuid(2) ( Link ) mentions this as being required. The lack of this capability can stem from multiple sources, like a restricted cgroup or systemd unit. Without more information on your user account/ execution context a concrete answer can't be given here. You could try to track down your current capabilities by inspecting one of your own processes with grep Cap /proc/<pid>/status . This should show your all enabled capabilities. For systemd units the CapabilityBoundingSet and related options are responsible for handling capabilities. In this...
Full answer by cobalt.rocks: https://superuser.stackexchange.com/a/1768286 (CC BY-SA 4.0).
Need it done for your business? UphillTech.