作者:手机用户2602931635 | 来源:互联网 | 2022-12-27 11:09
我刚刚在我的开发机器(Ubuntu 17.10)上安装了Gitlab Runner进行测试.当我跑步时,我得到了:
$: sudo gitlab-runner exec docker test
Running with gitlab-ci-multi-runner dev (1.4.2)
Using Docker executor with image php:5.6 ...
ERROR: Build failed (system failure): open /var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz: no such file or directory
FATAL: open /var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz: no such file or directory
.gitlab-ci.yml文件:
image: php:5.6
before_script:
- php -v
stages:
- test
test:
script:
- php -v
目前的安装过程:
sudo apt-get install gitlab-runner
输出:
...
Configuring gitlab-ci-multi-runner (1.4.2+dfsg-1) ...
I: generating GitLab Runner Docker image. This may take a while...
E: No mirror specified and no default available
W: please run 'sudo /usr/lib/gitlab-runner/mk-prebuilt-images.sh' to generate Docker image.
...
所以我做了:
$: sudo /usr/lib/gitlab-runner/mk-prebuilt-images.sh
I: generating GitLab Runner Docker image. This may take a while...
E: No mirror specified and no default available
Bartłomiej Z..
62
今天遇到了同样的问题.原来输入cdebootstrap
命令mk-prebuilt-images.sh
导致此错误消息:
cdebootstrap \
--flavour=minimal \
--exclude="dmsetup,e2fsprogs,init,systemd-sysv,systemd,udev" \
--include="bash,ca-certificates,git,netcat-traditional" \
stable ./debian-minbase
将最后一行更改为:
stable ./debian-minbase http://deb.debian.org/debian/
该脚本现在应该没有任何错误地继续.有关debootstrap的更多信息,请点击此处.
1> Bartłomiej Z..:
今天遇到了同样的问题.原来输入cdebootstrap
命令mk-prebuilt-images.sh
导致此错误消息:
cdebootstrap \
--flavour=minimal \
--exclude="dmsetup,e2fsprogs,init,systemd-sysv,systemd,udev" \
--include="bash,ca-certificates,git,netcat-traditional" \
stable ./debian-minbase
将最后一行更改为:
stable ./debian-minbase http://deb.debian.org/debian/
该脚本现在应该没有任何错误地继续.有关debootstrap的更多信息,请点击此处.
一年后的现在,我感到非常惊讶,昨天我在18.04上安装了gitlab-runner,这仍然是我修复的方式...
为什么要在其中放置“ http”而不是“ https” URL?