blob: 258a4a06f8ed4654b06caf3b7c85c2f1d994d50c [file] [log] [blame] [view]
Brad Fitzpatrick9259a692017-03-22 10:08:48 -07001Try:
Albert Wangcfdc57f2016-03-12 16:33:05 -08002
3```
Fazle Arefind7622c12017-03-24 02:26:22 +11004$ sudo apt-get install golang-go
Albert Wangcfdc57f2016-03-12 16:33:05 -08005```
6
Brad Fitzpatrick1fb90112017-03-22 10:09:32 -07007... but if that's too old for you, try:
世外桃源4f600cd2016-10-14 09:51:09 +08008
Thiago Avelino00e9b662017-03-13 21:40:39 -03009```
Fazle Arefind7622c12017-03-24 02:26:22 +110010$ sudo apt-get install golang-1.8-go
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070011```
12
David Landry43f8a8a2017-09-06 16:25:31 -040013> Note that golang-1.8-go puts binaries in /usr/lib/go-1.8/bin. If you want them on your PATH, you need to make the change yourself.
14
Chris Glassbcab2702017-06-08 01:04:25 +020015Using snaps also works quite well:
16
17```
18# This will give you go 1.8
19$ snap install --classic go
20```
21
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070022Or use Go's official (non-Deb) downloads:
23
24https://golang.org/dl/
25
RPiAwesomeness66ed20d2017-03-26 09:58:13 -040026If you're using Ubuntu 16.04 LTS and are unable to install `golang-1.8-go`, then you can also use the `longsleep/golang-backports` PPA:
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070027
RPiAwesomeness66ed20d2017-03-26 09:58:13 -040028```
29sudo add-apt-repository ppa:longsleep/golang-backports
30sudo apt-get update
31sudo apt-get install golang-go
32```
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070033