Whonix on Mac M1 (ARM) - User Support (still unsupported at time of writing)

https://web.archive.org/web/https://github.com/utmapp/UTM/releases/latest/download/UTM.dmg

Link is not broken. There is no need to use the web archived version.

I’m consistently getting the same error as fractalshine

'ERROR: Failed to install '\''dracut' dracut-live dracut-config-generic dracut-config-rescue binutils dmsetup pigz linux-image-arm64 linux-headers-arm64 sbsigntool efibootmgr mokutil keyutils shim-signed-common efivar fwupd fwupd-signed spice-vdagent 'non-qubes-whonix-gateway-cli'\''. (apt_get_exit_code: 100) Attempting to gather debug output to diagnose the problem...'

Here’s more debug log excerpts:

permission-hardener: [NOTICE]: Executing: setcap -r /bin/ping
permission-hardener: [NOTICE]: To compare the current and previous permission modes, install 'meld' (or preferred diff tool) for comparison of file mode changes:
    sudo apt install --no-install-recommends meld
    meld /var/lib/permission-hardener/existing_mode/statoverride /var/lib/permission-hardener/new_mode/statoverride
/var/lib/dpkg/info/security-misc.postinst: INFO: Permission hardening success.
Errors were encountered while processing:
 tirdad-dkms
 tirdad
 non-qubes-enhancements-cli
 non-qubes-whonix-gateway-cli
E: Sub-process /usr/bin/dpkg returned an error code (1)
+ apt_get_exit_code=100
+ true
+ sudo --non-interactive --preserve-env=tbb_version,tb_onion,tpo_downloader_debug,tb_disable_anon_ws_dnf_conf,anon_shared_inst_tb,SKIP_SCRIPTS,SOURCE_DATE_EPOCH,dist_aptgetopt_file,dist_build_sources_list_primary,dist_mmdebstrap_build_sources_list_primary,dist_build_sources_list_primary_contents,dist_build_apt_sources_mirror,dist_build_apt_stable_release,dist_build_target_arch,dist_grml_mount_point,dist_source_help_steps_folder,dist_build_multiarch_package_item,dist_build_unsafe_io,dist_build_version,derivative_maker,user_name,LD_PRELOAD,LANG,LC_ALL,TZ,DEBDEBUG,XZ_OPT,REPO_PROXY,APTGETOPT,apt_unattended_opts,DERIVATIVE_APT_REPOSITORY_OPTS,DEBOOTSTRAP,http_proxy,https_proxy,ALL_PROXY,DEBIAN_FRONTEND,DEBIAN_PRIORITY,DEBCONF_NOWARNINGS,APT_LISTCHANGES_FRONTEND,INITRD env --unset TEMP --unset TEMPDIR --unset TMP --unset TMPDIR chroot /home/user/derivative-binary/Whonix-Gateway-CLI_image sync
+ sudo --non-interactive --preserve-env=tbb_version,tb_onion,tpo_downloader_debug,tb_disable_anon_ws_dnf_conf,anon_shared_inst_tb,SKIP_SCRIPTS,SOURCE_DATE_EPOCH,dist_aptgetopt_file,dist_build_sources_list_primary,dist_mmdebstrap_build_sources_list_primary,dist_build_sources_list_primary_contents,dist_build_apt_sources_mirror,dist_build_apt_stable_release,dist_build_target_arch,dist_grml_mount_point,dist_source_help_steps_folder,dist_build_multiarch_package_item,dist_build_unsafe_io,dist_build_version,derivative_maker,user_name,LD_PRELOAD,LANG,LC_ALL,TZ,DEBDEBUG,XZ_OPT,REPO_PROXY,APTGETOPT,apt_unattended_opts,DERIVATIVE_APT_REPOSITORY_OPTS,DEBOOTSTRAP,http_proxy,https_proxy,ALL_PROXY,DEBIAN_FRONTEND,DEBIAN_PRIORITY,DEBCONF_NOWARNINGS,APT_LISTCHANGES_FRONTEND,INITRD sync
+ '[' 100 = 0 ']'
+ true 'ERROR: Failed to install '\''dracut' dracut-live dracut-config-generic dracut-config-rescue binutils dmsetup pigz linux-image-arm64 linux-headers-arm64 sbsigntool efibootmgr mokutil keyutils shim-signed-common efivar fwupd fwupd-signed spice-vdagent 'non-qubes-whonix-gateway-cli'\''. (apt_get_exit_code: 100) Attempting to gather debug output to diagnose the problem...'
+ true 'INFO: Read output of apt-get-noninteractive trying to install '\''dracut' dracut-live dracut-config-generic dracut-config-rescue binutils dmsetup pigz linux-image-arm64 linux-headers-arm64 sbsigntool efibootmgr mokutil keyutils shim-signed-common efivar fwupd fwupd-signed spice-vdagent 'non-qubes-whonix-gateway-cli'\'' into a variable for debugging. This may take a while...'
+ local apt_get_exit_code=0

and

+ true 'ERROR: As expected, failed again to install '\''dracut' dracut-live dracut-config-generic dracut-config-rescue binutils dmsetup pigz linux-image-arm64 linux-headers-arm64 sbsigntool efibootmgr mokutil keyutils shim-signed-common efivar fwupd fwupd-signed spice-vdagent 'non-qubes-whonix-gateway-cli'\''. (apt_get_exit_code: 100) Trying to diagnose the problem using function apt_get_parse_unmet_dependency...'
+ apt_get_parse_unmet_dependency dracut dracut-live dracut-config-generic dracut-config-rescue binutils dmsetup pigz linux-image-arm64 linux-headers-arm64 sbsigntool efibootmgr mokutil keyutils shim-signed-common efivar fwupd fwupd-signed spice-vdagent non-qubes-whonix-gateway-cli
+ local pkg_unmet
+ pkg_unmet=dracut
+ true 'INFO: Running "dpkg -l | grep dracut"...'
+ sudo --non-interactive --preserve-env=tbb_version,tb_onion,tpo_downloader_debug,tb_disable_anon_ws_dnf_conf,anon_shared_inst_tb,SKIP_SCRIPTS,SOURCE_DATE_EPOCH,dist_aptgetopt_file,dist_build_sources_list_primary,dist_mmdebstrap_build_sources_list_primary,dist_build_sources_list_primary_contents,dist_build_apt_sources_mirror,dist_build_apt_stable_release,dist_build_target_arch,dist_grml_mount_point,dist_source_help_steps_folder,dist_build_multiarch_package_item,dist_build_unsafe_io,dist_build_version,derivative_maker,user_name,LD_PRELOAD,LANG,LC_ALL,TZ,DEBDEBUG,XZ_OPT,REPO_PROXY,APTGETOPT,apt_unattended_opts,DERIVATIVE_APT_REPOSITORY_OPTS,DEBOOTSTRAP,http_proxy,https_proxy,ALL_PROXY,DEBIAN_FRONTEND,DEBIAN_PRIORITY,DEBCONF_NOWARNINGS,APT_LISTCHANGES_FRONTEND,INITRD env --unset TEMP --unset TEMPDIR --unset TMP --unset TMPDIR chroot /home/user/derivative-binary/Whonix-Gateway-CLI_image dpkg -l
+ grep dracut
ii  dracut                                   059-4                          all          Initramfs generator using udev
ii  dracut-config-generic                    059-4                          all          dracut is an event driven initramfs infrastructure
ii  dracut-config-rescue                     059-4                          all          dracut is an event driven initramfs infrastructure
ii  dracut-core                              059-4                          arm64        dracut is an event driven initramfs infrastructure (core tools)
ii  dracut-live                              059-4                          all          dracut is an event driven initramfs infrastructure (live image modules)
ii  grub-live-dracut                         3:6.4-1                        all          grub live dracut dependencies
+ sudo --non-interactive --preserve-env=tbb_version,tb_onion,tpo_downloader_debug,tb_disable_anon_ws_dnf_conf,anon_shared_inst_tb,SKIP_SCRIPTS,SOURCE_DATE_EPOCH,dist_aptgetopt_file,dist_build_sources_list_primary,dist_mmdebstrap_build_sources_list_primary,dist_build_sources_list_primary_contents,dist_build_apt_sources_mirror,dist_build_apt_stable_release,dist_build_target_arch,dist_grml_mount_point,dist_source_help_steps_folder,dist_build_multiarch_package_item,dist_build_unsafe_io,dist_build_version,derivative_maker,user_name,LD_PRELOAD,LANG,LC_ALL,TZ,DEBDEBUG,XZ_OPT,REPO_PROXY,APTGETOPT,apt_unattended_opts,DERIVATIVE_APT_REPOSITORY_OPTS,DEBOOTSTRAP,http_proxy,https_proxy,ALL_PROXY,DEBIAN_FRONTEND,DEBIAN_PRIORITY,DEBCONF_NOWARNINGS,APT_LISTCHANGES_FRONTEND,INITRD env --unset TEMP --unset TEMPDIR --unset TMP --unset TMPDIR chroot /home/user/derivative-binary/Whonix-Gateway-CLI_image apt-cache policy dracut
dracut:
  Installed: 059-4
  Candidate: 059-4
  Version table:
 *** 059-4 100
        100 /var/lib/dpkg/status
+ local line
+ set +x
+ true 'INFO: Tried to diagnose the problem using function apt_get_parse_unmet_dependency.'
+ error 'See above!'
+ output_cmd_set
+ '[' -o xtrace ']'
+ output_cmd=true
+ true '############################################################'
+ true 'ERROR:'
+ true '          $0: ././build-steps.d/3500_install-packages'
+ true '$BASH_SOURCE: pre'
+ true '      message: See above!'
+ true '############################################################'

and


#####

dist_build_version: 17.2.8.5
dist_build_error_counter: 1
benchmark: 00:01:40
last_failed_exit_code: 127
trap_signal_type_previous: unset
trap_signal_type_last    : ERR

process_backtrace_result:
1: : init
2: : sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups 
3: : sshd: user [priv]    
4: : sshd: user@pts/0     
5: : -bash 
6: : /bin/bash /home/user/derivative-maker/derivative-maker --flavor whonix-gateway-cli --type vm --target utm --arch arm64 --tb open --repo true --vmsize 15G 
7: : /bin/bash ././build-steps.d/3500_install-packages --flavor whonix-gateway-cli --type vm --target utm --arch arm64 --tb open --repo true --vmsize 15G 

function_trace_result:
main (line number: 569)
main (line number: 565)
install-packages (line number: 449)
pkg-list-install (line number: 187)
pkg-install (line number: 149)
error (line number: 73)
exception_handler_unchroot_unmount (line number: 73)
exception_handler_process_shared (line number: 73)

message: See above!
last_failed_bash_command: error_ "See above! (There should be a bold, red message surrounded by blue hashtags (#).)"
############################################################
'
++ unset error_reason
++ '[' ERR = INT ']'
++ '[' ERR = TERM ']'
++ '[' ERR = ERR ']'
++ '[' '!' 0 = 0 ']'
++ true 'INFO: dist_build_auto_retry set to 0 (--retry-max). No auto retry.'
++ unset dist_build_auto_retry_counter
++ true
++ ignore_error=false
++ answer=
++ '[' ERR = ERR ']'
++ '[' '' = true ']'
++ '[' -t 0 ']'
++ true 'INFO: stdin connected to terminal, using interactive error handler.'
++ true 'ERROR: An issue in ././build-steps.d/3500_install-packages has been detected!

please let me know what else I can provide or how else I can help!

if I continue through the errors, I get usable utm images, but cannot upgrade or install tirdad-dkms tirdad non-qubes-enhancements-cli or non-qubes-whonix-gateway-cli packages. Similar error for non-qubes-whonix-workstation-xfce