Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
980 views
in Technique[技术] by (71.8m points)

curl - How do I fix a Gitlab Runner install error?

I have my own GitLab-Instance set up and wanted to install GitLab-Runner on my Instance.

I followed the docs (https://docs.gitlab.com/runner/install/linux-manually.html) but I am stuck after downloading the package with curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_x84_64.deb".

Because after the curl, dpkg -i gitlab-runner_x84_64.deb is throwing an error which says, that gitlab-runner_x84_64 is not an archive in Debian-Format, and that the dpkg-deb --control subprocess is returning errorcode 2.

How do I fix this?

My VM runs Debian 10.

Thanks in advance!

question from:https://stackoverflow.com/questions/65933120/how-do-i-fix-a-gitlab-runner-install-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have a similar error in this thread

It turns out the oldest version available in the repos for focal is 13.2.0. So I reverted the gitlab to bionic:

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

To my surprise, the upgrade to 13.0.0 has just finished without problems. I can now go further to upgrade it to the latest. And switch it to focal when I get to 13.2.0.

In your case, since you are using debian 10 "buster", you might need to adjust the repo accordingly, as in here, knowing that Debian Buster is not be supported until GitLab 12.2.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...