Installing on Ubuntu 14.04 x64 Failed: "Unable to locate package gitlab-ce"
Hello all, I have been following the instructions on https://about.gitlab.com/downloads/ for installing GitLab on my x64 Ubuntu 14.04 machine, however it fails when I try to run the apt-get install for gitlab-ce.
# apt-get install gitlab-ce Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gitlab-ce
This is after running the script for adding the gitlab repository, a couple of times, and also running apt-get update. I am not sure exactly what I am doing wrong, as I have followed the instructions exactly. I have also searched for the answer on the internet, but have not had any luck.
Thanks in advance, Ozzie
You ran the following?
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
One way you can check to make sure the proper repositories are available is to look in
/etc/apt/sources.list.d. For example:
$ ls /etc/apt/sources.list.d gitlab_gitlab-ce.list
Yes, I ran that command, several times. Even as root. I can see gitlab_gitlab-ce.list in sources.list.d, but still gives that error.
apt-cache search gilab-ceshows that there is a package?
What happens when you run?
sudo apt-get update sudo apt-cache search gitlab-ce
apt-cache search gitlab-ce prints nothing...
After using an apt-get update, and running apt-cache search again, it still prints nothing when I run apt-cache search. apt-get update just does its thing updating everything.
Can you try
sudo rm -rf /var/lib/apt/lists/* sudo apt-get update sudo apt-get clean sudo apt-get install gitlab-ce
That did a bunch of stuff, but still cant locate package...
Could you post contents of
/etc/apt/sources.list.d/gitlab_gitlab-ce.list? Also when you run
apt-get update, look for lines containing
packages.gitlab.com, there might be some error messages.
# 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/ utopic main deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ utopic main
Here is the stuff related to packages.gitlab.com:
Get:1 https://packages.gitlab.com utopic/main Translation-en_GB Ign https://packages.gitlab.com utopic/main Translation-en_GB Ign https://packages.gitlab.com utopic/main Translation-en
I am not sure if those are error messages, but it has Get:1 and Ign as opposed to Hit with the ones before it.
Well, utopic is Ubuntu 14.10 which is not supported by gitlab and therefore no packages exist for it. You might try changing
/etc/apt/sources.list.d/gitlab_gitlab-ce.list. But I have no idea if it will work or if it will break something.
If you really have 14.04 LTS, then maybe it's a detection bug in installation script.
Apologies, it appears that I have 14.10... It has been a while since I setup Ubuntu, and I guess I mixed up the versions. So, I will try changing it to trusty. Sorry for the trouble...
Oh my god.... Thank you! It works when I change utopic to trusty.
Again, I am sorry for mixing up my Ubuntu version, and causing problems for those of you that posted.
No problem, glad it worked. Close this issue, please.
Status changed to closedToggle commit list
I'm getting this exact error & behaviour and I really am on Trusty 14.04.3 I'm following the installation procedure as root.
One note that may be of interest is that my system is a release upgrade from 12.04 NOT a fresh install.
root@git:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
root@git:~# sudo apt-get install gitlab-ce Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gitlab-ce root@git:~# apt-get update <truncated> Hit https://packages.gitlab.com trusty InRelease Hit https://packages.gitlab.com trusty/main Sources Hit https://packages.gitlab.com trusty/main i386 Packages Get:3 https://packages.gitlab.com trusty/main Translation-en_GB Get:4 http://security.ubuntu.com trusty-security/universe i386 Packages [117 kB] Ign https://packages.gitlab.com trusty/main Translation-en_GB Ign https://packages.gitlab.com trusty/main Translation-en root@git:~# apt-cache search gitlab-ce root@git:~# root@git:~# cat /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/ trusty main deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
I can start a new thread if you prefer to bury this one.
Scratch that I'm a fool. I'm trying to install on a i686 system. There's no package for 32 bit. Sorry all.
It might be worth the install script checking
uname -afor architecture.
Sorry for opening this bug but I have the problem related here.
When I update I receive the message:
E: Unable to locate package gitlab-ce
I am using Ubuntu 14.04.3 LTS