Upgrade error version 13.1.4

I am trying to upgrade my GitLab from 12.9.2 to 13.1.4 by below command

#sudo gitlab-rake gitlab:backup:create STRATEGY=copy
#sudo apt-get update && sudo apt-get install gitlab-ce

Now I am getting below error. Plz, help me what can I do?

Preparing to unpack …/gitlab-ce_13.1.4-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 GitLab release and maintenance policy | GitLab
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_13.1.4-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.1.4-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It tells you what to do.

Try doing as you’re told and upgrade to the latest 13.0.x (which is 13.0.10) first. In case you’re not familiar with apt, the command for doing so is apt install gitlab-ce=13.0.10-ce.0

1 Like