When trying to run commands as sudo, I get an error
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
I am not running any containers and sudo works fine in the default terminal.
I found this page but there are no instructions as to how this flag can be unset: https://manpages.ubuntu.com/manpages/jammy/en/man8/sudo.8.html