0

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?

5
  • apt update and try again? Commented Jun 8, 2017 at 15:45
  • @AnthonySottile Do you mean apt-get install update? I have done that Commented Jun 8, 2017 at 15:47
  • No, I mean either apt update or apt-get update (probably with sudo) Commented Jun 8, 2017 at 15:52
  • @AnthonySottile After apt update, the error still exists Commented Jun 8, 2017 at 16:10
  • Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. Also see Where do I post questions about Dev Ops? Commented Jun 9, 2017 at 10:24

3 Answers 3

1

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
Sign up to request clarification or add additional context in comments.

14 Comments

Thanks for your answer, but got such an error: dpkg: error processing archive gitlab-ce-XXX.deb (--install): cannot access archive: No such file or directory Errors were encountered while processing: gitlab-ce-XXX.deb
Do you mean replace wily by trusty?
You need to fill in XXX with some version as the installation instructions indicate (such as 9.2.5-ce.0)
But the available package is with ee instead of ce. I tried gitlab-ce_9.2.5-ce.0_amd64.deb but it still doesn't work. The same error of no such file is still there
Here's one that worked for me: https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce_9.2.5-ce.0_amd64.deb/download
|
1

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

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.