When you go to the official Go installation page you see the following:
- Download the archive with the current stable version of Go and then extract it to the /usr/local folder.
- Run the following command in the terminal:
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
- Add /usr/local/go/bin to the
PATH
environment variable. To do that, you can add the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):
export PATH=$PATH:/usr/local/go/bin
However, in my case I could not extract the archive to /usr/local folder through sudo…
To solve this issue I came to the /usr/local folder:
cd /usr/local
and extracted the downloaded archive there:
sudo tar xzvf ~/Downloads/Jupiter_Radiance_theme_icons.tar.gz
Everything worked out.