DEV Community

WildTuna
WildTuna

Posted on • Edited on

7 3

Как обновить GitLab 12.9 до 13.1 в Debian и Ubuntu

Image description

Если вы пропустили несколько обновлений GitLab и теперь при попытке апдейта через apt update && apt upgrade получаете ошибку перехода на мажорную версию (см. текст ошибки ниже), то устанавливать обновления придется поочередно.



Preparing to unpack .../gitlab-ce_13.1.3-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.1.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.1.3-ce.0_amd64.deb


Enter fullscreen mode Exit fullscreen mode

В моем случае порядок устанавливаемых версий выглядит так:



// Ставим последнюю 12 версию
apt install gitlab-ce=12.10.10-ce.0
// Ставим новую мажорную версию
apt install gitlab-ce=13.0.4-ce.0
// Ставим последнее обновление
apt upgrade


Enter fullscreen mode Exit fullscreen mode

Принцип подходит для любой ошибки пропуска версий, главное — соблюдать порядок их обновления. Список всех версий можно посмотреть тут.

Надеюсь, статья была полезна. Спасибо, что дочитали до конца!

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay