In my case, changing GOROOT
from /usr/local/go/
to /usr/lib/go/
, remove the problem.
My output of go tool
is:
$ go tool
addr2line
asm
buildid
cgo
...
Instead of:
$ go tool
go: no tool directory: open /usr/share/go/pkg/tool/linux_amd64: no such file or directory
Maybe it will fix your problem too.