Installing on ubuntu 2023.04 VM fails


I tried to install gitlab on an Ubuntu 2023.04 VM (VirtualBox), but I got not very far.
After running the first 2-3 sets of instructions, I was not able to list any official gitlab packages.
(apt-cache search gitlab / gitlab-ce / gitlab-ee)
apt-get update and apt-get cleanup was not helping.
After seting up an Ubuntu 2022.04.3 VM, it was listed fine.
BTW: I was not able find in the install instructions the CE version :slightly_frowning_face: (It’s obvious for advanced gitlab users, but for beginners it’s not so much)

Debug infos:
ubuntu 23.04 lunar

deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] lunar main
deb-src [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] lunar main


Because Ubuntu 23.04 isn’t supported. Supported Ubuntu distros are the LTS ones, so 18.04, 20.04, 22.04.

If you want to run it on 23.04, etc the /etc/apt/sources.list.d/itlab_gitlab-ce.list file and set the config for Ubuntu 22.04 Jammy, and it will list the file and be able to install it. In theory this will work, but it’s not a supported option so if something doesn’t work, then you cannot really rely on support.

Either that, or use LTS distros instead of attempting to use 23.04 which is not an LTS release.

Hi Iwalker,

This is not a complaint, more like a feedback, that something got sideways.
I tried with 2204 too, but it got other issues :frowning:
I’m trying to make it work, but still no luck…
It’s updating from your repository, but apt-cache is not listing gitlab-ce / gitlab-ee.
apt policy does not lists your repository :frowning:

Will try again maybe tomorrow from fresh OS install.

It should work, try instructions here: Download and install GitLab | GitLab

Alternatively, remove all the file from /etc/apt/sources.list.d that relate to gitlab, and try again using the instructions link provided. The problem is the script will download and prepare the file most likely for the distro name, so you may need to edit it manually to get it to work, eg: putting jammy which is 22.04.