How to install the current version of Go in Ubuntu Precise

前端 未结 17 1914
温柔的废话
温柔的废话 2021-01-29 19:08

Running sudo apt-get install golang-stable, I get Go version go1.0.3. Is there any way to install go1.1.1?

17条回答
  •  -上瘾入骨i
    2021-01-29 19:32

    I used following commands from GoLang official repository, it installed GoLang version 1.6 on my Ubuntu 14.04

    sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
    sudo apt-get update
    sudo apt-get install golang
    

    Reference official GoLang Repo https://github.com/golang/go/wiki/Ubuntu it seems this ppa will always be updated in future.

提交回复
热议问题