2

I am trying to install GitLab on my Pi according to the official instructions.

Until this step everything seems to be working fine:

seb@raspi:~ $  sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo bash
Detected operating system as raspbian/stretch.
Checking for curl...
Detected curl...
Checking for gpg...
Detected gpg...
Running apt-get update... done.
Installing apt-transport-https... done.
Installing /etc/apt/sources.list.d/gitlab_raspberry-pi2.list...done.
Importing packagecloud gpg key... done.
Running apt-get update... done.

The repository is setup! You can now install packages.

But then the when I try to install it, the package cannot be found.

seb@raspi:~ $ sudo apt-get install gitlab-ce
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
E: Paket gitlab-ce kann nicht gefunden werden.

I have no idea what I am doing wrong here? Any idea why this is not working?

I'm running the latest Raspian (Stretch) on a 3B+.

edit

seb@raspi:~ $ cat /etc/apt/sources.list.d/gitlab_raspberry-pi2.list
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/raspberry-pi2

deb https://packages.gitlab.com/gitlab/raspberry-pi2/raspbian/ stretch main
deb-src https://packages.gitlab.com/gitlab/raspberry-pi2/raspbian/ stretch main
Greenonline
  • 2,969
  • 5
  • 27
  • 38
sbstnzmr
  • 133
  • 6

1 Answers1

2

It appears that GitLab only build packages for Raspbian Jessie, not Stretch. You can see in the repo link from the sources file that all the recent releases are tagged "raspbian/jessie", which is bad sign. I did a bit more searching and this issue confirms that's the case; builds are only available for Jessie at the moment. Your options:

  1. Downgrade to Raspbian Jessie.
  2. Build GitLab from source using their provided instructions.
  3. Try this hack which suggests running sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/raspberry-pi2/script.deb.sh | sudo os=raspbian dist=jessie bash to trick the script into thinking you have Jessie. Note that this might be a poor idea in case you mix Stretch packages with Jessie ones, but this option is provided nevertheless if you want a quick fix to try.
Aurora0001
  • 6,357
  • 3
  • 25
  • 39