Matt Holt | af843d3 | 2015-06-11 13:37:21 -0600 | [diff] [blame] | 1 | ## Install package `golang` |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 2 | |
Matt Holt | af843d3 | 2015-06-11 13:37:21 -0600 | [diff] [blame] | 3 | The `golang` Debian package may have already made its way into your Ubuntu distribution. Try this: |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 4 | |
| 5 | ``` |
Shimon Doodkin | e643f46 | 2016-03-04 15:36:09 +0200 | [diff] [blame] | 6 | $ sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable |
| 7 | $ sudo apt-get update |
Matt Holt | af843d3 | 2015-06-11 13:37:21 -0600 | [diff] [blame] | 8 | $ sudo apt-get install golang |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 9 | ``` |
| 10 | |
Shimon Doodkin | e643f46 | 2016-03-04 15:36:09 +0200 | [diff] [blame] | 11 | just note there is golang in ubuntu but it is not up to date the date version might be found at |
| 12 | https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/lxd-stable |
| 13 | |
Matt Holt | af843d3 | 2015-06-11 13:37:21 -0600 | [diff] [blame] | 14 | That is all you need to get `go` working on your system. (You can use `go env GOROOT` to be sure where the Go files are, if you're curious.) Don't forget to create your GOPATH. |
| 15 | |
COLABORATI | c674ec4 | 2015-04-22 13:05:21 +0200 | [diff] [blame] | 16 | |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 17 | ## If that didn't work |
| 18 | |
Matt Holt | af843d3 | 2015-06-11 13:37:21 -0600 | [diff] [blame] | 19 | See http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go |
wrsg | d606dbe | 2015-03-16 23:01:17 +0000 | [diff] [blame] | 20 | |