1
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu に 最新のgoを入れる

Posted at

はじめに

2017/01/01 現在、Ubuntuリポジトリのgoは、Version1.6です。
このバージョンのgoを使用してビルドした場合に、エラーが発生することがあります。
https://github.com/docker/containerd/issues/337
この記事では、aptのリポジトリに追加して、goのバージョンをアップグレードします。

環境

  • Ubuntu

1.リポジトリの追加

sudo add-apt-repository ppa:jonathonf/golang-1.7

2.aptの更新

sudo apt-get update

3.goのアップグレード

sudo apt-get upgrade golang-1.7

4.不要になったパッケージを削除

sudo apt-get autoremove

5.goのバージョン確認

go version
1
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?