I just installed Gitlab Runner on my dev machine (Ubuntu 17.10) for testing. When I run the runner I got:
$: 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 file:
image: php:5.6
before_script:
- php -v
stages:
- test
test:
script:
- php -v
Current installation process:
sudo apt-get install gitlab-runner
Output:
...
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.
...
So I did:
$: 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
Got the same problem today. Turns out cdebootstrap
command in usr/lib/gitlab-runner/mk-prebuilt-images.sh
is causing this error message:
cdebootstrap \
--flavour=minimal \
--exclude="dmsetup,e2fsprogs,init,systemd-sysv,systemd,udev" \
--include="bash,ca-certificates,git,netcat-traditional" \
stable ./debian-minbase
Change the last line to:
stable ./debian-minbase https://deb.debian.org/debian/
The script should now proceed without any errors. More info on debootstrap can be found here.