title: Unable to install Go packages
body: <p>When I run <code>go get</code>, I get a permission Denied error and when I try <code>sudo go get</code> I get a GOPATH not set error.</p>
  
  <pre><code>utkbansal@Dell:~$ go  get -u golang.org/x/tools/cmd/...
  go install golang.org/x/tools/cmd/godoc: open /usr/lib/go/bin/godoc: permission denied
  
  utkbansal@Dell:~$ sudo go  get -u golang.org/x/tools/cmd/...
  package golang.org/x/tools/cmd/...: cannot download, $GOPATH not set. For more details see: go help gopath
  </code></pre>
  
  <p>Here are the result of my $PATH, go env and which go commands.</p>
  
  <pre><code>utkbansal@Dell:~$ which go
  /usr/lib/go/bin/go
  
  utkbansal@Dell:~$ go env
  GOARCH="amd64"
  GOBIN=""
  GOEXE=""
  GOHOSTARCH="amd64"
  GOHOSTOS="linux"
  GOOS="linux"
  GOPATH="/home/utkbansal/go"
  GORACE=""
  GOROOT="/usr/lib/go"
  GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
  GO15VENDOREXPERIMENT=""
  CC="gcc"
  GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
  CXX="g++"
  CGO_ENABLED="1"
  
  
  utkbansal@Dell:~$ $PATH
  bash: /usr/lib/go/bin:/home/utkbansal/miniconda/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/go/bin: No such file or directory
  </code></pre>
  
  <p>How do I fix this?</p>
  
  <p>I am using go1.5 from this PPA <a href="https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable" rel="noreferrer">https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable</a> (ppa:ubuntu-lxc/lxd-stable)</p>