VOOZH about

URL: https://qiita.com/fedorax/items/7337935eba375908bde2

⇱ Ubuntu に 最新のgoを入れる #Go - Qiita


👁 Image
1

Go to list of users who liked

6

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@fedorax

Ubuntu に 最新のgoを入れる

1
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

Go to list of users who liked

6
1

Go to list of comments

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

Go to list of users who liked

6