无法在ubuntu上安装gitlab

时间:2017-06-08 15:12:42

标签: linux git ubuntu gitlab

现在我正在尝试为托管在虚拟机上的ubuntu安装gitlab。它的版本是15.10,它是64位。我尝试按照tutorial安装它。但我得到了这样的错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gitlab-ce

/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/ wily main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ wily main

您知道我该如何解决这个问题吗?非常感谢提前!

编辑:

安装版本为16.04的ubuntu后,以前的错误不再存在。但现在出现一个新的:( 当我运行apt-get install gitlab-ce时,我得到了无可用空间的错误。我跑了df -Th,这是输出

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  2.6G     0  2.6G   0% /dev
tmpfs          tmpfs     524M  7.7M  516M   2% /run
/dev/sda1      ext4      4.6G  4.1G  245M  95% /
tmpfs          tmpfs     2.6G   21M  2.6G   1% /dev/shm
tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
tmpfs          tmpfs     2.6G     0  2.6G   0% /sys/fs/cgroup
tmpfs          tmpfs     524M   56K  524M   1% /run/user/1000

所以我可以使用一些分区。你知道如何将gitlab安装到那些可用的分区吗?

2 个答案:

答案 0 :(得分:1)

似乎gitlab没有发布numberOfGamesPlayed % 10 == 0的deb - 仅针对LTS版本(撰写本文时为wily / trusty),您可能能够通过将xenial(16.04)deb放到xenial上来偷偷摸摸,但因为它们是相当兼容的分布。 (但我强烈建议升级到LTS版本。)

下载和安装特定deb的说明列在this page

wily

答案 1 :(得分:0)

https://packages.gitlab.com/gitlab/gitlab-ce

If you are not comfortable installing the repository through a piped script, you can find the entire script here and select and download the package manually and install using

curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce-XXX.deb/download
dpkg -i gitlab-ce-XXX.deb

尝试使用xenial软件包,只需一个ubuntu版本。

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce=9.2.5-ce.0

https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.2.5-ce.0_amd64.deb

或可靠(1 ubuntu版本更低)。有人建议可信赖具有更高的兼容性,因此您可以先尝试。但我同意你应该发布 - 升级到ubuntu 16.04

https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_9.0.10-ce.0_amd64.deb

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce=9.0.10-ce.0