gitlab升级

1.下载需要的版本

复制代码
 wget -c https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm  --no-check-certificate

gitlab-ce-15.4.6-ce.0.el7.x86_64.rpm

gitlab-ce-15.7.6-ce.0.el7.x86_64.rpm

gitlab-ce-15.9.7-ce.0.el7.x86_64.rpm

gitlab-ce-15.11.3-ce.0.el7.x86_64.rpm

gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm

gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm

gitlab-ce-16.3.0-ce.0.el7.x86_64.rpm

2、升级

复制代码
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm

or

复制代码
rpm -Uvh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm   --nodeps --force

3、查看版本号

复制代码
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

4、错误提示

rpm -Uvh gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm --nodeps --force

警告:gitlab-ce-16.2.3-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY

准备中... ################################# 100%

gitlab preinstall: It seems you are upgrading from major version 15 to major version 16.

gitlab preinstall: It is required to upgrade to the latest 15.11.x version first before proceeding.

gitlab preinstall: Please follow the upgrade documentation at Upgrading GitLab | GitLab

错误:%pre(gitlab-ce-16.2.3-ce.0.el7.x86_64) 脚本执行失败,退出状态码为 1

错误:gitlab-ce-16.2.3-ce.0.el7.x86_64: 安裝 已失败

错误:gitlab-ce-15.9.7-ce.0.el7.x86_64: 删除 已跳过

错误原因:

根据提示,您正在尝试从GitLab的15版本直接升级到16版本。然而,在进行此升级之前,需要先升级到最新的15.11.x版本。

找一个低版本的继续升级就好了。

相关推荐
云杂项1 分钟前
tmux指南:安装、配置与高效使用(Ubuntu上)
linux·服务器·ubuntu
YOLO数据集集合7 分钟前
风机叶片表面损伤检测数据集 | 风机叶片 表面损伤 污渍检测 无人机巡检 风电运维9119期
运维·人工智能·计算机视觉·目标跟踪·无人机·智慧城市·电力巡检
j7~21 分钟前
【Linux网络编程】四十七.《Linux IO 模型详解:阻塞 IO、非阻塞 IO 与 IO 多路转接(select)》
linux·运维·网络·select·非阻塞io·阻塞io·i/o多路连接
分布式存储与RustFS43 分钟前
用RustFS给Harbor当S3存储后端
运维·云原生·开源·对象存储·分布式存储·s3·性能基准
GeW1 小时前
智能工厂背后:Linux在跑,数据库在扛,高端制造在加速
linux
泡海椒1 小时前
趋势分析报表:jquick-pdf折线图PDF生成实战
java·大数据·运维·服务器·前端·pdf
qq_394562001 小时前
【在Linux上升级nginx】
linux·服务器·nginx
丸子君君1 小时前
【以麒麟服务器时间为准,定时请求时间同步】
运维·服务器·单片机
海盗12341 小时前
AI 新闻日报 2026-09-28:正确性审查自动化、7×24 个人智能体、具身部署态
运维·人工智能·机器人·自动化·人工智能aigc
元岳数字人小元2 小时前
数字人源码系统:模块化开发赋能智能场景灵活迭代升级
运维·人工智能·开源·人机交互·交互