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

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

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

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

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

Okay