This shouldn't have happened unless you included '*' after golang* which causes the deletion of all packages. We would be able to access your funds remotely if we had your admin.macaroon and tls certificate. Without them, the only solution I can think of is to shut down your Pi completely and copy the wallet and the channel state files. Technically, backing up .lnd folder should be enough and I would advise you to copy the whole folder once you shut down your Pi. Channel.db is located in
/home/username/.lnd/data/graph/mainnet and wallet.db in
/home/username/.lnd/data/chain/bitcoin/mainnetDon't install Go using
apt-get golang. Do it manually. Enter the following commands as a root:
cd /usr/local/ && sudo wget https://dl.google.com/go/go1.11.5.linux-armv6l.tar.gzsudo tar -xvf go1.11.5.linux-armv6l.tar.gzNow, run these commands as the user in whose directory you want to use Go and log in again.
export GOROOT=/usr/local/goecho 'export GOPATH=$HOME/go' >> ~/.profileecho 'PATH="$HOME/go/bin:$PATH"' >> ~/.profile