In order to build lnd, Go is required
Note: when upgrading first remove the existing Go: sudo rm -rf /usr/local/go
sudo apt-get update && sudo apt-get -y upgrade
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -xvf go1.13.3.linux-amd64.tar.gz
sudo mv go /usr/local && rm go1.13.3.linux-amd64.tar.gz
mkdir ~/go
emacs ~/.profile
// Place at the end of the file:
GOPATH=$HOME/go
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$GOPATH/bin:$HOME/.local/bin:/usr/local/go/bin:$PATH"
. ~/.profile
If on testnet, lncli needs to be adjusted to specify testnet
alias lncli="lncli --network=testnet"