canonical / rockcraft

Tool to create OCI Images using the language from Snapcraft and Charmcraft.
GNU General Public License v3.0
35 stars 42 forks source link

The python plugin doesn't install python #138

Closed gruyaume closed 1 year ago

gruyaume commented 1 year ago

Description

The python plugin doesn't install python itself in the final image.

One would expect that with a rockcraft.yaml file like this one below, the container would contain python3 in it and the required python packages installed.

name: python-test
version: "1.6.1"
build-base: ubuntu:20.04
base: ubuntu:20.04
summary: python-test
description: python-test
license: Apache-2.0
platforms:
  amd64:

parts:
  python:
    plugin: python
    source: .
    python-packages:
      - PyYAML
      - jinja2

This issue is present with both 20.04 and 22.04 (I haven't tested with 18.04) and it seems to come from the fact that we are using the python3 software installed from a snap in the build process and that is not available at runtime.

Additional information

Content of the /bin directory:

root@569d22eaf8c3:~# ls -lrt /bin/
total 13760
lrwxrwxrwx 1 root root        4 Apr 18  2022 rbash -> bash
-rwxr-xr-x 1 root root 10567027 Nov  6 10:45 pebble
-rwxr-xr-x 1 root root  2242971 Nov  6 10:45 chrorder
lrwxrwxrwx 1 root root        7 Nov  6 10:46 python -> python3
-rw-r--r-- 1 root root     2395 Nov  6 10:46 activate.fish
-rw-r--r-- 1 root root     1243 Nov  6 10:46 activate.csh
-rw-r--r-- 1 root root     2191 Nov  6 10:46 activate
-rw-r--r-- 1 root root     8834 Nov  6 10:46 Activate.ps1
-rwxr-xr-x 1 root root      234 Nov  6 10:47 easy_install
-rwxr-xr-x 1 root root      946 Nov  6 10:47 which
-rwxr-xr-x 1 root root    14360 Nov  6 10:47 tempfile
-rwxr-xr-x 1 root root    27144 Nov  6 10:47 run-parts
-rwxr-xr-x 1 root root      225 Nov  6 10:47 pip3.8
-rwxr-xr-x 1 root root      225 Nov  6 10:47 pip3
-rwxr-xr-x 1 root root      225 Nov  6 10:47 pip
-rwxr-xr-x 1 root root      234 Nov  6 10:47 easy_install-3.8
-rwxr-xr-x 1 root root  1183448 Nov  6 10:47 bash
lrwxrwxrwx 1 root root       18 Nov  6 10:47 python3 -> /usr/bin/python3.8
root@569d22eaf8c3:~# 

Content of the /usr/bin directory:

oot@569d22eaf8c3:~# ls -lrt /usr/bin/
total 23008
-rwxr-xr-x 1 root root    121288 Dec 22  2018  sed
-rwxr-xr-x 1 root root     51296 Apr  8  2019  sdiff
-rwxr-xr-x 1 root root     67800 Apr  8  2019  diff3
-rwxr-xr-x 1 root root    219480 Apr  8  2019  diff
-rwxr-xr-x 1 root root     51296 Apr  8  2019  cmp
-rwxr-xr-x 1 root root      4430 Jun 21  2019  deb-systemd-invoke
-rwxr-xr-x 1 root root     21328 Jun 21  2019  deb-systemd-helper
lrwxrwxrwx 1 root root         4 Jul 18  2019  sh -> dash
-rwxr-xr-x 1 root root    129816 Jul 18  2019  dash
-rwxr-xr-x 1 root root      1827 Aug  3  2019  debconf-show
-rwxr-xr-x 1 root root      2935 Aug  3  2019  debconf-set-selections
-rwxr-xr-x 1 root root       647 Aug  3  2019  debconf-escape
-rwxr-xr-x 1 root root      1719 Aug  3  2019  debconf-copydb
-rwxr-xr-x 1 root root       608 Aug  3  2019  debconf-communicate
-rwxr-xr-x 1 root root     11541 Aug  3  2019  debconf-apt-progress
-rwxr-xr-x 1 root root      2859 Aug  3  2019  debconf
-rwxr-xr-x 1 root root      4877 Sep  4  2019  bzexe
-rwxr-xr-x 1 root root     39256 Sep  5  2019  yes
-rwxr-xr-x 1 root root     39256 Sep  5  2019  whoami
-rwxr-xr-x 1 root root     59768 Sep  5  2019  who
-rwxr-xr-x 1 root root     47456 Sep  5  2019  wc
-rwxr-xr-x 1 root root    142144 Sep  5  2019  vdir
-rwxr-xr-x 1 root root     39256 Sep  5  2019  users
-rwxr-xr-x 1 root root     39256 Sep  5  2019  unlink
-rwxr-xr-x 1 root root     51576 Sep  5  2019  uniq
-rwxr-xr-x 1 root root     43384 Sep  5  2019  unexpand
-rwxr-xr-x 1 root root     39288 Sep  5  2019  uname
-rwxr-xr-x 1 root root     39256 Sep  5  2019  tty
-rwxr-xr-x 1 root root     43352 Sep  5  2019  tsort
-rwxr-xr-x 1 root root     43352 Sep  5  2019  truncate
-rwxr-xr-x 1 root root     39256 Sep  5  2019  true
-rwxr-xr-x 1 root root     51544 Sep  5  2019  tr
-rwxr-xr-x 1 root root    100728 Sep  5  2019  touch
-rwxr-xr-x 1 root root     43800 Sep  5  2019  timeout
-rwxr-xr-x 1 root root     55640 Sep  5  2019  test
-rwxr-xr-x 1 root root     43384 Sep  5  2019  tee
-rwxr-xr-x 1 root root     72088 Sep  5  2019  tail
-rwxr-xr-x 1 root root     43352 Sep  5  2019  tac
-rwxr-xr-x 1 root root     39256 Sep  5  2019  sync
-rwxr-xr-x 1 root root     47456 Sep  5  2019  sum
-rwxr-xr-x 1 root root     84344 Sep  5  2019  stty
-rwxr-xr-x 1 root root     51544 Sep  5  2019  stdbuf
-rwxr-xr-x 1 root root     88440 Sep  5  2019  stat
-rwxr-xr-x 1 root root     60184 Sep  5  2019  split
-rwxr-xr-x 1 root root    117376 Sep  5  2019  sort
-rwxr-xr-x 1 root root     39256 Sep  5  2019  sleep
-rwxr-xr-x 1 root root     59736 Sep  5  2019  shuf
-rwxr-xr-x 1 root root     63864 Sep  5  2019  shred
-rwxr-xr-x 1 root root     67960 Sep  5  2019  sha512sum
-rwxr-xr-x 1 root root     67960 Sep  5  2019  sha384sum
-rwxr-xr-x 1 root root     59768 Sep  5  2019  sha256sum
-rwxr-xr-x 1 root root     59768 Sep  5  2019  sha224sum
-rwxr-xr-x 1 root root     51576 Sep  5  2019  sha1sum
-rwxr-xr-x 1 root root     51544 Sep  5  2019  seq
-rwxr-xr-x 1 root root     39256 Sep  5  2019  runcon
-rwxr-xr-x 1 root root     47448 Sep  5  2019  rmdir
-rwxr-xr-x 1 root root     72056 Sep  5  2019  rm
-rwxr-xr-x 1 root root     51576 Sep  5  2019  realpath
-rwxr-xr-x 1 root root     51544 Sep  5  2019  readlink
-rwxr-xr-x 1 root root     43352 Sep  5  2019  pwd
-rwxr-xr-x 1 root root     80280 Sep  5  2019  ptx
-rwxr-xr-x 1 root root     59736 Sep  5  2019  printf
-rwxr-xr-x 1 root root     39256 Sep  5  2019  printenv
-rwxr-xr-x 1 root root     76216 Sep  5  2019  pr
-rwxr-xr-x 1 root root     43384 Sep  5  2019  pinky
-rwxr-xr-x 1 root root     39256 Sep  5  2019  pathchk
-rwxr-xr-x 1 root root     43384 Sep  5  2019  paste
-rwxr-xr-x 1 root root     72056 Sep  5  2019  od
-rwxr-xr-x 1 root root     67992 Sep  5  2019  numfmt
-rwxr-xr-x 1 root root     43352 Sep  5  2019  nproc
-rwxr-xr-x 1 root root     43352 Sep  5  2019  nohup
-rwxr-xr-x 1 root root     43448 Sep  5  2019  nl
-rwxr-xr-x 1 root root     43352 Sep  5  2019  nice
-rwxr-xr-x 1 root root    149888 Sep  5  2019  mv
-rwxr-xr-x 1 root root     47448 Sep  5  2019  mktemp
-rwxr-xr-x 1 root root     72024 Sep  5  2019  mknod
-rwxr-xr-x 1 root root     67928 Sep  5  2019  mkfifo
-rwxr-xr-x 1 root root     88408 Sep  5  2019  mkdir
lrwxrwxrwx 1 root root         6 Sep  5  2019  md5sum.textutils -> md5sum
-rwxr-xr-x 1 root root     47480 Sep  5  2019  md5sum
-rwxr-xr-x 1 root root    142144 Sep  5  2019  ls
-rwxr-xr-x 1 root root     39256 Sep  5  2019  logname
-rwxr-xr-x 1 root root     76160 Sep  5  2019  ln
-rwxr-xr-x 1 root root     39256 Sep  5  2019  link
-rwxr-xr-x 1 root root     55672 Sep  5  2019  join
-rwxr-xr-x 1 root root    158112 Sep  5  2019  install
-rwxr-xr-x 1 root root     47480 Sep  5  2019  id
-rwxr-xr-x 1 root root     39256 Sep  5  2019  hostid
-rwxr-xr-x 1 root root     47480 Sep  5  2019  head
-rwxr-xr-x 1 root root     39256 Sep  5  2019  groups
-rwxr-xr-x 1 root root     43352 Sep  5  2019  fold
-rwxr-xr-x 1 root root     47448 Sep  5  2019  fmt
-rwxr-xr-x 1 root root     39256 Sep  5  2019  false
-rwxr-xr-x 1 root root     80248 Sep  5  2019  factor
-rwxr-xr-x 1 root root     55640 Sep  5  2019  expr
-rwxr-xr-x 1 root root     43384 Sep  5  2019  expand
-rwxr-xr-x 1 root root     43352 Sep  5  2019  env
-rwxr-xr-x 1 root root     39256 Sep  5  2019  echo
-rwxr-xr-x 1 root root    108920 Sep  5  2019  du
-rwxr-xr-x 1 root root     39256 Sep  5  2019  dirname
-rwxr-xr-x 1 root root     47456 Sep  5  2019  dircolors
-rwxr-xr-x 1 root root    142144 Sep  5  2019  dir
-rwxr-xr-x 1 root root     93128 Sep  5  2019  df
-rwxr-xr-x 1 root root     80256 Sep  5  2019  dd
-rwxr-xr-x 1 root root    108920 Sep  5  2019  date
-rwxr-xr-x 1 root root     47480 Sep  5  2019  cut
-rwxr-xr-x 1 root root     55672 Sep  5  2019  csplit
-rwxr-xr-x 1 root root    153976 Sep  5  2019  cp
-rwxr-xr-x 1 root root     43384 Sep  5  2019  comm
-rwxr-xr-x 1 root root     39256 Sep  5  2019  cksum
-rwxr-xr-x 1 root root     72024 Sep  5  2019  chown
-rwxr-xr-x 1 root root     63864 Sep  5  2019  chmod
-rwxr-xr-x 1 root root     72024 Sep  5  2019  chgrp
-rwxr-xr-x 1 root root     72024 Sep  5  2019  chcon
-rwxr-xr-x 1 root root     43416 Sep  5  2019  cat
-rwxr-xr-x 1 root root     39256 Sep  5  2019  basename
-rwxr-xr-x 1 root root     43352 Sep  5  2019  base64
-rwxr-xr-x 1 root root     43352 Sep  5  2019  base32
-rwxr-xr-x 1 root root     59768 Sep  5  2019  b2sum
-rwxr-xr-x 1 root root     39288 Sep  5  2019  arch
-rwxr-xr-x 1 root root     59736 Sep  5  2019 '['
-rwxr-xr-x 1 root root      1297 Sep  5  2019  bzmore
lrwxrwxrwx 1 root root         6 Sep  5  2019  bzless -> bzmore
-rwxr-xr-x 1 root root     18584 Sep  5  2019  bzip2recover
-rwxr-xr-x 3 root root     39144 Sep  5  2019  bzip2
-rwxr-xr-x 1 root root      3775 Sep  5  2019  bzgrep
lrwxrwxrwx 1 root root         6 Sep  5  2019  bzfgrep -> bzgrep
lrwxrwxrwx 1 root root         6 Sep  5  2019  bzegrep -> bzgrep
-rwxr-xr-x 1 root root      2227 Sep  5  2019  bzdiff
lrwxrwxrwx 1 root root         6 Sep  5  2019  bzcmp -> bzdiff
-rwxr-xr-x 3 root root     39144 Sep  5  2019  bzcat
-rwxr-xr-x 3 root root     39144 Sep  5  2019  bunzip2
lrwxrwxrwx 1 root root         8 Nov  7  2019  ypdomainname -> hostname
lrwxrwxrwx 1 root root         8 Nov  7  2019  nisdomainname -> hostname
-rwxr-xr-x 1 root root     26856 Nov  7  2019  hostname
lrwxrwxrwx 1 root root         8 Nov  7  2019  domainname -> hostname
lrwxrwxrwx 1 root root         8 Nov  7  2019  dnsdomainname -> hostname
-rwxr-xr-x 1 root root       452 Nov 17  2019  sensible-pager
-rwxr-xr-x 1 root root      1169 Nov 17  2019  sensible-editor
-rwxr-xr-x 1 root root      1230 Nov 17  2019  sensible-browser
-rwxr-xr-x 1 root root      2442 Nov 17  2019  select-editor
-rwxr-xr-x 1 root root       946 Dec  7  2019  which
-rwxr-xr-x 1 root root     14360 Dec  7  2019  tempfile
-rwxr-xr-x 1 root root     27144 Dec  7  2019  run-parts
-rwxr-xr-x 1 root root        30 Jan 16  2020  rgrep
-rwxr-xr-x 1 root root    199136 Jan 29  2020  grep
-rwxr-xr-x 1 root root        28 Jan 29  2020  fgrep
-rwxr-xr-x 1 root root        28 Jan 29  2020  egrep
lrwxrwxrwx 1 root root        14 Feb 13  2020  pidof -> /sbin/killall5
-rwxr-xr-x 1 root root     76152 Feb 18  2020  xargs
-rwxr-xr-x 1 root root    320160 Feb 18  2020  find
-rwxr-xr-x 1 root root     31040 Feb 26  2020  tset
-rwxr-xr-x 1 root root     26968 Feb 26  2020  tput
-rwxr-xr-x 1 root root     22840 Feb 26  2020  toe
-rwxr-xr-x 1 root root     92584 Feb 26  2020  tic
-rwxr-xr-x 1 root root     18744 Feb 26  2020  tabs
lrwxrwxrwx 1 root root         4 Feb 26  2020  reset -> tset
lrwxrwxrwx 1 root root         3 Feb 26  2020  infotocap -> tic
-rwxr-xr-x 1 root root     63880 Feb 26  2020  infocmp
-rwxr-xr-x 1 root root     14656 Feb 26  2020  clear
lrwxrwxrwx 1 root root         3 Feb 26  2020  captoinfo -> tic
-rwxr-xr-x 1 root root     27208 Sep  9  2021  watch
-rwxr-xr-x 1 root root     22760 Sep  9  2021  w.procps
-rwxr-xr-x 1 root root     39168 Sep  9  2021  vmstat
-rwxr-xr-x 1 root root     14568 Sep  9  2021  uptime
-rwxr-xr-x 1 root root    129072 Sep  9  2021  top
-rwxr-xr-x 1 root root     22776 Sep  9  2021  tload
lrwxrwxrwx 1 root root         5 Sep  9  2021  snice -> skill
-rwxr-xr-x 1 root root     22768 Sep  9  2021  slabtop
-rwxr-xr-x 1 root root     30952 Sep  9  2021  skill
-rwxr-xr-x 1 root root     14568 Sep  9  2021  pwdx
-rwxr-xr-x 1 root root    137688 Sep  9  2021  ps
-rwxr-xr-x 1 root root     35064 Sep  9  2021  pmap
lrwxrwxrwx 1 root root         5 Sep  9  2021  pkill -> pgrep
-rwxr-xr-x 1 root root     30968 Sep  9  2021  pgrep
-rwxr-xr-x 1 root root     30952 Sep  9  2021  kill
-rwxr-xr-x 1 root root     26864 Sep  9  2021  free
lrwxrwxrwx 1 root root         7 Feb  7  2022  x86_64 -> setarch
-rwxr-xr-x 1 root root     35496 Feb  7  2022  whereis
-rwxr-xr-x 1 root root     35048 Feb  7  2022  wdctl
-rwxr-sr-x 1 root tty      35048 Feb  7  2022  wall
-rwxr-xr-x 1 root root     30952 Feb  7  2022  utmpdump
-rwxr-xr-x 1 root root     43448 Feb  7  2022  unshare
-rwsr-xr-x 1 root root     39144 Feb  7  2022  umount
-rwxr-xr-x 1 root root     35048 Feb  7  2022  taskset
-rwsr-xr-x 1 root root     67816 Feb  7  2022  su
-rwxr-xr-x 1 root root     47336 Feb  7  2022  setterm
-rwxr-xr-x 1 root root     14568 Feb  7  2022  setsid
-rwxr-xr-x 1 root root     47344 Feb  7  2022  setpriv
-rwxr-xr-x 1 root root     27136 Feb  7  2022  setarch
-rwxr-xr-x 1 root root     30952 Feb  7  2022  scriptreplay
-rwxr-xr-x 1 root root     55528 Feb  7  2022  script
-rwxr-xr-x 1 root root     14568 Feb  7  2022  rev
-rwxr-xr-x 1 root root     63720 Feb  7  2022  resizepart
-rwxr-xr-x 1 root root     14568 Feb  7  2022  renice
-rwxr-xr-x 1 root root     22760 Feb  7  2022  rename.ul
-rwxr-xr-x 1 root root     39672 Feb  7  2022  prlimit
-rwxr-xr-x 1 root root    121072 Feb  7  2022  partx
-rwxr-xr-x 1 root root     35256 Feb  7  2022  nsenter
-rwxr-xr-x 1 root root     35048 Feb  7  2022  namei
-rwxr-xr-x 1 root root     14568 Feb  7  2022  mountpoint
-rwsr-xr-x 1 root root     55528 Feb  7  2022  mount
-rwxr-xr-x 1 root root     43160 Feb  7  2022  more
-rwxr-xr-x 1 root root     14568 Feb  7  2022  mesg
-rwxr-xr-x 1 root root     35120 Feb  7  2022  mcookie
-rwxr-xr-x 1 root root     51440 Feb  7  2022  lsns
-rwxr-xr-x 1 root root     67816 Feb  7  2022  lsmem
-rwxr-xr-x 1 root root     67816 Feb  7  2022  lslogins
-rwxr-xr-x 1 root root     39480 Feb  7  2022  lslocks
-rwxr-xr-x 1 root root     96488 Feb  7  2022  lsipc
-rwxr-xr-x 1 root root    100584 Feb  7  2022  lscpu
-rwxr-xr-x 1 root root    133352 Feb  7  2022  lsblk
-rwxr-xr-x 1 root root     52040 Feb  7  2022  logger
lrwxrwxrwx 1 root root         7 Feb  7  2022  linux64 -> setarch
lrwxrwxrwx 1 root root         7 Feb  7  2022  linux32 -> setarch
lrwxrwxrwx 1 root root         4 Feb  7  2022  lastb -> last
-rwxr-xr-x 1 root root     47336 Feb  7  2022  last
-rwxr-xr-x 1 root root     67816 Feb  7  2022  ipcs
-rwxr-xr-x 1 root root     35048 Feb  7  2022  ipcrm
-rwxr-xr-x 1 root root     35120 Feb  7  2022  ipcmk
-rwxr-xr-x 1 root root     30952 Feb  7  2022  ionice
lrwxrwxrwx 1 root root         7 Feb  7  2022  i386 -> setarch
-rwxr-xr-x 1 root root     22760 Feb  7  2022  getopt
-rwxr-xr-x 1 root root     35128 Feb  7  2022  flock
-rwxr-xr-x 1 root root     73128 Feb  7  2022  findmnt
-rwxr-xr-x 1 root root     35096 Feb  7  2022  fincore
-rwxr-xr-x 1 root root     35048 Feb  7  2022  fallocate
-rwxr-xr-x 1 root root     84440 Feb  7  2022  dmesg
-rwxr-xr-x 1 root root     30952 Feb  7  2022  delpart
-rwxr-xr-x 1 root root     39144 Feb  7  2022  chrt
-rwxr-xr-x 1 root root     51432 Feb  7  2022  choom
-rwxr-xr-x 1 root root     30952 Feb  7  2022  addpart
lrwxrwxrwx 1 root root         6 Mar 14  2022  sg -> newgrp
-rwsr-xr-x 1 root root     68208 Mar 14  2022  passwd
-rwsr-xr-x 1 root root     44784 Mar 14  2022  newgrp
-rwxr-xr-x 1 root root     57104 Mar 14  2022  login
-rwxr-xr-x 1 root root     32416 Mar 14  2022  lastlog
-rwsr-xr-x 1 root root     88464 Mar 14  2022  gpasswd
-rwxr-xr-x 1 root root     23136 Mar 14  2022  faillog
-rwxr-sr-x 1 root shadow   31312 Mar 14  2022  expiry
-rwsr-xr-x 1 root root     53040 Mar 14  2022  chsh
-rwsr-xr-x 1 root root     85064 Mar 14  2022  chfn
-rwxr-sr-x 1 root shadow   84512 Mar 14  2022  chage
-rwxr-xr-x 1 root root    448112 Mar 15  2022  tar
-rwxr-xr-x 1 root root     26840 Apr  7  2022  zdump
-rwxr-xr-x 1 root root     15378 Apr  7  2022  tzselect
-rwxr-xr-x 1 root root     22904 Apr  7  2022  pldd
-rwxr-xr-x 1 root root    334808 Apr  7  2022  localedef
-rwxr-xr-x 1 root root     58944 Apr  7  2022  locale
-rwxr-xr-x 1 root root      5427 Apr  7  2022  ldd
-rwxr-xr-x 1 root root     68000 Apr  7  2022  iconv
-rwxr-xr-x 1 root root     39576 Apr  7  2022  getent
-rwxr-xr-x 1 root root     35112 Apr  7  2022  getconf
-rwxr-xr-x 1 root root      3330 Apr  7  2022  catchsegv
-rwxr-xr-x 1 root root      4577 Apr  8  2022  znew
-rwxr-xr-x 1 root root      1842 Apr  8  2022  zmore
-rwxr-xr-x 1 root root      2206 Apr  8  2022  zless
-rwxr-xr-x 1 root root      8103 Apr  8  2022  zgrep
-rwxr-xr-x 1 root root      2081 Apr  8  2022  zforce
-rwxr-xr-x 1 root root        29 Apr  8  2022  zfgrep
-rwxr-xr-x 1 root root        29 Apr  8  2022  zegrep
-rwxr-xr-x 1 root root      5898 Apr  8  2022  zdiff
-rwxr-xr-x 1 root root      1678 Apr  8  2022  zcmp
-rwxr-xr-x 1 root root      1984 Apr  8  2022  zcat
-rwxr-xr-x 2 root root      2346 Apr  8  2022  uncompress
-rwxr-xr-x 1 root root     97496 Apr  8  2022  gzip
-rwxr-xr-x 1 root root      6447 Apr  8  2022  gzexe
-rwxr-xr-x 2 root root      2346 Apr  8  2022  gunzip
lrwxrwxrwx 1 root root         4 Apr 18  2022  rbash -> bash
-rwxr-xr-x 1 root root   1183448 Apr 18  2022  bash
-rwxr-xr-x 1 root root     63960 May 24 13:08  apt-mark
-rwxr-xr-x 1 root root     27931 May 24 13:08  apt-key
-rwxr-xr-x 1 root root     47576 May 24 13:08  apt-get
-rwxr-xr-x 1 root root     27016 May 24 13:08  apt-config
-rwxr-xr-x 1 root root     31192 May 24 13:08  apt-cdrom
-rwxr-xr-x 1 root root     88536 May 24 13:08  apt-cache
-rwxr-xr-x 1 root root     18824 May 24 13:08  apt
-rwxr-xr-x 1 root root     55712 May 25 11:14  update-alternatives
-rwxr-xr-x 1 root root     84472 May 25 11:14  dpkg-trigger
-rwxr-xr-x 1 root root     63760 May 25 11:14  dpkg-statoverride
-rwxr-xr-x 1 root root    125424 May 25 11:14  dpkg-split
-rwxr-xr-x 1 root root    166488 May 25 11:14  dpkg-query
-rwxr-xr-x 1 root root     20514 May 25 11:14  dpkg-maintscript-helper
-rwxr-xr-x 1 root root    154208 May 25 11:14  dpkg-divert
-rwxr-xr-x 1 root root    178728 May 25 11:14  dpkg-deb
-rwxr-xr-x 1 root root    309944 May 25 11:14  dpkg
-rwxr-xr-x 1 root root     14656 Jun  2 00:59  lsattr
-rwxr-xr-x 1 root root     14656 Jun  2 00:59  chattr
-rwxr-xr-x 1 root root    457880 Jul  4 16:20  gpgv
-rwxr-xr-x 2 root root   3478464 Oct  5 10:27  perl5.30.0
-rwxr-xr-x 2 root root   3478464 Oct  5 10:27  perl
lrwxrwxrwx 1 root root        22 Oct 19 16:47  nawk -> /etc/alternatives/nawk
lrwxrwxrwx 1 root root        21 Oct 19 16:47  awk -> /etc/alternatives/awk
lrwxrwxrwx 1 root root        19 Oct 19 16:47  w -> /etc/alternatives/w
lrwxrwxrwx 1 root root        23 Oct 19 16:47  pager -> /etc/alternatives/pager
-rwxr-xr-x 1 root root       320 Oct 19 16:49  man
-rwxr-xr-x 1 root root     10481 Nov  6 10:47  savelog
-rwxr-xr-x 1 root root    162552 Nov  6 10:47  mawk
-rwxr-xr-x 1 root root     14496 Nov  6 10:47  locale-check
-rwxr-xr-x 1 root root     14536 Nov  6 10:47  ischroot
-rwxr-xr-x 1 root root     14568 Nov  6 10:47  clear_console
-rwxr-xr-x 1 root root      6794 Nov  6 10:47  bashbug
gruyaume commented 1 year ago

Ahh I figured it out, one needs to add python3 and python3-venv to the stage-packages.