Error in create-local-temp-apt-repo - Building a minimal physical gateway

Hello friends !
Can you help me please :slight_smile:

  • I tried to setup Whonix Gateway on separate hardware.
  • I did all steps to prepare the host system.#
  • I have a standard intel x64 mini pc for that.

I only want a very minimal working gateway. There I used the:
## example list for minimal rpi gateway
and removed the pkg_list_create() function in this file:
/buildconfig.d/30_pkg_list.conf

Then I used this build command:
sudo ./derivative-maker --flavor whonix-gateway-xfce --target root --build --sanity-tests false --allow-uncommitted true --allow-untagged true

I got this error:


ERROR in /home/user/derivative-maker/help-steps/create-local-temp-apt-repo detected!


last_failed_bash_command: mount --bind "$dist_apt_repository_folder" "$CHROOT_FOLDER/$DEB_INSTALL_FOLDER/$derivative_name_item"

Full log:


INFO: Setting... export UWT_DEV_PASSTHROUGH="1"
INFO: Variable dist_build_version was already set to: 16.0.5.3
++ true 'INFO: Currently running script: /home/user/derivative-maker/help-steps/create-local-temp-apt-repo '
++ true 'INFO: LD_PRELOAD: '
+ main
+ root_check
++ id -u
+ '[' 0 '!=' 0 ']'
+ echo 'INFO: Script running as root.'
INFO: Script running as root.
+ true 'derivative_name_list: kicksecure whonix'
+ for derivative_name_item in $derivative_name_list
+ set_dist_build_reprepro_folder_options
+ true 'derivative_name_item: kicksecure'
+ '[' kicksecure = '' ']'
+ '[' '' = '' ']'
+ reprepro_codename=local
+ '[' local = local ']'
+ apt_repo_sub_folder=aptrepo_local/kicksecure
+ dist_apt_repository_folder=/home/user/derivative-binary/aptrepo_local/kicksecure
+ export dist_apt_repository_folder
+ dist_build_reprepro_folder_options='      --basedir /home/user/derivative-maker/aptrepo_local/kicksecure       --outdir /home/user/derivative-binary/aptrepo_local/kicksecure       --dbdir /home/user/derivative-binary/aptrepo_local/kicksecure/db       --logdir /home/user/derivative-binary/aptrepo_local/kicksecure/log'
+ export dist_build_reprepro_folder_options
+ mkdir --parents //mnt/initialdeb/kicksecure
+ mkdir --parents //tmp/empty
+ mkdir --parents //var/lib/derivative-maker/sources-temp-list.d
+ true 'dist_sources_list_temp_initial_deb_sources_list: //var/lib/derivative-maker/sources-temp-list.d/temp-initialdeb.list'
+ true 'sources_list_target_build_remote_derivative: '
+ '[' '' = true ']'
+ test -d /home/user/derivative-binary/aptrepo_local/kicksecure
+ mount --bind /home/user/derivative-binary/aptrepo_local/kicksecure //mnt/initialdeb/kicksecure
mount: /mnt/initialdeb/kicksecure: mount(2) system call failed: No such file or directory.
++ errorhandlergeneral ERR
++ last_failed_exit_code=32
++ last_failed_bash_command='mount --bind "$dist_apt_repository_folder" "$CHROOT_FOLDER/$DEB_INSTALL_FOLDER/$derivative_name_item"'
++ output_cmd_set
++ '[' -o xtrace ']'
++ output_cmd=true
++ true 'INFO: Middle of function errorhandlergeneral of /home/user/derivative-maker/help-steps/create-local-temp-apt-repo.'
++ errorhandlerprocessshared ERR
++ last_script=/home/user/derivative-maker/help-steps/create-local-temp-apt-repo
++ trap_signal_type_previous=
++ '[' '' = '' ']'
++ trap_signal_type_previous=unset
++ trap_signal_type_last=ERR
++ dist_build_error_counter=1
+++ benchmarktimeend 1661588391
++++ date +%s
+++ benchmarktimeend=1661588391
+++ benchmark_took_seconds=0
++++ convertsecs 0
++++ local h m s
++++ (( h=0/3600 ))
++++ true
++++ (( m=(0%3600)/60 ))
++++ true
++++ (( s=0%60 ))
++++ true
++++ printf '%02d:%02d:%02d\n' 0 0 0
+++ echo 00:00:00
++ benchmark_took_time=00:00:00
++ local first
++ read -r first _
++ processbacktracefunction
++ true 'INFO: BEGIN: processbacktracefunction'
++ '[' -o xtrace ']'
++ set +x
++ true 'INFO: END  : processbacktracefunction'
++ functiontracefunction
++ true 'INFO: BEGIN: functiontracefunction'
++ '[' -o xtrace ']'
++ set +x
++ true 'INFO: END  : functiontracefunction'
++ output_cmd_set
++ '[' -o xtrace ']'
++ output_cmd=true
++ true '
############################################################
**ERROR in /home/user/derivative-maker/help-steps/create-local-temp-apt-repo detected!**

dist_build_version: 16.0.5.3
dist_build_error_counter: 1
benchmark: 00:00:00
last_failed_exit_code: 32
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: : sudo ./derivative-maker --flavor whonix-gateway-xfce --target root --build --sanity-tests false --allow-uncommitted true --allow-untagged true 
7: : /bin/bash ./derivative-maker --flavor whonix-gateway-xfce --target root --build --sanity-tests false --allow-uncommitted true --allow-untagged true 
8: : /bin/bash ././build-steps.d/1700_install-packages 
9: : /bin/bash /home/user/derivative-maker/help-steps/create-local-temp-apt-repo 

function_trace_result:
main (line number: 84)
main (line number: 59)
errorhandlergeneral (line number: 380)
errorhandlerprocessshared (line number: 209)


last_failed_bash_command: mount --bind "$dist_apt_repository_folder" "$CHROOT_FOLDER/$DEB_INSTALL_FOLDER/$derivative_name_item"
############################################################
'
++ 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 in /home/user/derivative-maker/help-steps/create-local-temp-apt-repo detected!

Please have a look above (the block within ###...).

 - Please enter c and press enter to ignore the error and continue building. (Recommended against!)
 - Please press r and enter to retry.
 - Please press s and enter to open an chroot interactive shell.
 - Please press a and enter to abort.'
++ read -p 'Answer? ' answer
Answer?

Maybe same as: