Stuck upgrading GitLab ee at 14.8 (trying to get to current)

I was running GitLab EE on Ubuntu 20.04 and needed to update for security reasons. I was following the upgrade path tool (using the Omnibus method) and did maybe 8 steps (to version 14.8) before I started getting the “Version not found” error. When I got stuck I figured I’d update Ubuntu to 22.04. While that was running I could have sworn I found a page that explained what to do when the package updater said there were no more updates. But to save my life (and I went through my history) I can’t find that advice.

Trying to update to >=15.5 I get “It seems you are upgrading from major version 14 to major version 15. It is required to upgrade to the latest 15.0.0 version before proceeding.”

But when I try to update to 15.0.5, or anything lower, I get “Package gitlab-ee is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. Version ‘xx.x.x-ee.0’ for ‘gitlab-ee’ was not found.”

My fear is that I updated Ubuntu to the newest version (22.04) before getting GitLab to a version that was supported on Ubuntu 22.04 (14.8) and so I can’t get the next step (14.9 or 14.10) because those versions weren’t built for Jammy, but I’m not allowed to jump to the steps that are supported on Jammy. That said, my GitLab GUI is running no problem so maybe I can trick/force the shorter step?

Again, I’ve been searching high and low for this fix but I’ve spent hours and can’t figure it out.


1 Like

Edit to /etc/apt/sources.list.d/gitlab.list or whatever it’s full name is. Change the references in it back to Ubuntu 20.04 focal. Since the older versions will be available for focal, you should then be able to get those versions installed/upgraded.

Then when you get to the stage where you only have one more update to do (the last and latest release), switch the repo file back to Ubuntu 22.04 Jammy, and then do that last upgrade. Then you’ll have the 22.04 version installed at that point.

There won’t be any major issues for you installing 20.04 packages on 22.04 - I did the same once when there were only Debian 10 packages, and I ran it on Debian 11 until when 11 was supported, and switched the repo file over. Since you are only using it for a short while just for upgrade purposes it won’t be a problem.


Ah, thanks! I did stumble across mentions of switching a file to focal but I thought (or misread) that it was under etc/gitlab/something and when I opened what I thought was the right file it was empty, so I moved on.

For the record it was /etc/apt/sources.list.d/gitlab_gitlab-ee.list and then I had to re-run apt update

Thanks again!