blob: 8860a1485de10b0002331646864d94d73eb3b628 [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
Chris Glassbcab2702017-06-08 01:04:25 +020013Using snaps also works quite well:
14
15```
16# This will give you go 1.8
17$ snap install --classic go
18```
19
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070020Or use Go's official (non-Deb) downloads:
21
22https://golang.org/dl/
23
RPiAwesomeness66ed20d2017-03-26 09:58:13 -040024If 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 -070025
RPiAwesomeness66ed20d2017-03-26 09:58:13 -040026```
27sudo add-apt-repository ppa:longsleep/golang-backports
28sudo apt-get update
29sudo apt-get install golang-go
30```
Brad Fitzpatrick9259a692017-03-22 10:08:48 -070031