我已经通过sudo apt install golang-1.10-go安装了go,但是之后我无法执行go,因为shell告诉我go没有安装。我试着重新安装go。这告诉我,它是安装的,因为最初的安装没有给我任何错误。我在过去十年里一直在使用linux,并且不得不使用ms系统,并且想在ubuntu子系统中四处游玩,行为是否像预期的和正常的?
rpickhardt@DESKTOP-RQQSLJR:~$ sudo apt install golang-1.10-go
Reading package lists... Done
Building dependency tree
Reading state information... Done
golang-1.10-go is already the newest version (1.10-1ubuntu1~16.04.1).
The following package was automatically installed and is no longer required: libfreetype6
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
rpickhardt@DESKTOP-RQQSLJR:~$ go
The program 'go' is currently not installed. You can install it by typing: sudo apt install golang-go 发布于 2018-06-21 18:44:31
美洲豹说:“来自https://serverfault.com/questions/894500/program-go-is-currently-not-installed-on-ubuntu-16-04的模仿”
安装到/usr/lib目录下。所以在我的电脑上,这个sym链接解决了这个问题
sudo ln -s /usr/lib/go-1.9/bin/go /usr/bin/go
https://askubuntu.com/questions/1048580
复制相似问题