I have an amd64 server that ran Ubuntu 22.04 with GitLab Omnibus installed. I upgraded GitLab to v18.0.0-ce.0, and then upgraded Ubuntu to 24.04. Everything worked well, except that the external package sources were disabled during the upgrade (as expected), so I cleared the folder /etc/apt/sources.list.d
and added the new package sources, including the ones for GitLab:
curl -sSL "https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh" | sudo bash
This created /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 [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ noble main deb-src [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ noble main
Now when I run apt update
and apt list --upgradable
, it shows:
gitlab-ce/noble 18.0.0-ce.0 amd64 [upgradable from: 18.0.0-ce.0]
This seems… weird? I am on that package version, but it now shows an architecture. I couldn't find any similar issues when doing a web search, only this Reddit post without any answer.
I asked ChatGPT, and it told me that "this may cause apt upgrade to always want to reinstall gitlab-ce", which is obviously not what I want.
What should I do?
(I can obviously just do a backup, attempt to perform the upgrade, and see what happens, but an authoritative answer would be nice, so that when people search for this issue in the future, they'll get a good solution.)
noble
. It doesn't make sense for me to revert it. I do want to keep getting updates for the right Ubuntu version. So it tries to update to the distribution-specific package with the same name? (Theamd64
suffix is what threw me off.)