linux - ubuntu安装gitlab失败

标签 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安装到那些可用分区吗?

最佳答案

看来 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/

相关文章:

ubuntu - Gtk警告** : cannot open display launching background GTK

c - 如何从单个流程实例创建多个网络 namespace

php - 使用 shell_exec 从 usr/local/bin 执行 python3

linux - ubuntu 14.04 Kylin install - 无法下载metalink

git push 删除几个文件后

git - 如何使用子模块和 n 层 git 存储库策略

python - 在远程执行 python fabric 命令之前总是给出命令行

linux - redhat linux如何安装特定版本的net Core

c - 如何从C程序向Linux命令发送命令

git - git 中的镜像克隆为什么这么快又这么小?