ubuntu 无法将Gitlab-CE从16.2升级到16.4

tquggr8v  于 9个月前  发布在  Git
关注(0)|答案(2)|浏览(146)

我必须在ubuntu 22.04中将gitlab-ce版本从16.2升级到16.4。但我收到以下错误:

(Reading database ... 230526 files and directories currently installed.)
Preparing to unpack .../gitlab-ce_16.4.1-ce.0_amd64.deb ...
gitlab preinstall: It seems you are upgrading from 16.2 to 16.4.
gitlab preinstall: It is required to upgrade to the latest 16.3.x version first before proceeding.
gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_16.4.1-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_16.4.1-ce.0_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
z3yyvxxp

z3yyvxxp1#

编辑/etc/gitlab/gitlab.rb(或相应的路径)将grafana[enable]值编辑为false。在我的配置中,这是在1689行,但我建议你搜索字符串grafana来找到它。
grafana“enable”] = false
通过运行gitlab-ctl reconfigure重新配置GitLab。让它运行,它应该以gitlab Reconfigured结束!
您现在可以恢复由于启用Grafana而失败的apt更新。

x4shl7ld

x4shl7ld2#

请输入错误,即。
“gitlab预安装:在继续之前,需要先升级到最新的16.3.x版本”
第一次更新gitlab-ce 16.3.x
sudo apt更新
sudo apt install gitlab=16.3.0
一旦完成,现在你可以更新到16.4.x
sudo apt install gitlab

相关问题