Go Installation on Ubuntu 22.04
Update package index files Download package Remove any previous Go installation by deleting the /usr/local/go folder (if it exists), then extract the archive you just downloaded into /usr/local, creating a fresh Go tree in /usr/local/go: Add /usr/local/go/bin to the PATH environment variable Add below line to the end of file Check the go version Terminal output for reference