I am having trouble with installing the latest version of golang on Ubuntu 16.10. After running the sudo umake go
command I get the message saying to choose the installation path with the default path suggested as /home/$user/.local/share/umake/go/go-lang
. This does not appear to be what I want as typing in the go
command afterwards gives me the message: The program 'go' is currently not installed. You can install it by typing:
sudo apt install golang-go
. However, using apt to install golang will only give me the older 1.6 version.
I have tried changing the installation path when using umake, but I then get a message that the directory specified will be deleted and everything in it replaced. I am not sure where to go from here. Thanks in advance.
After making sure I have the latest version (16.11.1) of umake I ran umake -r go
. Then I tried again and ran umake go
. This is the error message I got:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/umake/tools.py", line 158, in wrapper
function(*args, **kwargs)
File "/usr/lib/python3/dist-packages/umake/frameworks/baseinstaller.py", line 409, in decompress_and_install_done
self.post_install()
File "/usr/lib/python3/dist-packages/umake/frameworks/go.py", line 75, in post_install
"GOROOT": {"value": self.install_path, "keep": False}})
File "/usr/lib/python3/dist-packages/umake/tools.py", line 450, in add_env_to_user
with open(profile_filepath, "a", encoding='utf-8') as f:
PermissionError: [Errno 13] Permission denied: '/home/$user/.profile'
After using umake to uninstall go I ran the sudo chown -R $USER /home/$USER
command, but am still getting the same error when I then run umake go
.