Install Golang 1.9:
wget https://storage.googleapis.com/golang/go1.9.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.9.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin # put into ~/.profile
If already installed old golang with apt-get:
sudo apt remove golang
sudo apt-get autoremove
source .profile
Test:
go version
To summarize (and learn md formatting):
1. Look up the most recent go version:
Seems like
1.10.2
just came out!2. Copy the download link:
3. Paste the following, line by line:
If
wget
fails with an error like this, your server time might be wrong:To check your server time, enter
You can set the time manually:
If everything else fails, you can also give up and install go with Go Version Manager (gvm).