Skip to content

Commit

Permalink
Ubuntu.md: update for Go 1.22
Browse files Browse the repository at this point in the history
Go 1.22 has been added to the Ubuntu PPA.

Change-Id: I81df57dd6c69578a21a6a08981f726feef09ce9f
Reviewed-on: https://go-review.googlesource.com/c/wiki/+/569555
Commit-Queue: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
longsleep authored and gopherbot committed Mar 7, 2024
1 parent 1ce1b83 commit a61903e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ There are some other options for Debian based systems like Ubuntu. These package

## Using PPA

If you're using Ubuntu 18.04, 20.04 or 22.04 (amd64, arm64 or armhf), then you can use the [longsleep/golang-backports PPA](https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports) and update to Go 1.21.
If you're using Ubuntu 18.04, 20.04 or 22.04 (amd64, arm64 or armhf), then you can use the [longsleep/golang-backports PPA](https://launchpad.net/~longsleep/+archive/ubuntu/golang-backports) and update to Go 1.22.

```
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go
```

> **Note that `golang-go` installs latest Go as default Go. If you do not want that, install `golang-1.21` instead and use the binaries from `/usr/lib/go-1.21/bin`.**
> **Note that `golang-go` installs latest Go as default Go. If you do not want that, install `golang-1.22` instead and use the binaries from `/usr/lib/go-1.22/bin`.**
## Using snap

Expand All @@ -27,4 +27,5 @@ Using [snaps](https://snapcraft.io/go) also works quite well.
```
sudo snap install --classic go
```

> A restart may or may not be required for the command to be recognized depending on your system.

0 comments on commit a61903e

Please sign in to comment.