如何修复 Gitlab Runner 安装错误?

问题描述

我设置了自己的 GitLab-Instance,并想在我的实例上安装 GitLab-Runner。

我遵循了文档 (https://docs.gitlab.com/runner/install/linux-manually.html),但在使用 curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_x84_64.deb" 下载软件包后我卡住了。

因为在 curl 之后,dpkg -i gitlab-runner_x84_64.deb 抛出一个错误,指出 gitlab-runner_x84_64 不是 Debian 格式的存档,并且 dpkg-deb --control 子进程返回错误代码 2。>

我该如何解决这个问题?

我的虚拟机运行 Debian 10。

提前致谢!

解决方法

您在 this thread 中有类似的错误

事实证明,focal 存储库中可用的最旧版本是 13.2.0。所以我将 gitlab 恢复为仿生:

deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ bionic main

令我惊讶的是,升级到 13.0.0 刚刚完成没有问题。我现在可以进一步将其升级到最新版本。当我到 13.2.0 时将它切换到焦点。

在您的情况下,由于您使用的是 debian 10 "buster",您可能需要相应地调整存储库,如 in here,知道直到 GitLab 12.2 才支持 Debian Buster。

,

好的,所以很明显 curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_x84_64.deb" 下载是有缺陷的。

我现在使用了不同的 URL(来自 https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html)并且安装成功。

,

您应该使用 on the website 中描述的以下命令:

wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/buster/gitlab-ce_13.8.1-ce.0_amd64.deb/download.deb

为 debian 10 (Buster) 下载 .deb 软件包 gitlab-ce_13.8.1-ce.0_amd64.deb

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...