Ubuntu Focal Fossa users cannot upgrade from <=12 major release
Ubuntu users that upgraded to Focal Fossa cannot upgrade gitlab-ce/gitlab-foss anymore, with the exception of 13.* installations.
Background
If a user wants to upgrade gitlab after having dist-upgraded his Ubuntu installation, he cannot as he misses the intermediate releases needed to upgrade.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/770 MB of archives.
After this operation, 271 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 157968 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_13.2.1-ce.0_amd64.deb ...
gitlab preinstall: It seems you are upgrading from major version 12 to major version 13.
gitlab preinstall: It is required to upgrade to the latest 13.0.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_13.2.1-ce.0_amd64.deb (--unpack):
new gitlab-ce package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_13.2.1-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
He will not be able to use:
apt-get install gitlab-ce=<SOMETHING>-ce.0
As there are no 12.* packages needed for this upgrade path:
Goals
Upgrade to the latest major from a lower major, following instructions on a supported Ubuntu version.
Quick Facts
$ 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/ focal main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ focal main
Only two versions (both in the 13.* major release) are available:
$ apt list gitlab-ce -a
Listing... Done
gitlab-ce/focal 13.2.1-ce.0 amd64 [upgradable from: 12.1.3-ce.0]
gitlab-ce/focal 13.2.0-ce.0 amd64
gitlab-ce/now 12.1.3-ce.0 amd64 [installed,upgradable to: 13.2.1-ce.0]