Error during Gitlab CE update on Ubuntu 16.04

Hi Team,

I am trying to update the Gitlab CE version.Please help to update the Gitlab version.

The following packages will be upgraded:
gitlab-ce
1 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
Need to get 728 MB of archives.
After this operation, 123 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
gitlab-ce
Install these packages without verification? [y/N] Y
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial/main amd64 gitlab-ce amd64 13.0.3-ce.0 [728 MB]
Fetched 728 MB in 55s (13.0 MB/s)
(Reading database … 142628 files and directories currently installed.)
Preparing to unpack …/gitlab-ce_13.0.3-ce.0_amd64.deb …
gitlab preinstall: It seems you are upgrading from major version 11 to major version 13.
gitlab preinstall: It is required to upgrade to the latest 12.10.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.0.3-ce.0_amd64.deb (–unpack):
subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/gitlab-ce_13.0.3-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The output tells you what is wrong, and what to do.

gitlab preinstall: It seems you are upgrading from major version 11 to major version 13.
gitlab preinstall: It is required to upgrade to the latest 12.10.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations
2 Likes

To go to 11.x to 13.0.3 , follow these upgrade recomendations. Here’s an example upgrade path that should work for you:

11.x -> 11.11.8 -> 12.0.12 -> 12.10.8 -> 13.0.3

Using apt package manager to specify version to install:

apt install gitlab-ce=11.11.8-ee.0
apt install gitlab-ce=12.0.12-ee.0
apt install gitlab-ce=12.10.8-ee.0
apt upgrade gitlab-ce
1 Like

Thank you. !! :slight_smile:

1 Like