How to install Go on Ubuntu 20.04 LTS

When you go to the official Go installation page you see the following:

  1. Download the archive with the current stable version of Go and then extract it to the /usr/local folder.
  2. Run the following command in the terminal:
    rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
  3. 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.

Leave a Comment

Your email address will not be published. Required fields are marked *