How to install golang 1.9 on ubuntu 16.4 ?

ubuntu 16.04 default package Golang 1.6.x. for that you need add or upgrade repository, follow the step below :

sudo add-apt-repository ppa:gophers/archive
sudo apt update

sudo apt-get install golang-1.9-go


The add go the go path to the your PATH:

echo "export PATH=\$PATH:/usr/lib/go-1.9/bin" >> ~/.profile

Then finally load the new path:

source ~/.profile

check whether the installation process is correct

go version

Note : Although everything should now work, it might be wise to just log out and back in to make sure other programs also get the updated path.


Alfin F

Technopreneur , Developer, Advisor

More Posts

Follow Me: