Hi, im having trouble building Whonix-gateway for a physical machine. I followed the instructions on the wiki step by step, got the source code for Whonix 13 / Jessie including git submodules, and checkout version 13.0.0.1.4-stable. Build was made with the default sudo ./whonix_build --flavor whonix-gateway – --target root --build >> ~/log-phyiso 2>&1. However, I always get an ERROR when running command test -f “$gpg_temp_dir/pubring.gpg”. I tried to make the build on a freshly debian 8.8 netinstall, as well as on a debian 9 fresh install (both 32 bit).
Heres the last300 lnes of the log:
gpg: no ultimately trusted keys found
- gpg --no-options --no-default-keyring --homedir /tmp/tmp.22nOkDCYfA --fingerprint
/tmp/tmp.22nOkDCYfA/pubring.kbx
pub rsa2048 2009-09-04 [SC] [expires: 2020-08-29]
A3C4 F0F9 79CA A22C DBA8 F512 EE8C BC9E 886D DD89
uid [ unknown] deb.torproject.org archive signing key
sub rsa2048 2009-09-04 [S] [expires: 2018-08-30]
- test -f /tmp/tmp.22nOkDCYfA/pubring.gpg
++ errorhandlergeneral ERR
++ last_failed_exit_code=1
++ last_failed_bash_command=‘test -f “$gpg_temp_dir/pubring.gpg”’
++ output_cmd_set
++ ‘[’ -o xtrace ‘]’
++ output_cmd=echo
++ echo ‘INFO: Middle of function errorhandlergeneral of ././build-steps.d/1200_create-debian-packages.’
INFO: Middle of function errorhandlergeneral of ././build-steps.d/1200_create-debian-packages.
++ errorhandlerprocessshared ERR
++ last_script=././build-steps.d/1200_create-debian-packages
++ trap_signal_type_previous=
++ ‘[’ ‘’ = ‘’ ‘]’
++ trap_signal_type_previous=unset
++ trap_signal_type_last=ERR
++ whonix_build_error_counter=1
+++ benchmarktimeend 1501137664
++++ date +%s
+++ benchmarktimeend=1501137670
+++ benchmark_took_seconds=6
++++ convertsecs 6
++++ local h m s
++++ (( h=6/3600 ))
++++ true
++++ (( m=(6%3600)/60 ))
++++ true
++++ (( s=6%60 ))
++++ printf ‘%02d:%02d:%02d\n’ 0 0 6
+++ echo 00:00:06
++ benchmark_took_time=00:00:06
++ processbacktracefunction
++ echo ‘INFO: BEGIN: processbacktracefunction’
INFO: BEGIN: processbacktracefunction
++ ‘[’ -o xtrace ‘]’
++ set +x
++ echo ‘INFO: END : processbacktracefunction’
INFO: END : processbacktracefunction
++ functiontracefunction
++ echo ‘INFO: BEGIN: functiontracefunction’
INFO: BEGIN: functiontracefunction
++ ‘[’ -o xtrace ‘]’
++ set +x
++ echo ‘INFO: END : functiontracefunction’
INFO: END : functiontracefunction
++ echo ’
############################################################
ERROR in ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 13.0.0.1.4
(whonix_build_error_counter: 1)
(benchmark: 00:00:06)
trap_signal_type_previous: unset
trap_signal_type_last : ERR
process_backtrace_result:
1: : /sbin/init
2: : /bin/login –
3: : -bash
4: : sudo ./whonix_build --flavor whonix-gateway – --target root --build
5: : /bin/bash ./whonix_build --flavor whonix-gateway – --target root --build
6: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
7: : /bin/bash ././build-steps.d/1200_create-debian-packages
function_trace_result:
main (line number: 408)
main (line number: 404)
create-debian-packages (line number: 394)
get_tpo_packages (line number: 157)
errorhandlergeneral (line number: 323)
errorhandlerprocessshared (line number: 170)
last_failed_bash_command: test -f “$gpg_temp_dir/pubring.gpg”
last_failed_exit_code: 1
ERROR in ././build-steps.d/1200_create-debian-packages detected!
############################################################
’
############################################################
ERROR in ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 13.0.0.1.4
(whonix_build_error_counter: 1)
(benchmark: 00:00:06)
trap_signal_type_previous: unset
trap_signal_type_last : ERR
process_backtrace_result:
1: : /sbin/init
2: : /bin/login –
3: : -bash
4: : sudo ./whonix_build --flavor whonix-gateway – --target root --build
5: : /bin/bash ./whonix_build --flavor whonix-gateway – --target root --build
6: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
7: : /bin/bash ././build-steps.d/1200_create-debian-packages
function_trace_result:
main (line number: 408)
main (line number: 404)
create-debian-packages (line number: 394)
get_tpo_packages (line number: 157)
errorhandlergeneral (line number: 323)
errorhandlerprocessshared (line number: 170)
last_failed_bash_command: test -f “$gpg_temp_dir/pubring.gpg”
last_failed_exit_code: 1
ERROR in ././build-steps.d/1200_create-debian-packages detected!
############################################################
++ ‘[’ ERR = INT ‘]’
++ ‘[’ ERR = TERM ‘]’
++ ‘[’ ERR = ERR ‘]’
++ echo ‘INFO: trap_signal_type_last: ERR, considering auto retry…’
INFO: trap_signal_type_last: ERR, considering auto retry…
++ ‘[’ ‘!’ 1 = 0 ‘]’
++ ‘[’ ‘’ = ‘’ ‘]’
++ whonix_build_auto_retry_counter=1
++ ‘[’ -n 1 ‘]’
++ ‘[’ -n 5 ‘]’
++ local first
++ read -r first _
++ ‘[’ test = error_ ‘]’
++ ‘[’ 1 -gt 1 ‘]’
++ echo 'INFO: Auto retry attempt number: 1. Max retry attempts: 1 (–retry-max). Auto retry… ’
INFO: Auto retry attempt number: 1. Max retry attempts: 1 (–retry-max). Auto retry…
++ whonix_build_auto_retry_counter=2
++ ‘[’ ‘!’ 5 = 0 ‘]’
++ echo 'INFO: Waiting (–retry-wait) 5 seconds before auto retry… ’
INFO: Waiting (–retry-wait) 5 seconds before auto retry…
++ wait 30371
++ sleep 5
++ ignore_error=echo
++ error_handler_do_retry=echo
++ errorhandlerretry
++ ‘[’ ‘!’ ‘’ = ‘’ ‘]’
++ echo ‘INFO: Skipping whonix_build_dispatch_before_retry (–retry-before), because empty, ok.’
INFO: Skipping whonix_build_dispatch_before_retry (–retry-before), because empty, ok.
++ echo 'INFO: Retrying last_failed_bash_command…: test -f “$gpg_temp_dir/pubring.gpg” ’
INFO: Retrying last_failed_bash_command…: test -f “$gpg_temp_dir/pubring.gpg”
++ retry_last_failed_bash_command_exit_code=0
++ eval test -f ‘“$gpg_temp_dir/pubring.gpg”’
+++ test -f /tmp/tmp.22nOkDCYfA/pubring.gpg
++ retry_last_failed_bash_command_exit_code=1
++ true
++ ‘[’ 1 = 0 ‘]’
++ echo 'INFO: Retry failed. exit code of last_failed_bash_command: 1 ’
INFO: Retry failed. exit code of last_failed_bash_command: 1
++ last_failed_exit_code=1
++ last_failed_bash_command=‘test -f “$gpg_temp_dir/pubring.gpg”’
++ ‘[’ ‘!’ ‘’ = ‘’ ‘]’
++ echo ‘INFO: Skipping whonix_build_dispatch_after_retry (–retry-after), because empty, ok.’
INFO: Skipping whonix_build_dispatch_after_retry (–retry-after), because empty, ok.
++ ‘[’ 1 = 0 ‘]’
++ errorhandlerprocessshared ‘NONE_(called_by_errorhandlerretry)’
++ last_script=././build-steps.d/1200_create-debian-packages
++ trap_signal_type_previous=ERR
++ ‘[’ ERR = ‘’ ‘]’
++ trap_signal_type_last=‘NONE_(called_by_errorhandlerretry)’
++ whonix_build_error_counter=2
+++ benchmarktimeend 1501137664
++++ date +%s
+++ benchmarktimeend=1501137675
+++ benchmark_took_seconds=11
++++ convertsecs 11
++++ local h m s
++++ (( h=11/3600 ))
++++ true
++++ (( m=(11%3600)/60 ))
++++ true
++++ (( s=11%60 ))
++++ printf ‘%02d:%02d:%02d\n’ 0 0 11
+++ echo 00:00:11
++ benchmark_took_time=00:00:11
++ processbacktracefunction
++ echo ‘INFO: BEGIN: processbacktracefunction’
INFO: BEGIN: processbacktracefunction
++ ‘[’ -o xtrace ‘]’
++ set +x
++ echo ‘INFO: END : processbacktracefunction’
INFO: END : processbacktracefunction
++ functiontracefunction
++ echo ‘INFO: BEGIN: functiontracefunction’
INFO: BEGIN: functiontracefunction
++ ‘[’ -o xtrace ‘]’
++ set +x
++ echo ‘INFO: END : functiontracefunction’
INFO: END : functiontracefunction
++ echo ’
############################################################
ERROR in ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 13.0.0.1.4
(whonix_build_error_counter: 2)
(benchmark: 00:00:11)
trap_signal_type_previous: ERR
trap_signal_type_last : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init
2: : /bin/login –
3: : -bash
4: : sudo ./whonix_build --flavor whonix-gateway – --target root --build
5: : /bin/bash ./whonix_build --flavor whonix-gateway – --target root --build
6: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
7: : /bin/bash ././build-steps.d/1200_create-debian-packages
function_trace_result:
main (line number: 408)
main (line number: 404)
create-debian-packages (line number: 394)
get_tpo_packages (line number: 157)
errorhandlergeneral (line number: 323)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 155)
errorhandlerprocessshared (line number: 170)
errorhandlerprocessshared (line number: 170)
errorhandlergeneral (line number: 323)
get_tpo_packages (line number: 157)
create-debian-packages (line number: 394)
main (line number: 404)
main (line number: 408)
last_failed_bash_command: test -f “$gpg_temp_dir/pubring.gpg”
last_failed_exit_code: 1
ERROR in ././build-steps.d/1200_create-debian-packages detected!
############################################################
’
############################################################
ERROR in ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 13.0.0.1.4
(whonix_build_error_counter: 2)
(benchmark: 00:00:11)
trap_signal_type_previous: ERR
trap_signal_type_last : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init
2: : /bin/login –
3: : -bash
4: : sudo ./whonix_build --flavor whonix-gateway – --target root --build
5: : /bin/bash ./whonix_build --flavor whonix-gateway – --target root --build
6: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
7: : /bin/bash ././build-steps.d/1200_create-debian-packages
function_trace_result:
main (line number: 408)
main (line number: 404)
create-debian-packages (line number: 394)
get_tpo_packages (line number: 157)
errorhandlergeneral (line number: 323)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 155)
errorhandlerprocessshared (line number: 170)
errorhandlerprocessshared (line number: 170)
errorhandlergeneral (line number: 323)
get_tpo_packages (line number: 157)
create-debian-packages (line number: 394)
main (line number: 404)
main (line number: 408)
last_failed_bash_command: test -f “$gpg_temp_dir/pubring.gpg”
last_failed_exit_code: 1
ERROR in ././build-steps.d/1200_create-debian-packages detected!
############################################################
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = INT ‘]’
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = TERM ‘]’
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = ERR ‘]’
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = ‘NONE_(called_by_errorhandlerretry)’ ‘]’
++ echo ‘INFO: trap_signal_type_last: NONE_(called_by_errorhandlerretry), considering auto retry…’
INFO: trap_signal_type_last: NONE_(called_by_errorhandlerretry), considering auto retry…
++ ‘[’ ‘!’ 1 = 0 ‘]’
++ ‘[’ 2 = ‘’ ‘]’
++ ‘[’ -n 1 ‘]’
++ ‘[’ -n 5 ‘]’
++ local first
++ read -r first _
++ ‘[’ test = error_ ‘]’
++ ‘[’ 2 -gt 1 ‘]’
++ echo 'INFO: Auto retried (–retry-max) already 1 times. No more auto retry. ’
INFO: Auto retried (–retry-max) already 1 times. No more auto retry.
++ unset whonix_build_auto_retry_counter
++ ignore_error=false
++ answer=
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = ERR ‘]’
++ ‘[’ ‘NONE_(called_by_errorhandlerretry)’ = ‘NONE_(called_by_errorhandlerretry)’ ‘]’
++ echo 'INFO: whonix_build_non_interactive: ’
INFO: whonix_build_non_interactive:
++ ‘[’ ‘’ = true ‘]’
++ ‘[’ -t 0 ‘]’
++ echo ‘INFO: stdin connected to terminal, using interactive error handler.’
INFO: stdin connected to terminal, using interactive error handler.
++ echo 'ERROR in ././build-steps.d/1200_create-debian-packages detected!
Please have a look above (the block within ###…), note the command that failed, last_failed_exit_code and its output (further above).
- 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 enter to cleanup and exit.’
ERROR in ././build-steps.d/1200_create-debian-packages detected!
Please have a look above (the block within ###…), note the command that failed, last_failed_exit_code and its output (further above).- 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 enter to cleanup and exit.
++ read -p 'Answer? ’ answer
Answer?