did you try the commands without sudo? usually this is not needed as root user.
sudo
Do you have a backup?