hashiwa’s blog

技術的なメモを徒然と置いていきます。

GitLabインストール時にはまったこと

GitLabのインストール時にはまったこと

Google Compute Engine の Ubuntu 16.10 上にGitLabをインストールした時にはまったこと。

about.gitlab.com

を見ながらインストールしてたら、gitlab-ceが入らなかった。

$ sudo apt-get install gitlab-ce
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gitlab-ce

gitlab.com

を見てたら、yakketyはいまは使用できないらしい。

$ cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list 
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ yakkety main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ yakkety main

yakketyをtrustyに変えたらgitlab-ceをインストールできた。

$ cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list 
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
$ sudo apt-get update
$ sudo apt-get install gitlab-ce

以上