codelover123
codelover123

Reputation: 187

Fail to install gitlab on ubuntu

Now I am trying to install gitlab for ubuntu that be hosted on a virtual machine. Its version is 15.10 and it is 64-bit. I try to install it following this tutorial. But I got such error:

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

The content of /etc/apt/sources.list.d/gitlab_gitlab-ce.list is :

# 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

Do you know how can I fix this issue? Thanks a lot in advance!

EDIT:

After I installed a ubuntu with version of 16.04, the previous error does not exist anymore. But now a new one occurs :( When I run apt-get install gitlab-ce, I got the error of no avaliable space. I ran df -Th and here is the output

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

So there are some partitions that I can utilize. Do you know how to install the gitlab to those available partitions?

Upvotes: 0

Views: 5434

Answers (3)

Zaw Than oo
Zaw Than oo

Reputation: 9935

Update: 2024, It is work for me.

gitlab-ee: https://packages.gitlab.com/gitlab/gitlab-ee/install#manual-deb

gitlab-ce: https://packages.gitlab.com/gitlab/gitlab-ce/install#manual-deb

As documentation, make sure to replace the config.

enter image description here

And update

sudo apt-get update

And Install

sudo apt-get install gitlab-ee
or
sudo apt-get install gitlab-ce
or
sudo EXTERNAL_URL="http://your.domain.com" apt-get install gitlab-ee
or
sudo EXTERNAL_URL="http://your.domain.com" apt-get install gitlab-ce

Upvotes: 1

yosefrow
yosefrow

Reputation: 2268

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

try using a xenial package its just one ubuntu version higher.

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

or trusty (1 ubuntu version lower). Its been suggested that trusty has higher compatibility so you can try that first. But I agree that you should release-upgrade to 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

Upvotes: 1

anthony sottile
anthony sottile

Reputation: 69914

It seems gitlab does not publish a deb for wily -- only for LTS releases (trusty / xenial at the time of writing), you may be able to sneak by with dropping the xenial (16.04) deb onto wily however as they are rather compatible distributions. (but I would strongly suggest upgrading to an LTS release).

The directions to download and install a specific deb are listed on this page

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

Upvotes: 1

Related Questions