Ubuntu中安装了go,但是root下,不能用

在root下输入go version命令后显示

oot@ubuntu-virtual-machine:/home/ubuntu# go -version

Command 'go' not found, but can be installed with:

snap install go         # version 1.18.2, or
apt  install golang-go  # version 2:1.13~1ubuntu2
apt  install gccgo-go   # version 2:1.13~1ubuntu2

See 'snap info go' for additional versions.

root@ubuntu-virtual

猜你喜欢

转载自blog.csdn.net/weixin_42375493/article/details/125206863