Curl 如何修复Gitlab Runner安装错误?

Curl 如何修复Gitlab Runner安装错误?,curl,gitlab,debian,dpkg,debian-buster,Curl,Gitlab,Debian,Dpkg,Debian Buster,我已经设置了自己的GitLab实例,并希望在我的实例上安装GitLab Runner 我按照文档()进行了操作,但是在下载了带有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

我已经设置了自己的GitLab实例,并希望在我的实例上安装GitLab Runner

我按照文档()进行了操作,但是在下载了带有
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

我该如何解决这个问题

我的虚拟机运行Debian10


提前谢谢

您在中也有类似的错误

事实证明,针对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”,您可能需要相应地调整回购协议,因为您知道debian buster在GitLab 12.2之前不受支持。

事实证明,针对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”,您可能需要相应地调整回购协议,因为您知道debian buster在GitLab 12.2之前是不受支持的。

好的,所以显然,
curl-LJOhttps://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_x84_64.deb"
下载失败


我现在使用了一个不同的URL(来自),安装工作正常。

好的,所以很明显,
curl-LJO“https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_x84_64.deb“
下载失败


我现在使用了另一个URL(从),安装工作正常。

您应该使用下面描述的命令:


为debian 10(Buster)加载
.deb
gitlab-ce_13.8.1-ce.0_amd64.deb

您应该使用以下命令:

为debian 10(Buster)加载
.deb
gitlab-ce_13.8.1-ce.0_amd64.deb