1,删除旧版本的golang

# apt-get remove golang-go
# apt-get remove --auto-remove golang-go
# apt-get purge --auto-remove golang-go

2,安装最新的golang1.14

# add-apt-repository ppa:longsleep/golang-backports
# apt update
# apt install golang-go

# go version
go version go1.14.2 linux/amd64