1
Help us understand the problem. What are the problem?

posted at

Organization

Ubuntuに好きなGoのバージョンをaptでインストールする

golang-backportsをapt repositoryに追加する

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

バージョンを指定してgoをインストールする

sudo apt install golang-1.18

設定

~/.profile
GOPATH=~/go
GOROOT=/usr/lib/go-1.18

PATH=$GOROOT/bin:$PATH

Register as a new user and use Qiita more conveniently

  1. You can follow users and tags
  2. you can stock useful information
  3. You can make editorial suggestions for articles
What you can do with signing up
1
Help us understand the problem. What are the problem?