How to install GitLab on Ubuntu 20 without 'unable to locate package gitlab-ee gitlab-ce' errors

How to install GitLab on Ubuntu 20 without 'unable to locate package gitlab-ee gitlab-ce' errors

Cameron McKenzie

4 года назад

15,680 Просмотров

Here I show you how to install the on premises edition of GitLab on Ubuntu 20.
This Ubuntu GitLab install uses version 20 of the operating system, which has the potential to cause some problems as GitLab isn't quite ready for the standard install on the recently released Ubuntu 20.

The proper steps outlined here will trigger an "'unable to locate package gitlab-ee" error when you try to install GitLab on Ubuntu 20. I hit this in the example and show you how to fix it. You won't get that on earlier versions, just Ubuntu 20.

I've published this in July 2020. GitLab will have their Ubuntu libraries udpated soon.
Here are the commands used to do the install. I use gitlab.mcnz.com as the domain name, but you can use localhost or add a domain name to your local hosts file.

sudo apt-get update
sudo apt-get install
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get install -y postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
$ sudo EXTERNAL_URL="https://gitlab.mcnz.com" apt-get install gitlab-ee


sudo apt-get update
sudo apt-cache search gitlab-ce

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

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash x
sudo EXTERNAL_URL="https://gitlab.mcnz.com" apt-get install gitlab-ee x


curl -L -o gitlab-ee_13.0.6.deb https://packages.gitlab.com/gitlab/gitlab-ee/packages/debian/buster/gitlab-ee_13.0.6-ee.0_amd64.deb/download.deb

sudo EXTERNAL_URL="http://gitlab.mcnz.com" apt install ./gitlab-ee_13.0.6.deb

Тэги:

#git #gitlab #github #ubuntu #installation #tutorial #example #cameronmcnz
Ссылки и html тэги не поддерживаются


Комментарии: