#Hi im trying to install golang on my WSL2 and getting wrong version

11 messages · Page 1 of 1 (latest)

unkempt willow
#

As title says, im running pwsh sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf /mnt/c/Users/User/Desktop/go1.23.4.linux-amd64.tar.gz but when I run sh go version it prints go1.19.8 linux/amd64.

Idk please help 🙏

wind marlin
#

did you uninstall the verison you downloaded with your package manager

unkempt willow
#

tried that

wind marlin
#

what is the output of which go

unkempt willow
#

/usr/bin/go

celest goblet
#

next step of install instructions is to add to your PATH

#

and in your case remove or symlink the one in /usr/bin

unkempt willow
#

done...

terse sequoia
celest goblet
unkempt willow
#

yep it's solved now