Issue with upgrade omnibus.gitlab-cli missed

good days everyone.
i’m using gitlab for several year and upgrade it many times, but today i have encountered an issue.
i’m using omibus installation on ubuntu server. currently i have 13.7.4 gitlab ce version

looking for upgrade path in documentation i found that i need upgrade to 13.12.9, then to 14.0.7 and then to 14.2

so i execute following commands:

sudo apt install gitlab-ce=13.12.9-ce.0

but it is hang on 17%. i’m waiting for a long time but process does not consume CPU or memory and no disk activity, so i kill them

after that i try to upgrade to 13.8.8

sudo apt install gitlab-ce=13.8.8-ce.0

but get following error:

Could not find gem 'mail-smtp_pool (~> 0.1.0)' in source at `vendor/gems/mail-smtp_pool`.
The source does not contain any versions of 'mail-smtp_pool'
Run `bundle install` to install missing gems.
gitlab preinstall:
gitlab preinstall: Database backup failed! If you want to skip this backup, run the following command and try again:
gitlab preinstall:
gitlab preinstall:  sudo touch /etc/gitlab/skip-auto-backup
gitlab preinstall:
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_13.8.8-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.8.8-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

after that i try to upgrade to 13.8.0:

sudo apt install gitlab-ce=13.8.0-ce.0

and now i get error:

/var/lib/dpkg/tmp.ci/preinst: 41: /var/lib/dpkg/tmp.ci/preinst: gitlab-ctl: not found
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_13.8.0-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.8.0-ce.0_amd64.deb

how can i restore gitlab-ctl and what i can do with this errors?

ok, i could restore my gitlab-ctl (installed gitlab same version on different pc and copy gitlab-ctl) but error still here:

gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
Could not find gem 'mail-smtp_pool (~> 0.1.0)' in source at `vendor/gems/mail-smtp_pool`.
The source does not contain any versions of 'mail-smtp_pool'
Run `bundle install` to install missing gems.
gitlab preinstall:
gitlab preinstall: Database backup failed! If you want to skip this backup, run the following command and try again:
gitlab preinstall:
gitlab preinstall:  sudo touch /etc/gitlab/skip-auto-backup
gitlab preinstall:

ok… i found that there is missed files that caused by corrupter installation
for example: by path /opt/gilab/embedded/service/girlab-rails/vendo/gems/mail-smtp.pool all files have extension dpkg-new…
after i removed extension i got new errors… and they also linked to same reason - there is piece of new version and piece of old version