``` GOPATH=$HOME/go go get github.com/google/pprof```
> On newer go version (since 1.17) `gog get` is deprecated. Try to use `go install github.com/google/pprof@latest` instead of `go get github.com/google/pprof`.
Be careful, an error may occur `undefined os.UserConfigDir`. In this case, you will have to update the go version or use an older version of pprof. see [this ink](https://github.com/google/pprof/issues/538).
It seems that `sudo apt install golang-go` works :-)