Hello,
i was trying to build Whonix on physical isolation following the documentation, but it fails at the command:
test -f "$gpg_temp_dir/pubring.gpg"
I checked the $gpg_temp_dir
and noticied that no pubring.gpg
was generated, then i tested the last 2 commands which was suposted to generate the pubring.gpg
:
gpg --no-options --no-default-keyring --homedir "$gpg_temp_dir" --import "$WHONIX_SOURCE_FOLDER/packages/anon-shared-build-apt-sources-tpo/usr/share/anon-shared-build-apt-sources-tpo/tpoarchive-keys.d/torprojectarchive.asc"
and
`gpg --no-options --no-default-keyring --homedir β$gpg_temp_dirβ --fingerprint
The result was an pubring.kbx
.
Last 300 Lines of the Log (3.326 Lines)
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:10)
trap_signal_type_previous: unset
trap_signal_type_last : ERR
process_backtrace_result:
1: : /sbin/init
2: : kdeinit5: Runningβ¦
3: : /usr/bin/ksmserver
4: : /usr/bin/plasmashell --shut-up
5: : /usr/bin/konsole
6: : /bin/bash
7: : sudo ./whonix_build --flavor whonix-gateway β --target root --build
8: : /bin/bash ./whonix_build --flavor whonix-gateway β --target root --build
9: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
10: : /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:10)
trap_signal_type_previous: unset
trap_signal_type_last : ERR
process_backtrace_result:
1: : /sbin/init
2: : kdeinit5: Runningβ¦
3: : /usr/bin/ksmserver
4: : /usr/bin/plasmashell --shut-up
5: : /usr/bin/konsole
6: : /bin/bash
7: : sudo ./whonix_build --flavor whonix-gateway β --target root --build
8: : /bin/bash ./whonix_build --flavor whonix-gateway β --target root --build
9: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
10: : /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 30538
++ 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.gpQEeU3nRu/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 1511621152
++++ date +%s
+++ benchmarktimeend=1511621168
+++ benchmark_took_seconds=16
++++ convertsecs 16
++++ local h m s
++++ (( h=16/3600 ))
++++ true
++++ (( m=(16%3600)/60 ))
++++ true
++++ (( s=16%60 ))
++++ printf β%02d:%02d:%02d\nβ 0 0 16
+++ echo 00:00:16
++ benchmark_took_time=00:00:16
++ 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:16)
trap_signal_type_previous: ERR
trap_signal_type_last : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init
2: : kdeinit5: Runningβ¦
3: : /usr/bin/ksmserver
4: : /usr/bin/plasmashell --shut-up
5: : /usr/bin/konsole
6: : /bin/bash
7: : sudo ./whonix_build --flavor whonix-gateway β --target root --build
8: : /bin/bash ./whonix_build --flavor whonix-gateway β --target root --build
9: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
10: : /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:16)
trap_signal_type_previous: ERR
trap_signal_type_last : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init
2: : kdeinit5: Runningβ¦
3: : /usr/bin/ksmserver
4: : /usr/bin/plasmashell --shut-up
5: : /usr/bin/konsole
6: : /bin/bash
7: : sudo ./whonix_build --flavor whonix-gateway β --target root --build
8: : /bin/bash ./whonix_build --flavor whonix-gateway β --target root --build
9: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --build
10: : /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? ++ error_handler_do_retry=
++ interactive_chroot_shell=
++ β[β ββ = continue β]β
++ β[β ββ = c β]β
++ β[β ββ = s β]β
++ β[β ββ = shell β]β
++ β[β ββ = r β]β
++ β[β ββ = retry β]β
++ ignore_error=false
++ interactive_chroot_shell=false
++ return 0
++ errorhandlermaybeexit ERR
++ β[β ββ = true β]β
++ β[β false = true β]β
++ abort_or_continue=Aborted
++ rm --force /etc/apt/sources.list.d/whonix_temp.list
++ rm --force /var/run/package_manager_lock
++ β[β false = true β]β
++ β[β βNONE_(called_by_errorhandlerretry)β = INT β]β
++ β[β βNONE_(called_by_errorhandlerretry)β = TERM β]β
++ trap - EXIT
++ echo βINFO: Now exiting from ././build-steps.d/1200_create-debian-packages (because error was detected, see above) with exit code 1.β
INFO: Now exiting from ././build-steps.d/1200_create-debian-packages (because error was detected, see above) with exit code 1.
++ exit 1
++ error_handler_whonix_build_one
++ true βERROR in ./help-steps/whonix_build_oneβ
++ true βBASH_COMMAND: β./$whonix_build_one_build_step_currentββ
++ true βwhonix_build_one_build_step_current: ./build-steps.d/1200_create-debian-packagesβ
++ true βargs: --flavor whonix-gateway --target root --buildβ
++ true βINFO: Now exiting from ./help-steps/whonix_build_one (because error was detected, see above).β
++ exit 1
- exithandler
- local exit_code=1
- β[β β!β 1 = 0 β]β
- exit 1
++ error_handler_build_main
++ true βERROR in ./whonix_buildβ
++ true βBASH_COMMAND: ./help-steps/whonix_build_one --flavor whonix-gateway $build_argsβ
++ true βINFO: Now exiting from ./whonix_build (because error was detected, see above).β
++ exit 1 - exithandler
- local exit_code=1
- β[β β!β 1 = 0 β]β
- exit 1
Technical Information
System: Debian Stretch 9.2 (also tested with Debian 8.9 Jessie)
Whonix: 13.0.0.1.4-stable
Error also related here.
Questions:
- Is this expected?
- How to fix it?
- If possible, could you please explain?
- Is this issue a dumb misunderstanding of the guide?
Thanks and sorry for bad english