现在我正在尝试为托管在虚拟机上的 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安装到那些可用分区吗?
最佳答案
看来 gitlab 没有发布 wily 的 deb —— 仅适用于 LTS 版本(在撰写本文时,trusty
/xenial
),您可能可以通过将 xenial (16.04) deb 放到 wily
上来偷偷溜过,但是因为它们是相当兼容的发行版。 (但我强烈建议升级到 LTS 版本)。
this page 上列出了下载和安装特定 deb 的说明。
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce-XXX.deb/download
dpkg -i gitlab-ce-XXX.deb
关于linux - ubuntu安装gitlab失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44439546/