Skip to content

Commit 5503be1

Browse files
committed
fix(ci): use http for the kernel.org mirror — bare ubuntu image has no CA bundle
The Docker build runs on the minimal ubuntu:24.04 base image, which ships *without* ca-certificates. The very first apt-get update over HTTPS therefore fails the TLS handshake ("No system certificates available. Try installing ca-certificates."), and apt can't reach ca-certificates itself to fix the situation — chicken and egg. Apt validates package integrity via GPG-signed Release files, so plain HTTP is safe for the archive. archive.ubuntu.com / azure.archive are already accessed over HTTP for the same reason. Switch the kernel.org defaults from https://mirrors.edge.kernel.org to http://mirrors.edge.kernel.org so the in-Dockerfile rewrite works on self-hosted runners too. Assisted-by: Claude:claude-opus-4-7[1m] [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
1 parent 50580a8 commit 5503be1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/configure-apt-mirror/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@ inputs:
2828
self-hosted-mirror:
2929
description: 'archive/security mirror URL for self-hosted runners (empty = upstream)'
3030
required: false
31-
default: 'https://mirrors.edge.kernel.org'
31+
# HTTP, not HTTPS: the bare ubuntu:24.04 builder image doesn't ship
32+
# ca-certificates, so the very first apt-get update over TLS would
33+
# fail with "No system certificates available" before it can install
34+
# anything. apt validates package integrity via GPG signatures, so
35+
# plain HTTP is safe for the archive itself.
36+
default: 'http://mirrors.edge.kernel.org'
3237
self-hosted-ports-mirror:
3338
description: 'ports.ubuntu.com mirror URL for self-hosted runners (empty = upstream)'
3439
required: false
35-
default: 'https://mirrors.edge.kernel.org'
40+
default: 'http://mirrors.edge.kernel.org'
3641

3742
outputs:
3843
effective-mirror:

0 commit comments

Comments
 (0)