View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0009892 | Kali Linux | Kali Package Bug | public | 2026-10-05 09:07 | 2026-10-07 01:50 |
| Reporter | ganguin | Assigned To | arnaudr | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Summary | 0009892: Docker image fails to apt update when an HTTPS mirror is selected | ||||
| Description | the docker image kalilinux/kali-rolling does not contain the package 'ca-certificates' and fails to update when the mirrorselect chooses and HTTPS mirror (or HTTP redirecting to HTTPS). /etc/apt/sources.list.d/kali.sources must be forced to an HTTP mirror to make it work (and install ca-certificates). docker run -it --rm kalilinux/kali-rolling | ||||
|
To consistently reproduce (and not rely on mirrorselect), changing the apt source URL to be HTTPS makes it fail all the time. |
|
|
This is not a bug. By default container images are really minimal, and CA certificates are not installed. Also, by default the Kali images are configured to use HTTP (mirror is http://http.kali.org/kali/). If you want to use HTTPS you need to install |
|
|
I cannot install ca-certificates because I cannot apt update. I'm using default mirror http://http.kali.org/kali, but this does automatic mirrorselect. It is a bug because it happens with the default base image. If you can "force" apt to not select automatically an HTTPS mirror, that would work too. The problem is base image cannot apt update!! |
|
|
By default you should hit http.kali.org:
However, some mirrors redirect HTTP to HTTPS... And that's the case for kalimirror.velden.media... I have just disabled this mirror, so it should work now. I'll ping the sysadmin. Sorry I didn't get what was the issue at first. Note: you can always edit your APT sources to hit another mirror, eg. kali.download. A one-liner: |
|
|
Thanks, I tried several times, I did not hit an HTTPS mirror anymore. I get kali.download and mirror.init7.net, both working with HTTP. kalimirror.velden.media is not chosen anymore. |
|
|
Thanks for having reported the issue. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-10-05 09:07 | ganguin | New Issue | |
| 2026-10-05 09:09 | ganguin | Note Added: 0022047 | |
| 2026-10-05 13:28 | arnaudr | Note Added: 0022051 | |
| 2026-10-06 09:29 | ganguin | Note Added: 0022056 | |
| 2026-10-06 09:42 | arnaudr | Note Added: 0022057 | |
| 2026-10-06 14:33 | ganguin | Note Added: 0022058 | |
| 2026-10-07 01:49 | arnaudr | Note Added: 0022060 | |
| 2026-10-07 01:50 | arnaudr | Assigned To | => arnaudr |
| 2026-10-07 01:50 | arnaudr | Status | new => resolved |
| 2026-10-07 01:50 | arnaudr | Resolution | open => fixed |