GitLab 17.7.2-ceからGitLab 17.10.3へのapt upgradeがエラーになった。

ちょっと、GitLabのアップデートをサボっていたところ、GitLab 17.7.2-ceからGitLab 17.10.3へのapt upgradeがエラーになった。

エラーの内容(↓)

.../gitlab-ce_17.10.3-ce.0_amd64.deb を展開する準備をしています ...
gitlab preinstall: It seems you are upgrading from 17.7 to 17.10.
gitlab preinstall: It is required to upgrade to the latest 17.8.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths
dpkg: アーカイブ /var/cache/apt/archives/gitlab-ce_17.10.3-ce.0_amd64.deb の処理中にエラーが発生しました (--unpack):
 new gitlab-ce package pre-installation script subprocess returned error exit status 1
処理中にエラーが発生しました:
 /var/cache/apt/archives/gitlab-ce_17.10.3-ce.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

GitLab 17.10.xへのアップデートするために、一度、GitLab 17.8.xに上げる必要があるとのこと。厳密なアップグレードのパスを調べるために、下記の公式サイトで、アップグレードパスをチェックした。

https://gitlab-com.gitlab.io/support/toolbox/upgrade-path

これによると、「GitLab 17.8.6」に一度上げる必要があるということで、apt upgradeでバージョン指定をして、実行。コマンドは下記。

sudo apt upgrade gitlab-ce=17.8.6-ce.0

GitLab 17.8.6へのアップデートが成功したのを確認して、もう一度、apt update、apt upgradeを行った。

sudo apt update
apt list --upgradable
sudo apt upgrade

正常終了したらGitlabをリスタートさせて終了。

sudo gitlab-ctl restart
スポンサーリンク

シェアする

  • このエントリーをはてなブックマークに追加

フォローする