I want to upgrade my go to the latest version. But before installing the new version I must delete the existing one. My OS is Ubuntu 18.04. So I run
rm -rf /usr/local/go but the answer I get is:
rm: cannot remove 'go': Permission denied.
I have changed the directory permissions with
sudo chmod -R 777 go, but the result is the same.
What do you recommend?