## 安装geth时:解决Error(while upgrading Bor): build github.com/ethereum/go-ethereum/cmd/geth: cannot load hash/maphash: malformed module path “hash/maphash”: missing dot in first path element
Description: This is because your Go Version is slightly outdated.
Solution: The recommended Go version is 1.15.x and above
Error的是安装的go版本太低了, 安装一个1.15.x以上版本的就ok了
go最新版安装方法
-
如果有旧版本先卸载旧版本
sudo apt-get remove golang
sudo apt-get remove golang-go
sudo apt-get autoremove -
安装新版本
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go -
最后查看版本信息
go version