Removes older versions
sudo rm -rf /usr/local/go* && sudo rm -rf /usr/local/go
Change version as applicable
VERSION=1.11
OS=linux
ARCH=amd64
cd $HOME
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz
tar -xvf go$VERSION.$OS-$ARCH.tar.gz
mv go go-$VERSION
sudo mv go-$VERSION /usr/local
Open up ~/.bashrc
and update/add the following near the bottom (replace with correct go version)
# configure go-1.11
export GOROOT=/usr/local/go-1.11
export GOPATH=$HOME/projects/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$HOME/projects/go/bin
cuando meto este comando: wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz
Me sale el siguiente error:
Resolving storage.googleapis.com (storage.googleapis.com)... 142.250.78.80, 142.250.78.112, 142.250.78.144, ...
Connecting to storage.googleapis.com (storage.googleapis.com)|142.250.78.80|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-02-25 09:30:46 ERROR 404: Not Found.