View Issue Details

IDProjectCategoryView StatusLast Update
0008283Kali LinuxKali Package Bugpublic2025-07-14 09:36
Reporteraltjx Assigned Tosteev  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2023.1 
Summary0008283: kali-linux-default doesn't install on ARM64 kali docker container
Description

The kali-linux-default metapackage does not install within kali containers using ARM64. I have been building the same container on a weekly basis for quite some time without any issues; however, the latest docker push 7 days ago seems to have broken this.

Steps To Reproduce

Use an ARM64 system to build the following docker image:

FROM kalilinux/kali-last-release

RUN apt update && apt install kali-linux-default -y

Upon building the container, it fails with the following error:

Preparing to unpack .../43-python3.11-minimal_3.11.2-4_arm64.deb ...
Unpacking python3.11-minimal (3.11.2-4) ...
Setting up libpython3.11-minimal:arm64 (3.11.2-4) ...
Setting up libexpat1:arm64 (2.5.0-1) ...
Setting up python3.11-minimal (3.11.2-4) ...
[Errno 13] Permission denied: '/usr/lib/python3.11/__pycache__/__future__.cpython-311.pyc.281472972765120'dpkg: error processing package python3.11-minimal (--configure):
 installed python3.11-minimal package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 python3.11-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt update && apt install kali-linux-arm -y' returned a non-zero code: 100
Additional Information

Using an ARM64 EC2 instance for testing purposes. No luck.

Activities

steev

steev

2023-04-30 18:18

manager   ~0017860

I cannot reproduce this here, although I do not have access to AWS/EC2; Are you sure whatever is running it has enough disk space? kali-linux-default from the base kali-last-release will take about 7.7GB of space, around 8.8GB total space.

altjx

altjx

2023-04-30 19:40

reporter   ~0017861

Yep! It's got 100gb disk space available. The amd64 equivalent of this works fine as well.

steev

steev

2023-04-30 20:38

manager   ~0017862

Can i see your full Dockerfile you're using?

altjx

altjx

2023-05-01 00:54

reporter   ~0017864

Yep I pasted it in the original description. My dockerfile only consists of this (for testing purposes):

FROM kalilinux/kali-last-release
RUN apt update && apt install kali-linux-default -y

By creating a dockerfile on an ARM64 system and trying to build it, it fails due to the python3.11-minimal error.

steev

steev

2023-05-01 14:03

manager   ~0017866

Ah, okay, I wasn't sure if there was more; that's a bit odd. You actually would not want to use apt inside it, you'd want to use apt-get. Additionally, you would want to make sure to set the environment variable DEBIAN_FRONTEND=noninteractive so it doesn't ask you any questions.

I still can't reproduce the issue here. An improved dockerfile might be

FROM kalilinux/kali-last-release
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install kali-linux-default -y

altjx

altjx

2023-05-01 18:33

reporter   ~0017868

Thanks Steev. This is very interesting. That dockerfile sample failed on my arm64 instance in AWS EC2; however, I built that dockerfile with no problems on my M2 Macbook Pro. Guess we can close this one out. Need to do some more investigating on my end to see why it started failing after that recent push to dockerhub from kalilinux.

altjx

altjx

2023-05-01 19:22

reporter   ~0017869

Noticed my ec2 instance is aarch64 and my M2 MBP is specifically "arm64", so not sure if this has anything to do with it.

steev

steev

2023-05-01 20:35

manager   ~0017870

aarch64 is the official name of arm64, arm64 is the "common name" and the package architecture for debian systems.

I am curious though, are you really meaning to build against kali-last-snapshot? because those do not get updates once the release is out.

altjx

altjx

2023-05-01 23:15

reporter   ~0017871

Gotcha - makes sense!

Yup I used to build from kali-last-release on a weekly basis, and one day it failed. I checked dockerhub and noticed that a new image had been pushed to the kalilinux profile about 6 hours prior to that build failing. Haven't been able to get it back up since. Although, I was able to successfully get it to build a few hours ago to my surprise. Only thing I did was update docker, but can't see why that would have fixed it. Same dockerfile.

Could just be some hiccups on my end there, but I'm rebuilding now with the larger dockerfile that I typically use to see if it fails again.

Really appreciate the help on this one!

steev

steev

2023-05-01 23:30

manager   ~0017872

Glad to hear it's working for you. Feel free to re-open if you can reproduce the issue again, but I've been unable to do so here on multiple machines.

Issue History

Date Modified Username Field Change
2023-04-30 02:46 altjx New Issue
2023-04-30 18:18 steev Note Added: 0017860
2023-04-30 19:40 altjx Note Added: 0017861
2023-04-30 20:38 steev Note Added: 0017862
2023-05-01 00:54 altjx Note Added: 0017864
2023-05-01 14:03 steev Note Added: 0017866
2023-05-01 18:33 altjx Note Added: 0017868
2023-05-01 19:22 altjx Note Added: 0017869
2023-05-01 20:35 steev Note Added: 0017870
2023-05-01 23:15 altjx Note Added: 0017871
2023-05-01 23:30 steev Assigned To => steev
2023-05-01 23:30 steev Status new => closed
2023-05-01 23:30 steev Resolution open => no change required
2023-05-01 23:30 steev Note Added: 0017872
2025-07-14 09:36 g0tmi1k Priority high => normal