DEV Community

WildTuna
WildTuna

Posted on • Updated on

Как обновить 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-сe=12.10.10-сe.0
// Ставим новую мажорную версию
apt install gitlab-сe=13.0.4-сe.0
// Ставим последнее обновление
apt upgrade
Enter fullscreen mode Exit fullscreen mode

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

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

Top comments (0)