【问题标题】:Install gitlab-ce on ubuntu server 17.04在 ubuntu 服务器 17.04 上安装 gitlab-ce
【发布时间】:2017-11-28 18:30:14
【问题描述】:

我正在尝试在运行 Ubuntu 服务器 17.04 的系统上安装 gitlab-ce 软件包。我按照官方安装说明here.

首先我跑了:

sudo apt-get install curl openssh-server ca-certificates postfix

我已经安装了所有这些。然后我跑了:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

这也很好用。但是当我尝试运行时

sudo apt-get install gitlab-ce

我收到以下错误消息:

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

我知道可以在 Ubuntu 服务器 17.04 上安装 gitlab,因为我已经在之前的安装中完成了它。不幸的是,我从头开始重新安装了操作系统,我不记得我是如何安装 gitlab 的。

提前感谢您的帮助!

【问题讨论】:

    标签: linux ubuntu gitlab ubuntu-server ubuntu-17.04


    【解决方案1】:

    我放弃了“完整”的自动化脚本,因为它似乎不适用于 17.04... 无论如何。我从https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb抓到了最新的包

    curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.3.0-ce.0_amd64.deb/download
    

    使用包管理器安装它

    sudo dpkg -i gitlab-ce_9.3.0-ce.0_amd64.deb
    

    然后配置它

    sudo gitlab-ctl reconfigure
    

    然后,将您的网络浏览器指向您的新 gitlab 安装,您应该一切顺利...

    Ubuntu 20.04.1

    如果有人遇到这个问题,在尝试在 ubuntu 20.0.4 版本上使用 gitlab 时,生活会容易得多......并且说明和自动化脚本确实有效。 GitLab-CE installation instructions

    在全新安装的 ubuntu 上:-

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

    完成!

    【讨论】:

    • 我也尝试过手动安装,但我使用了不同的文件,似乎没有用...无论如何,谢谢你的帮助,这工作!
    【解决方案2】:

    我遇到了同样的问题(Lubuntu 17.10),在 gitlab 论坛搜索 2 小时后,我找到了 this thread。 所以从我读到的内容来看:Gitlab-ce 还不支持 zesty。 也很简单

    sudo apt-get install gitlab
    

    是一个错误提示,因为它安装了一个名为“praveen”的用户创建的 Ubuntu 软件包,并且 Gitlab 不正式支持它。

    这是我为解决我的问题所做的:

    sudo nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list.save
    sudo nano /etc/apt/sources.list.d/gitlab_gitlab-ce.list
    

    将“zesty”替换为“xenial”(这些文件仅限 root 访问)

    sudo apt update
    sudo apt-get install gitlab-ce
    

    这对我有用。 我花了整个下午来解决这个问题,我希望这个解决方案也适用于你。

    普罗斯特!

    编辑:更正拼写

    【讨论】:

    【解决方案3】:

    在 17.10 上运行安装时遇到了同样的问题。根据他们网站上的一个问题 (https://gitlab.com/gitlab-org/gitlab-runner/issues/2851),这些巧妙的包没有被构建。

    我和@DevX 做了同样的事情,只是改变了他们设置脚本上的参数。

    Howler@GitLab:/tmp$ curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh

    Howler@GitLab:/tmp$ sudo os=ubuntu dist=xenial bash ./script.deb.sh

    Howler@GitLab:/tmp$ sudo apt-get install gitlab-ce

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-05
      • 2017-09-21
      • 2017-09-27
      • 2018-01-16
      • 2018-01-24
      • 2018-09-18
      • 1970-01-01
      相关资源
      最近更新 更多