[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

[Help Welcome] KVM Development - staying the course

@Patrick_mobile

Attempting build but I’m seeing a nasty error. Does this have anything to do wih recent fixes to the script for kicksecure?

Processing triggers for systemd (241-7~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
[ ERR] Writing extended state information
[ ERR] Building tag database

Current status: 0 (-1) broken, 1 (+1) upgradable.
E: Failed to fork process for dpkg selections.
E: failed to save selections to dpkg database
E: pbuilder-satisfydepends failed.
I: Copying back the cached apt archive contents
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/cow.cow_amd64/cow.11131
++ error_handler_pre
++ local exit_code=1
++ local 'last_err=sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"'
++ '[' '!' 1 = 1 ']'
++ '[' '' = '' ']'
++ output='## See above.'
++ force_output '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################
'
++ '[' '' = true ']'
++ echo '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################
'

####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################

++ '[' '' = true ']'
++ rm -f /tmp/tmp.eYa8A4Mop6
++ exit 1
++ error_handler_pre
++ local exit_code=1
++ local 'last_err="$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build'
++ '[' '!' 1 = 1 ']'
++ '[' '' = '' ']'
++ output='## See above.'
++ force_output '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################
'
++ '[' '' = true ']'
++ echo '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################
'

####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################

++ '[' '' = true ']'
++ rm -f /tmp/tmp.lqG0IRLCWh
++ exit 1
make: *** [/usr/share/genmkfile/makefile-full:67: deb-pkg] Error 1
++ retry_last_failed_bash_command_exit_code=2
++ true
++ '[' 2 = 0 ']'
++ true 'INFO: Retry failed. exit code of last_failed_bash_command: 2 '
++ last_failed_exit_code=2
++ last_failed_bash_command='sudo $SUDO_OPTS -E make -f "$make_file" deb-pkg'
++ '[' '!' '' = '' ']'
++ true 'INFO: Skipping whonix_build_dispatch_after_retry (--retry-after), because empty, ok.'
++ '[' 2 = 0 ']'
++ errorhandlerprocessshared 'NONE_(called_by_errorhandlerretry)'
++ last_script=././build-steps.d/1200_create-debian-packages
++ trap_signal_type_previous='NONE_(called_by_errorhandlerretry)'
++ '[' 'NONE_(called_by_errorhandlerretry)' = '' ']'
++ trap_signal_type_last='NONE_(called_by_errorhandlerretry)'
++ whonix_build_error_counter=4
+++ benchmarktimeend 1567959907
++++ date +%s
+++ benchmarktimeend=1567961580
+++ benchmark_took_seconds=1673
++++ convertsecs 1673
++++ local h m s
++++ (( h=1673/3600 ))
++++ true
++++ (( m=(1673%3600)/60 ))
++++ (( s=1673%60 ))
++++ printf '%02d:%02d:%02d\n' 0 27 53
+++ echo 00:27:53
++ benchmark_took_time=00:27:53
++ 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 ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 15.0.0.4.9
(whonix_build_error_counter: 4)
(benchmark: 00:27:53)
trap_signal_type_previous: NONE_(called_by_errorhandlerretry)
trap_signal_type_last    : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init 
2: : xfce4-terminal 
3: : bash 
4: : sudo REPO_PROXY=http://127.0.0.1:3142 ./whonix_build --flavor whonix-gateway-xfce --build --redistribute --target qcow2 --unsafe-io true 
5: : /bin/bash ./whonix_build --flavor whonix-gateway-xfce --build --redistribute --target qcow2 --unsafe-io true 
6: : /bin/bash ././build-steps.d/1200_create-debian-packages 
function_trace_result:
main (line number: 212)
main (line number: 208)
create-debian-packages (line number: 200)
create_whonix_debian_packages (line number: 172)
errorhandlergeneral (line number: 334)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 275)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 169)
main (line number: 212)
main (line number: 208)
create-debian-packages (line number: 200)
create_whonix_debian_packages (line number: 172)
errorhandlergeneral (line number: 334)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 169)
errorhandlerprocessshared (line number: 169)
errorhandlergeneral (line number: 334)
create_whonix_debian_packages (line number: 172)
create-debian-packages (line number: 200)
main (line number: 208)
main (line number: 212)
errorhandlerprocessshared (line number: 169)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 275)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 220)
errorhandlergeneral (line number: 334)
create_whonix_debian_packages (line number: 172)
create-debian-packages (line number: 200)
main (line number: 208)
main (line number: 212)
last_failed_bash_command: sudo $SUDO_OPTS -E make -f "$make_file" deb-pkg
last_failed_exit_code: 2
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)' ']'
++ true 'INFO: trap_signal_type_last: NONE_(called_by_errorhandlerretry), considering auto retry...'
++ '[' '!' 1 = 0 ']'
++ '[' 2 = '' ']'
++ '[' -n 1 ']'
++ '[' -n 5 ']'
++ local first
++ read -r first _
++ '[' sudo = error_ ']'
++ '[' 2 -gt 1 ']'
++ true 'INFO: Auto retried (--retry-max) already 1 times. No more auto retry. '
++ unset whonix_build_auto_retry_counter
++ true
++ ignore_error=false
++ answer=
++ '[' 'NONE_(called_by_errorhandlerretry)' = ERR ']'
++ '[' 'NONE_(called_by_errorhandlerretry)' = 'NONE_(called_by_errorhandlerretry)' ']'
++ true 'INFO: whonix_build_non_interactive: '
++ '[' '' = true ']'
++ '[' -t 0 ']'
++ true 'INFO: stdin connected to terminal, using interactive error handler.'
++ true '   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 a and enter to abort.'
++ read -p 'Answer? ' answer
1 Like

Root account unlocked and user added to the wheel if it’s any use for debugging.

Building on plain Debian? Or Whonix?

If Whonix, make sure it’s updated.

Whonix. Yes it’s always updated before building. Booted into root emergency mode with same results

1 Like

I don’t think so.

The log is too short. This looks like it’s failing to build the packages but I can’t see which package is failing to build.

Not of any use for debugging. Changes that came out from Restrict root access is

Group sudo membership is required to use su (by package security-misc).

Root login within a virtual console will be disabled by default after upgrades. [10] [11]

For security reasons the root account is locked and expired by default in Whonix ™ 15.0.0.3.6 and above. For most users there should be no need to use the root account. If it must be enabled for some reason, run the following commands.

Documented here:

None of these changes should change anything related to functionality for any common workflows. Well, not only common workflows. Any workflows. Building Whonix requires none of this. I yet have to see anything that will not work due to this.

(Well, overlooking this very post Restrict root access )

1 Like

OK here’s a longer log I’m not going to try guessing what’s wrong this time:

+ type -t make_get_destdir_hook_pre
+ true
+ make_get_destdir
+ '[' / = '' ']'
+ type -t make_hook_at_the_end_of_get_destdir
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_get_destdir_hook_post
+ make_function_run make_get_variables
+ local function_name function_name_return_code
+ function_name=make_get_variables
+ shift
+ type -t make_get_variables_hook_pre
+ true
+ make_get_variables
+ LC_ALL=C.UTF-8
+ TZ=UTC
+ export LC_ALL TZ
+ local temp dpkg_line
+ command -v dpkg-parsechangelog
+ source /usr/share/genmkfile/shared.bsh
+ make_shared_function
+ make_debian_control_file_relative_path=debian/control
++ realpath debian/control
+ make_debian_control_file_absolute_path=/home/user/Whonix/packages/hardened_malloc/debian/control
+ test -f /home/user/Whonix/packages/hardened_malloc/debian/control
++ dpkg --print-architecture
dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied
+ dpkg_print_architecture=amd64
+ local architecture_keyword architecture_setting architecture_grep
++ grep Architecture:
++ cat /home/user/Whonix/packages/hardened_malloc/debian/control
+ architecture_grep='Architecture: any'
+ read -r architecture_keyword architecture_setting _
+ '[' any = '' ']'
+ '[' any = all ']'
+ make_debian_changelog_file_relative_path=debian/changelog
++ realpath debian/changelog
+ make_debian_changelog_file_absolute_path=/home/user/Whonix/packages/hardened_malloc/debian/changelog
+ test -f /home/user/Whonix/packages/hardened_malloc/debian/changelog
++ perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p'
+ make_deb_build_dependencies=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ make_dependencies_filter_helper ' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ echo ' debhelper  genmkfile clang llvm-7-dev clang-tidy'
+ make_deb_build_dependencies=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ perl -ne 'next if /^#/; $p=(s/^Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p'
+ make_deb_runtime_dependencies=' ${shlibs:Depends} ${misc:Depends}'
++ make_dependencies_filter_helper ' ${shlibs:Depends} ${misc:Depends}'
++ temp=' ${shlibs:Depends} ${misc:Depends}'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  ${misc:Depends}'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ echo '  '
+ make_deb_runtime_dependencies='  '
+ read -r -d '
' dpkg_line
++ dpkg-parsechangelog
+ read -r first second _
+ first=source:
+ '[' source: = version: ']'
+ read -r -d '
' dpkg_line
+ read -r first second _
+ first=version:
+ '[' version: = version: ']'
+ make_changelog_version=0:0.6-1
+ make_pkg_revision=1
+ temp=0:0.6
+ make_pkg_version=0.6
+ make_epoch=0
+ break
+ make_pkg_version_with_revision=0.6-1
+ '[' 0.6 = '' ']'
+ '[' amd64 = all ']'
+ '[' -n '' ']'
+ architecture_changes_file=amd64
+ local grep_line a package
++ grep Source: /home/user/Whonix/packages/hardened_malloc/debian/control
+ grep_line='Source: hardened-malloc'
+ read -r a package _
+ make_source_package_name=hardened-malloc
+ make_package_list=hardened-malloc
+ make_package_debs_files_list=
+ read -r -d '
' grep_line
++ grep Package: /home/user/Whonix/packages/hardened_malloc/debian/control
+ read -r a package _
+ temp=hardened-malloc_0.6-1_amd64.deb
+ temp=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb
+ make_package_debs_files_list=' /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb'
+ '[' hardened-malloc = hardened-malloc ']'
+ continue
+ read -r -d '
' grep_line
+ true 'make_package_list: hardened-malloc'
+ true 'make_package_debs_files_list:  /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb'
+ make_main_deb_file_name=hardened-malloc_0.6-1_amd64.deb
+ make_main_deb_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb
+ make_main_dsc_file_name=hardened-malloc_0.6-1.dsc
+ '[' true = true ']'
+ make_main_dsc_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc
+ make_main_changes_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.changes
+ make_debian_tarball_file_name=hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ '[' '' = false ']'
+ make_debian_tarball_file_name=hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
++ realpath /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball_absolute_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ make_upstream_tarball_relative_path_file_name=hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_relative_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ '[' '' = false ']'
+ make_upstream_tarball_relative_path_file_name=hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_relative_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
++ realpath /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_real_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_source_folder_name=hardened-malloc-0.6
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_get_variables_hook_post
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_init_hook_post
+ make_function_run make_source_overrides_file debdsc
+ local function_name function_name_return_code
+ function_name=make_source_overrides_file
+ shift
+ type -t make_source_overrides_file_hook_pre
+ true
+ make_source_overrides_file debdsc
+ '[' -x ./make-helper-overrides.bsh ']'
+ bash -n ./make-helper-overrides.bsh
+ source ./make-helper-overrides.bsh
+ '[' -x ./debian/make-helper-overrides.bsh ']'
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_source_overrides_file_hook_post
+ make_function_run make_source_overrides_folder debdsc
+ local function_name function_name_return_code
+ function_name=make_source_overrides_folder
+ shift
+ type -t make_source_overrides_folder_hook_pre
+ true
+ make_source_overrides_folder debdsc
+ local folder_name
+ for folder_name in ./make-helper-overrides.d ./debian/make-helper-overrides.d
+ '[' -d ./make-helper-overrides.d ']'
+ for folder_name in ./make-helper-overrides.d ./debian/make-helper-overrides.d
+ '[' -d ./debian/make-helper-overrides.d ']'
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_source_overrides_folder_hook_post
+ make_function_run make_parse_cmd debdsc
+ local function_name function_name_return_code
+ function_name=make_parse_cmd
+ shift
+ type -t make_parse_cmd_hook_pre
+ true
+ make_parse_cmd debdsc
+ local matched=false
+ local deb
+ :
+ case $1 in
+ matched=true
+ make_function_run make_debdsc
+ local function_name function_name_return_code
+ function_name=make_debdsc
+ shift
+ type -t make_debdsc_hook_pre
+ true
+ make_debdsc
+ pushd /home/user/whonix_binary/genmkfile-packages-result
+ dpkg-source -c/home/user/Whonix/packages/hardened_malloc/debian/control -l/home/user/Whonix/packages/hardened_malloc/debian/changelog '--format=3.0 (custom)' '--target-format=3.0 (quilt)' -b / /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
dpkg-source: info: using source format '3.0 (custom)'
dpkg-source: info: building hardened-malloc in hardened-malloc_0.6-1.dsc
+ popd
+ test -f /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_debdsc_hook_post
+ exit 0
+ /usr/share/genmkfile/make-helper-one.bsh deb-pkg-build
+ '[' '' = 1 ']'
+ [[ /usr/share/genmkfile/make-helper-one.bsh != \/\u\s\r\/\s\h\a\r\e\/\g\e\n\m\k\f\i\l\e\/\m\a\k\e\-\h\e\l\p\e\r\-\o\n\e\.\b\s\h ]]
+ make_script_was_sourced=false
+ '[' false = false ']'
+ '[' -f /usr/lib/helper-scripts/pre.bsh ']'
+ source /usr/lib/helper-scripts/pre.bsh
++ set -o errtrace
+++ mktemp
++ TEMP_FILE_PRE_BSH=/tmp/tmp.rm0EcWHwIq
++ test -o xtrace
++ true 'INFO: Setting DEBDEBUG to 1, because xtrace (-x) is set.'
++ DEBDEBUG=1
++ '[' 1 = 1 ']'
++ set -x
++ '[' '' = true ']'
++ colors
++ '[' xterm-256color = '' ']'
++ [[ -t 2 ]]
+++ type -t errorhandlergeneral
++ '[' '' = function ']'
+++ trap -p ERR
++ '[' '' = '' ']'
++ trap error_handler_pre ERR
++ bash -n /usr/lib/helper-scripts/pre.bsh
++ bash -n /usr/share/genmkfile/make-helper-one.bsh
++ own_filename=make-helper-one.bsh
++ source_config_folder
++ '[' '' = '' ']'
++ pre_bsh_settings_folder=make-helper-one.bsh_pre.d
++ shopt -s nullglob
++ local i
++ true 'folder 1: /etc/make-helper-one.bsh_pre.d/*.conf'
++ true 'folder 2: /usr/local/etc/make-helper-one.bsh_pre.d/*.conf'
++ shopt -u nullglob
++ check_scripts_to_skip
++ local skip_script
++ for skip_script in $SKIP_SCRIPTS
++ '[' 1400_backup-raw-after-grml-debootstrap = make-helper-one.bsh ']'
++ for skip_script in $SKIP_SCRIPTS
++ '[' 1800_backup-raw-after-package-install = make-helper-one.bsh ']'
+ true
+ temp=deb-pkg-build
+ '[' deb-pkg-build = '' ']'
+ echo '/usr/share/genmkfile/make-helper-one.bsh: INFO: deb-pkg-build'
/usr/share/genmkfile/make-helper-one.bsh: INFO: deb-pkg-build
+ set -e
+ set -o pipefail
+ make_function_run make_init
+ local function_name function_name_return_code
+ function_name=make_init
+ shift
+ type -t make_init_hook_pre
+ true
+ make_init
+ '[' -n /usr/share/genmkfile ']'
+ export GENMKFILE_PATH
+ pushd /home/user/Whonix/packages/hardened_malloc/
+ make_function_run make_get_distdir
+ local function_name function_name_return_code
+ function_name=make_get_distdir
+ shift
+ type -t make_get_distdir_hook_pre
+ true
+ make_get_distdir
+ '[' '' = '' ']'
+ DISTDIR=..
+ '[' true = true ']'
+ '[' /home/user/whonix_binary/genmkfile-packages-result = '' ']'
+ DISTDIR=/home/user/whonix_binary/genmkfile-packages-result
+ test -d /home/user/whonix_binary/genmkfile-packages-result
+ test -d /home/user/whonix_binary/genmkfile-packages-result
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_get_distdir_hook_post
+ make_function_run make_get_destdir
+ local function_name function_name_return_code
+ function_name=make_get_destdir
+ shift
+ type -t make_get_destdir_hook_pre
+ true
+ make_get_destdir
+ '[' / = '' ']'
+ type -t make_hook_at_the_end_of_get_destdir
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_get_destdir_hook_post
+ make_function_run make_get_variables
+ local function_name function_name_return_code
+ function_name=make_get_variables
+ shift
+ type -t make_get_variables_hook_pre
+ true
+ make_get_variables
+ LC_ALL=C.UTF-8
+ TZ=UTC
+ export LC_ALL TZ
+ local temp dpkg_line
+ command -v dpkg-parsechangelog
+ source /usr/share/genmkfile/shared.bsh
+ make_shared_function
+ make_debian_control_file_relative_path=debian/control
++ realpath debian/control
+ make_debian_control_file_absolute_path=/home/user/Whonix/packages/hardened_malloc/debian/control
+ test -f /home/user/Whonix/packages/hardened_malloc/debian/control
++ dpkg --print-architecture
dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied
+ dpkg_print_architecture=amd64
+ local architecture_keyword architecture_setting architecture_grep
++ grep Architecture:
++ cat /home/user/Whonix/packages/hardened_malloc/debian/control
+ architecture_grep='Architecture: any'
+ read -r architecture_keyword architecture_setting _
+ '[' any = '' ']'
+ '[' any = all ']'
+ make_debian_changelog_file_relative_path=debian/changelog
++ realpath debian/changelog
+ make_debian_changelog_file_absolute_path=/home/user/Whonix/packages/hardened_malloc/debian/changelog
+ test -f /home/user/Whonix/packages/hardened_malloc/debian/changelog
++ perl -ne 'next if /^#/; $p=(s/^Build-Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p'
+ make_deb_build_dependencies=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ make_dependencies_filter_helper ' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ echo ' debhelper  genmkfile clang llvm-7-dev clang-tidy'
+ make_deb_build_dependencies=' debhelper  genmkfile clang llvm-7-dev clang-tidy'
++ perl -ne 'next if /^#/; $p=(s/^Depends:\s*/ / or (/^ / and $p)); s/,|\n|\([^)]+\)//mg; print if $p'
+ make_deb_runtime_dependencies=' ${shlibs:Depends} ${misc:Depends}'
++ make_dependencies_filter_helper ' ${shlibs:Depends} ${misc:Depends}'
++ temp=' ${shlibs:Depends} ${misc:Depends}'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  ${misc:Depends}'
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ for to_remove in '${shlibs:Depends}' '${misc:Depends}' '${python:Depends}' '|'
++ temp='  '
++ echo '  '
+ make_deb_runtime_dependencies='  '
+ read -r -d '
' dpkg_line
++ dpkg-parsechangelog
+ read -r first second _
+ first=source:
+ '[' source: = version: ']'
+ read -r -d '
' dpkg_line
+ read -r first second _
+ first=version:
+ '[' version: = version: ']'
+ make_changelog_version=0:0.6-1
+ make_pkg_revision=1
+ temp=0:0.6
+ make_pkg_version=0.6
+ make_epoch=0
+ break
+ make_pkg_version_with_revision=0.6-1
+ '[' 0.6 = '' ']'
+ '[' amd64 = all ']'
+ '[' -n '' ']'
+ architecture_changes_file=amd64
+ local grep_line a package
++ grep Source: /home/user/Whonix/packages/hardened_malloc/debian/control
+ grep_line='Source: hardened-malloc'
+ read -r a package _
+ make_source_package_name=hardened-malloc
+ make_package_list=hardened-malloc
+ make_package_debs_files_list=
+ read -r -d '
' grep_line
++ grep Package: /home/user/Whonix/packages/hardened_malloc/debian/control
+ read -r a package _
+ temp=hardened-malloc_0.6-1_amd64.deb
+ temp=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb
+ make_package_debs_files_list=' /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb'
+ '[' hardened-malloc = hardened-malloc ']'
+ continue
+ read -r -d '
' grep_line
+ true 'make_package_list: hardened-malloc'
+ true 'make_package_debs_files_list:  /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb'
+ make_main_deb_file_name=hardened-malloc_0.6-1_amd64.deb
+ make_main_deb_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.deb
+ make_main_dsc_file_name=hardened-malloc_0.6-1.dsc
+ '[' true = true ']'
+ make_main_dsc_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc
+ make_main_changes_file=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1_amd64.changes
+ make_debian_tarball_file_name=hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ '[' '' = false ']'
+ make_debian_tarball_file_name=hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
++ realpath /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ make_debian_tarball_absolute_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ make_upstream_tarball_relative_path_file_name=hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_relative_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ '[' '' = false ']'
+ make_upstream_tarball_relative_path_file_name=hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_relative_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
++ realpath /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_real_path=/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ make_upstream_tarball_source_folder_name=hardened-malloc-0.6
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_get_variables_hook_post
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_init_hook_post
+ make_function_run make_source_overrides_file deb-pkg-build
+ local function_name function_name_return_code
+ function_name=make_source_overrides_file
+ shift
+ type -t make_source_overrides_file_hook_pre
+ true
+ make_source_overrides_file deb-pkg-build
+ '[' -x ./make-helper-overrides.bsh ']'
+ bash -n ./make-helper-overrides.bsh
+ source ./make-helper-overrides.bsh
+ '[' -x ./debian/make-helper-overrides.bsh ']'
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_source_overrides_file_hook_post
+ make_function_run make_source_overrides_folder deb-pkg-build
+ local function_name function_name_return_code
+ function_name=make_source_overrides_folder
+ shift
+ type -t make_source_overrides_folder_hook_pre
+ true
+ make_source_overrides_folder deb-pkg-build
+ local folder_name
+ for folder_name in ./make-helper-overrides.d ./debian/make-helper-overrides.d
+ '[' -d ./make-helper-overrides.d ']'
+ for folder_name in ./make-helper-overrides.d ./debian/make-helper-overrides.d
+ '[' -d ./debian/make-helper-overrides.d ']'
+ function_name_return_code=0
+ '[' '!' 0 = 0 ']'
+ type -t make_source_overrides_folder_hook_post
+ make_function_run make_parse_cmd deb-pkg-build
+ local function_name function_name_return_code
+ function_name=make_parse_cmd
+ shift
+ type -t make_parse_cmd_hook_pre
+ true
+ make_parse_cmd deb-pkg-build
+ local matched=false
+ local deb
+ :
+ case $1 in
+ matched=true
+ make_function_run make_deb-pkg-build
+ local function_name function_name_return_code
+ function_name=make_deb-pkg-build
+ shift
+ type -t make_deb-pkg-build_hook_pre
+ true
+ make_deb-pkg-build
+ make_debuild_maybe_unsigned_opts='-us -uc'
+ make_function_run make_deb-pkg-build_shared
+ local function_name function_name_return_code
+ function_name=make_deb-pkg-build_shared
+ shift
+ type -t make_deb-pkg-build_shared_hook_pre
+ true
+ make_deb-pkg-build_shared
+ '[' true = true ']'
+ test -f /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz
+ test -f /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz
+ test -f /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc
+ true 'COWBUILDER_PREFIX:  env http_proxy=http://127.0.0.1:3142'
+ '[' '!' '' = '' ']'
+ '[' -n '' ']'
++ lsb_release --short --codename
+ make_cowbuilder_distribution=buster
+ '[' '!' http://HTTPS///deb.debian.org/debian = '' ']'
+ '[' -n http://HTTPS///deb.debian.org/debian ']'
+ '[' amd64 = all ']'
+ cow_folder=/var/cache/pbuilder/cow.cow_amd64
+ base_folder=/var/cache/pbuilder/base.cow_amd64
+ '[' amd64 = all ']'
+ '[' -n '' ']'
+ make_cowbuilder_arch_opt='--host-arch amd64'
+ sudo env http_proxy=http://127.0.0.1:3142 cowbuilder --build /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc --host-arch amd64 --basepath /var/cache/pbuilder/base.cow_amd64 --buildplace /var/cache/pbuilder/cow.cow_amd64 --distribution buster --mirror http://HTTPS///deb.debian.org/debian --extrapackages ' debhelper  genmkfile clang llvm-7-dev clang-tidy' --buildresult /home/user/whonix_binary/genmkfile-packages-result
I: Copying COW directory
I: forking: rm -rf /var/cache/pbuilder/cow.cow_amd64/cow.32717
I: forking: cp -al /var/cache/pbuilder/base.cow_amd64 /var/cache/pbuilder/cow.cow_amd64/cow.32717
I: removed stale ilistfile /var/cache/pbuilder/cow.cow_amd64/cow.32717/.ilist
I: forking: chroot /var/cache/pbuilder/cow.cow_amd64/cow.32717 cowdancer-ilistcreate /.ilist 'find . -xdev -path ./home -prune -o \( \( -type l -o -type f \) -a -links +1 -print0 \) | xargs -0 stat --format '%d %i ''
I: Invoking pbuilder
I: forking: pbuilder build --host-arch amd64 --buildplace /var/cache/pbuilder/cow.cow_amd64/cow.32717 --buildresult /home/user/whonix_binary/genmkfile-packages-result --mirror http://HTTPS///deb.debian.org/debian --distribution buster --extrapackages ' debhelper  genmkfile clang llvm-7-dev clang-tidy' --no-targz --internal-chrootexec 'chroot /var/cache/pbuilder/cow.cow_amd64/cow.32717 cow-shell' /home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc
W: /root/.pbuilderrc does not exist
I: Running in no-targz mode
I: pbuilder: network access will be disabled during build
I: Current time: Mon Sep  9 15:48:00 UTC 2019
I: pbuilder-time-stamp: 1568044080
I: copying local configuration
W: No local /etc/mailname to copy, relying on /var/cache/pbuilder/cow.cow_amd64/cow.32717/etc/mailname to be correct
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.dsc]
I: copying [/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6.orig.tar.xz]
I: copying [/home/user/whonix_binary/genmkfile-packages-result/hardened-malloc_0.6-1.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (hardened-malloc_0.6-1.dsc)
dpkg-source: info: extracting hardened-malloc in hardened-malloc-0.6
dpkg-source: info: unpacking hardened-malloc_0.6.orig.tar.xz
dpkg-source: info: unpacking hardened-malloc_0.6-1.debian.tar.xz
I: using fakeroot in build.
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <pbuilder-maint@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (>= 12), genmkfile, clang, llvm-7-dev, clang-tidy
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 20411 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested:
 pbuilder-satisfydepends-dummy depends on clang; however:
  Package clang is not installed.
 pbuilder-satisfydepends-dummy depends on llvm-7-dev; however:
  Package llvm-7-dev is not installed.
 pbuilder-satisfydepends-dummy depends on clang-tidy; however:
  Package clang-tidy is not installed.

Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
The following NEW packages will be installed:
  binfmt-support{a} clang{a} clang-7{a} clang-tidy{a} clang-tidy-7{a} 
  clang-tools-7{a} lib32gcc1{a} lib32stdc++6{a} libc6-i386{a} 
  libclang-common-7-dev{a} libclang1-7{a} libedit2{a} libffi-dev{a} 
  libgc1c2{a} libllvm7{a} libncurses-dev{a} libobjc-8-dev{a} libobjc4{a} 
  libtinfo-dev{a} libyaml-0-2{a} llvm-7{a} llvm-7-dev{a} llvm-7-runtime{a} 
  python-yaml{a} 
The following packages are RECOMMENDED but will NOT be installed:
  libomp-7-dev 
0 packages upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/122 MB of archives. After unpacking 612 MB will be used.
Selecting previously unselected package binfmt-support.
(Reading database ... 20411 files and directories currently installed.)
Preparing to unpack .../00-binfmt-support_2.2.0-2_amd64.deb ...
Unpacking binfmt-support (2.2.0-2) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../01-libedit2_3.1-20181209-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20181209-1) ...
Selecting previously unselected package libllvm7:amd64.
Preparing to unpack .../02-libllvm7_1%3a7.0.1-8_amd64.deb ...
Unpacking libllvm7:amd64 (1:7.0.1-8) ...
Selecting previously unselected package libgc1c2:amd64.
Preparing to unpack .../03-libgc1c2_1%3a7.6.4-0.4_amd64.deb ...
Unpacking libgc1c2:amd64 (1:7.6.4-0.4) ...
Selecting previously unselected package libobjc4:amd64.
Preparing to unpack .../04-libobjc4_8.3.0-6_amd64.deb ...
Unpacking libobjc4:amd64 (8.3.0-6) ...
Selecting previously unselected package libobjc-8-dev:amd64.
Preparing to unpack .../05-libobjc-8-dev_8.3.0-6_amd64.deb ...
Unpacking libobjc-8-dev:amd64 (8.3.0-6) ...
Selecting previously unselected package libc6-i386.
Preparing to unpack .../06-libc6-i386_2.28-10_amd64.deb ...
Unpacking libc6-i386 (2.28-10) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../07-lib32gcc1_1%3a8.3.0-6_amd64.deb ...
Unpacking lib32gcc1 (1:8.3.0-6) ...
Selecting previously unselected package lib32stdc++6.
Preparing to unpack .../08-lib32stdc++6_8.3.0-6_amd64.deb ...
Unpacking lib32stdc++6 (8.3.0-6) ...
Selecting previously unselected package libclang-common-7-dev.
Preparing to unpack .../09-libclang-common-7-dev_1%3a7.0.1-8_amd64.deb ...
Unpacking libclang-common-7-dev (1:7.0.1-8) ...
Selecting previously unselected package libclang1-7.
Preparing to unpack .../10-libclang1-7_1%3a7.0.1-8_amd64.deb ...
Unpacking libclang1-7 (1:7.0.1-8) ...
Selecting previously unselected package clang-7.
Preparing to unpack .../11-clang-7_1%3a7.0.1-8_amd64.deb ...
Unpacking clang-7 (1:7.0.1-8) ...
Selecting previously unselected package clang.
Preparing to unpack .../12-clang_1%3a7.0-47_amd64.deb ...
Unpacking clang (1:7.0-47) ...
Selecting previously unselected package clang-tools-7.
Preparing to unpack .../13-clang-tools-7_1%3a7.0.1-8_amd64.deb ...
Unpacking clang-tools-7 (1:7.0.1-8) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../14-libyaml-0-2_0.2.1-1_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.2.1-1) ...
Selecting previously unselected package python-yaml.
Preparing to unpack .../15-python-yaml_3.13-2_amd64.deb ...
Unpacking python-yaml (3.13-2) ...
Selecting previously unselected package clang-tidy-7.
Preparing to unpack .../16-clang-tidy-7_1%3a7.0.1-8_amd64.deb ...
Unpacking clang-tidy-7 (1:7.0.1-8) ...
Selecting previously unselected package clang-tidy.
Preparing to unpack .../17-clang-tidy_1%3a7.0-47_amd64.deb ...
Unpacking clang-tidy (1:7.0-47) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../18-libffi-dev_3.2.1-9_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-9) ...
Selecting previously unselected package libncurses-dev:amd64.
Preparing to unpack .../19-libncurses-dev_6.1+20181013-2+deb10u1_amd64.deb ...
Unpacking libncurses-dev:amd64 (6.1+20181013-2+deb10u1) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../20-libtinfo-dev_6.1+20181013-2+deb10u1_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.1+20181013-2+deb10u1) ...
Selecting previously unselected package llvm-7-runtime.
Preparing to unpack .../21-llvm-7-runtime_1%3a7.0.1-8_amd64.deb ...
Unpacking llvm-7-runtime (1:7.0.1-8) ...
Selecting previously unselected package llvm-7.
Preparing to unpack .../22-llvm-7_1%3a7.0.1-8_amd64.deb ...
Unpacking llvm-7 (1:7.0.1-8) ...
Selecting previously unselected package llvm-7-dev.
Preparing to unpack .../23-llvm-7-dev_1%3a7.0.1-8_amd64.deb ...
Unpacking llvm-7-dev (1:7.0.1-8) ...
E: Sub-process /usr/bin/dpkg exited unexpectedly
Setting up libncurses-dev:amd64 (6.1+20181013-2+deb10u1) ...
Setting up libgc1c2:amd64 (1:7.6.4-0.4) ...
Setting up libyaml-0-2:amd64 (0.2.1-1) ...
Setting up libedit2:amd64 (3.1-20181209-1) ...
Setting up libobjc4:amd64 (8.3.0-6) ...
Setting up libffi-dev:amd64 (3.2.1-9) ...
Setting up libobjc-8-dev:amd64 (8.3.0-6) ...
Setting up binfmt-support (2.2.0-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service -> /lib/systemd/system/binfmt-support.service.
Running in chroot, ignoring request.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libc6-i386 (2.28-10) ...
Setting up libllvm7:amd64 (1:7.0.1-8) ...
Setting up python-yaml (3.13-2) ...
Setting up libclang1-7 (1:7.0.1-8) ...
Setting up libtinfo-dev:amd64 (6.1+20181013-2+deb10u1) ...
Setting up llvm-7-runtime (1:7.0.1-8) ...
Setting up llvm-7 (1:7.0.1-8) ...
Setting up lib32gcc1 (1:8.3.0-6) ...
Setting up lib32stdc++6 (8.3.0-6) ...
Setting up libclang-common-7-dev (1:7.0.1-8) ...
Setting up clang-7 (1:7.0.1-8) ...
Setting up clang-tools-7 (1:7.0.1-8) ...
Setting up clang (1:7.0-47) ...
Setting up clang-tidy-7 (1:7.0.1-8) ...
Setting up clang-tidy (1:7.0-47) ...
Processing triggers for systemd (241-7~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
[ ERR] Writing extended state information
[ ERR] Building tag database

Current status: 0 (-1) broken, 1 (+1) upgradable.
E: Failed to fork process for dpkg selections.
E: failed to save selections to dpkg database
E: pbuilder-satisfydepends failed.
I: Copying back the cached apt archive contents
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: Cleaning COW directory
I: forking: rm -rf /var/cache/pbuilder/cow.cow_amd64/cow.32717
++ error_handler_pre
++ local exit_code=1
++ local 'last_err=sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"'
++ '[' '!' 1 = 1 ']'
++ '[' '' = '' ']'
++ output='## See above.'
++ force_output '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################
'
++ '[' '' = true ']'
++ echo '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################
'

####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: sudo $COWBUILDER_PREFIX cowbuilder --build "$make_main_dsc_file" $make_cowbuilder_arch_opt --basepath "$base_folder" --buildplace "$cow_folder" --distribution "$make_cowbuilder_distribution" --mirror "$make_cowbuilder_mirror" --extrapackages "$make_deb_build_dependencies" --buildresult "$DISTDIR"
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper-one.bsh detected!
## Please report this bug!
####################################################################

++ '[' '' = true ']'
++ rm -f /tmp/tmp.rm0EcWHwIq
++ exit 1
++ error_handler_pre
++ local exit_code=1
++ local 'last_err="$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build'
++ '[' '!' 1 = 1 ']'
++ '[' '' = '' ']'
++ output='## See above.'
++ force_output '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################
'
++ '[' '' = true ']'
++ echo '
####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################
'

####################################################################
## BEGIN ERROR in /usr/share/genmkfile/make-helper.bsh detected!
##
## ERROR LOG:
## See above.
##
## BASH_COMMAND: "$GENMKFILE_PATH/make-helper-one.bsh" deb-pkg-build
## EXIT_CODE: 1
##
## END ERROR in /usr/share/genmkfile/make-helper.bsh detected!
## Please report this bug!
####################################################################

++ '[' '' = true ']'
++ rm -f /tmp/tmp.L25530jVJ1
++ exit 1
make: *** [/usr/share/genmkfile/makefile-full:67: deb-pkg] Error 1
++ retry_last_failed_bash_command_exit_code=2
++ true
++ '[' 2 = 0 ']'
++ true 'INFO: Retry failed. exit code of last_failed_bash_command: 2 '
++ last_failed_exit_code=2
++ last_failed_bash_command='sudo $SUDO_OPTS -E make -f "$make_file" deb-pkg'
++ '[' '!' '' = '' ']'
++ true 'INFO: Skipping whonix_build_dispatch_after_retry (--retry-after), because empty, ok.'
++ '[' 2 = 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 1568044022
++++ date +%s
+++ benchmarktimeend=1568044108
+++ benchmark_took_seconds=86
++++ convertsecs 86
++++ local h m s
++++ (( h=86/3600 ))
++++ true
++++ (( m=(86%3600)/60 ))
++++ (( s=86%60 ))
++++ printf '%02d:%02d:%02d\n' 0 1 26
+++ echo 00:01:26
++ benchmark_took_time=00:01:26
++ 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 ././build-steps.d/1200_create-debian-packages detected!
anon_dist_build_version: 15.0.0.4.9
(whonix_build_error_counter: 2)
(benchmark: 00:01:26)
trap_signal_type_previous: ERR
trap_signal_type_last    : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init single 
2: : xfce4-terminal 
3: : bash 
4: : sudo REPO_PROXY=http://127.0.0.1:3142 ./whonix_build --flavor whonix-gateway-xfce --build --redistribute --target qcow2 --unsafe-io true 
5: : /bin/bash ./whonix_build --flavor whonix-gateway-xfce --build --redistribute --target qcow2 --unsafe-io true 
6: : /bin/bash ././build-steps.d/1200_create-debian-packages 
function_trace_result:
main (line number: 212)
main (line number: 208)
create-debian-packages (line number: 200)
create_whonix_debian_packages (line number: 172)
errorhandlergeneral (line number: 334)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 169)
errorhandlerprocessshared (line number: 169)
errorhandlergeneral (line number: 334)
create_whonix_debian_packages (line number: 172)
create-debian-packages (line number: 200)
main (line number: 208)
main (line number: 212)
last_failed_bash_command: sudo $SUDO_OPTS -E make -f "$make_file" deb-pkg
last_failed_exit_code: 2
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)' ']'
++ true 'INFO: trap_signal_type_last: NONE_(called_by_errorhandlerretry), considering auto retry...'
++ '[' '!' 1 = 0 ']'
++ '[' 2 = '' ']'
++ '[' -n 1 ']'
++ '[' -n 5 ']'
++ local first
++ read -r first _
++ '[' sudo = error_ ']'
++ '[' 2 -gt 1 ']'
++ true 'INFO: Auto retried (--retry-max) already 1 times. No more auto retry. '
++ unset whonix_build_auto_retry_counter
++ true
++ ignore_error=false
++ answer=
++ '[' 'NONE_(called_by_errorhandlerretry)' = ERR ']'
++ '[' 'NONE_(called_by_errorhandlerretry)' = 'NONE_(called_by_errorhandlerretry)' ']'
++ true 'INFO: whonix_build_non_interactive: '
++ '[' '' = true ']'
++ '[' -t 0 ']'
++ true 'INFO: stdin connected to terminal, using interactive error handler.'
++ true '   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 a and enter to abort.'
++ read -p 'Answer? ' answer
Answer?

Looks like same like this:

1 Like

Nuked build setup and started from scratch. Same result at the clang install step indeed. Can’t we just forget about hardened_malloc since we can’t use it for TBB anyhow? We are not planning on uing it for anything else either.

I think it’s not that package that causes issues. Try deleting that folder. Try removing all references to hardened malloc.

Or just continue after that error for testing. Seems likely to me that another random package will fail to build.

Low RAM issue likely. Try with 4 GB RAM in VM.

As per:

1 Like

Note this change:

https://www.whonix.org/w/index.php?title=Dev%2FBuild_Documentation%2F15_full&type=revision&diff=50915&oldid=50681

1 Like

OK so the GW did indeed build after I bumped up hardware resources. Now WS stalls though at a different stage despite many attempts including restarting the VM before trying to clear memory incase there are leaks.

Here’s the log:

+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage remove_apt_cache
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/remove_apt_cache
+ echo '   Executing stage remove_apt_cache'
   Executing stage remove_apt_cache
+ return 0
+ remove_apt_cache
+ '[' no = yes ']'
+ echo 'Not cleaning apt cache as $RM_APTCACHE is unset.'
Not cleaning apt cache as $RM_APTCACHE is unset.
+ stage remove_apt_cache done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage services
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/services
+ echo '   Executing stage services'
   Executing stage services
+ return 0
+ services
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/ssh ']'
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/mdadm ']'
+ for service in ssh mdadm mdadm-raid
+ '[' -x /etc/init.d/mdadm-raid ']'
+ stage services done
+ '[' -n done ']'
+ echo done
+ return 0
+ for i in chrootmirror grmlrepos backportrepos kernelimg_conf kernel packages extrapackages reconfigure hosts default_locales timezone fstab hostname initrd grub_install passwords custom_scripts upgrade_system remove_apt_cache services remove_chrootmirror
+ stage remove_chrootmirror
+ '[' -n '' ']'
+ grep -q done /etc/debootstrap/stages/remove_chrootmirror
+ echo '   Executing stage remove_chrootmirror'
   Executing stage remove_chrootmirror
+ return 0
+ remove_chrootmirror
+ '[' -n yes ']'
+ echo 'KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.'
KEEP_SRC_LIST has been set, skipping remove_chrootmirror stage.
+ return
+ stage remove_chrootmirror done
+ '[' -n done ']'
+ echo done
+ return 0
+ finalize
+ rm -f /etc/debootstrap/variables
+ '[' -n 1 ']'
+ rm -f /usr/sbin/policy-rc.d
+ umount /sys
+ umount /proc
+ echo 'Finished chroot installation, exiting.'
Finished chroot installation, exiting.
+ exit 0
+ RC=0
+ try_umount 3 /mnt/debootstrap.3140/dev/pts
+ local tries=3
+ local mountpoint=/mnt/debootstrap.3140/dev/pts
+ (( try=1 ))
+ (( try<=tries ))
+ [[ 1 -eq 3 ]]
+ umount /mnt/debootstrap.3140/dev/pts
+ return 0
+ try_umount 3 /mnt/debootstrap.3140/dev
+ local tries=3
+ local mountpoint=/mnt/debootstrap.3140/dev
+ (( try=1 ))
+ (( try<=tries ))
+ [[ 1 -eq 3 ]]
+ umount /mnt/debootstrap.3140/dev
+ return 0
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ grep -q GRML_CHROOT_SCRIPT_MARKER /mnt/debootstrap.3140/bin/chroot-script
+ einfo 'Removing chroot-script again'
+ einfon 'Removing chroot-script again\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Removing chroot-script again\n' '' ''
 * Removing chroot-script again
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm -f /mnt/debootstrap.3140/bin/chroot-script
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage chrootscript done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/chrootscript
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage execute_post_scripts
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/execute_post_scripts
+ execute_post_scripts
+ export MNTPOINT
+ export TARGET_HOSTNAME=host
+ TARGET_HOSTNAME=host
+ '[' -d '' ']'
+ '[' no = yes ']'
+ '[' -d '' ']'
+ '[' yes = yes ']'
+ '[' -d '' ']'
+ post_scripts=/etc/debootstrap/post-scripts/
+ '[' -n /etc/debootstrap/post-scripts/ ']'
+ for script in "${post_scripts}"/*
+ '[' -x '/etc/debootstrap/post-scripts//*' ']'
+ stage execute_post_scripts done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/execute_post_scripts
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage remove_configs
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/remove_configs
+ remove_configs
+ '[' '' '!=' yes ']'
+ return 0
+ stage remove_configs done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/remove_configs
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage umount_chroot
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/umount_chroot
+ umount_chroot
+ '[' -n /etc/debootstrap/install_notes ']'
+ '[' -r /mnt/debootstrap.3140//etc/debootstrap/install_notes ']'
+ '[' -n '' ']'
+ grep -q /mnt/debootstrap.3140 /proc/mounts
+ mountpoint /mnt/debootstrap.3140/run/udev
+ einfo 'Unmounting bind-mount /run/udev'
+ einfon 'Unmounting bind-mount /run/udev\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Unmounting bind-mount /run/udev\n' '' ''
 * Unmounting bind-mount /run/udev
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ umount /mnt/debootstrap.3140/run/udev
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n 1 ']'
+ einfo 'Unmount /mnt/debootstrap.3140'
+ einfon 'Unmount /mnt/debootstrap.3140\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Unmount /mnt/debootstrap.3140\n' '' ''
 * Unmount /mnt/debootstrap.3140
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ umount /mnt/debootstrap.3140
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ stage umount_chroot done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/umount_chroot
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage grub_install
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/grub_install
+ grub_install
+ '[' -z 1 ']'
+ '[' yes '!=' yes ']'
+ mount /dev/mapper/loop0p1 /mnt/debootstrap.3140
+ mount -t proc none /mnt/debootstrap.3140/proc
+ mount -t sysfs none /mnt/debootstrap.3140/sys
+ mount -t devtmpfs udev /mnt/debootstrap.3140/dev
+ mount -t devpts devpts /mnt/debootstrap.3140/dev/pts
+ [[ -z '' ]]
+ einfo 'Installing Grub as bootloader.'
+ einfon 'Installing Grub as bootloader.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Installing Grub as bootloader.\n' '' ''
 * Installing Grub as bootloader.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ grep -q '^ii'
+ chroot /mnt/debootstrap.3140 dpkg --list grub-pc
+ echo 'Notice: grub-pc package not present yet, installing it therefore.'
Notice: grub-pc package not present yet, installing it therefore.
+ DEBIAN_FRONTEND=noninteractive
+ chroot /mnt/debootstrap.3140 apt-get -y install -o Dpkg::Options::=--force-unsafe-io -o Acquire::http::Proxy=http://127.0.0.1:3142 -o Acquire::https::Proxy=http://127.0.0.1:3142 -o Acquire::tor::Proxy=http://127.0.0.1:3142 -o Acquire::Languages=none -o Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled=false -o Acquire::Retries=3 -o Dpkg::Options::=--force-confnew grub-pc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gettext-base grub-common grub-pc-bin grub2-common libefiboot1 libefivar1
  libfreetype6 libfuse2 libpng16-16 os-prober ucf
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base console-setup fuse
The following NEW packages will be installed:
  gettext-base grub-common grub-pc grub-pc-bin grub2-common libefiboot1
  libefivar1 libfreetype6 libfuse2 libpng16-16 os-prober ucf
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 5155 kB of archives.
After this operation, 24.3 MB of additional disk space will be used.
Get:1 http://HTTPS///deb.debian.org/debian buster/main amd64 gettext-base amd64 0.19.8.1-9 [123 kB]
Get:2 http://HTTPS///deb.debian.org/debian buster/main amd64 ucf all 3.0038+nmu1 [69.0 kB]
Get:3 http://HTTPS///deb.debian.org/debian buster/main amd64 libefivar1 amd64 37-2 [46.3 kB]
Get:4 http://HTTPS///deb.debian.org/debian buster/main amd64 libefiboot1 amd64 37-2 [41.9 kB]
Get:5 http://HTTPS///deb.debian.org/debian buster/main amd64 libpng16-16 amd64 1.6.36-6 [292 kB]
Get:6 http://HTTPS///deb.debian.org/debian buster/main amd64 libfreetype6 amd64 2.9.1-3 [379 kB]
Get:7 http://HTTPS///deb.debian.org/debian buster/main amd64 libfuse2 amd64 2.9.9-1 [128 kB]
Get:8 http://HTTPS///deb.debian.org/debian buster/main amd64 grub-common amd64 2.02+dfsg1-20 [2476 kB]
Get:9 http://HTTPS///deb.debian.org/debian buster/main amd64 grub2-common amd64 2.02+dfsg1-20 [538 kB]
Get:10 http://HTTPS///deb.debian.org/debian buster/main amd64 grub-pc-bin amd64 2.02+dfsg1-20 [901 kB]
Get:11 http://HTTPS///deb.debian.org/debian buster/main amd64 grub-pc amd64 2.02+dfsg1-20 [131 kB]
Get:12 http://HTTPS///deb.debian.org/debian buster/main amd64 os-prober amd64 1.77 [30.2 kB]
Fetched 5155 kB in 0s (19.5 MB/s)
Preconfiguring packages ...
Selecting previously unselected package gettext-base.
(Reading database ... 10910 files and directories currently installed.)
Preparing to unpack .../00-gettext-base_0.19.8.1-9_amd64.deb ...
Unpacking gettext-base (0.19.8.1-9) ...
Selecting previously unselected package ucf.
Preparing to unpack .../01-ucf_3.0038+nmu1_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0038+nmu1) ...
Selecting previously unselected package libefivar1:amd64.
Preparing to unpack .../02-libefivar1_37-2_amd64.deb ...
Unpacking libefivar1:amd64 (37-2) ...
Selecting previously unselected package libefiboot1:amd64.
Preparing to unpack .../03-libefiboot1_37-2_amd64.deb ...
Unpacking libefiboot1:amd64 (37-2) ...
Selecting previously unselected package libpng16-16:amd64.
Preparing to unpack .../04-libpng16-16_1.6.36-6_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.36-6) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../05-libfreetype6_2.9.1-3_amd64.deb ...
Unpacking libfreetype6:amd64 (2.9.1-3) ...
Selecting previously unselected package libfuse2:amd64.
Preparing to unpack .../06-libfuse2_2.9.9-1_amd64.deb ...
Unpacking libfuse2:amd64 (2.9.9-1) ...
Selecting previously unselected package grub-common.
Preparing to unpack .../07-grub-common_2.02+dfsg1-20_amd64.deb ...
Unpacking grub-common (2.02+dfsg1-20) ...
Selecting previously unselected package grub2-common.
Preparing to unpack .../08-grub2-common_2.02+dfsg1-20_amd64.deb ...
Unpacking grub2-common (2.02+dfsg1-20) ...
Selecting previously unselected package grub-pc-bin.
Preparing to unpack .../09-grub-pc-bin_2.02+dfsg1-20_amd64.deb ...
Unpacking grub-pc-bin (2.02+dfsg1-20) ...
Selecting previously unselected package grub-pc.
Preparing to unpack .../10-grub-pc_2.02+dfsg1-20_amd64.deb ...
Unpacking grub-pc (2.02+dfsg1-20) ...
Selecting previously unselected package os-prober.
Preparing to unpack .../11-os-prober_1.77_amd64.deb ...
Unpacking os-prober (1.77) ...
Setting up gettext-base (0.19.8.1-9) ...
Setting up libfuse2:amd64 (2.9.9-1) ...
Setting up libpng16-16:amd64 (1.6.36-6) ...
Setting up ucf (3.0038+nmu1) ...
Setting up libefivar1:amd64 (37-2) ...
Setting up libefiboot1:amd64 (37-2) ...
Setting up libfreetype6:amd64 (2.9.1-3) ...
Setting up grub-common (2.02+dfsg1-20) ...
Setting up os-prober (1.77) ...
Setting up grub2-common (2.02+dfsg1-20) ...
Setting up grub-pc-bin (2.02+dfsg1-20) ...
Setting up grub-pc (2.02+dfsg1-20) ...

Creating config file /etc/default/grub with new version
Processing triggers for libc-bin (2.28-10) ...
+ mkdir -p /mnt/debootstrap.3140/boot/grub
+ '[' -d /mnt/debootstrap.3140/usr/lib/grub/i386-pc/ ']'
+ case "$RELEASE" in
+ cp -a /mnt/debootstrap.3140/usr/lib/grub/i386-pc /mnt/debootstrap.3140/boot/grub/
+ dd if=/mnt/debootstrap.3140/usr/lib/grub/i386-pc/boot.img of=/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw conv=notrunc bs=440 count=1
1+0 records in
1+0 records out
440 bytes copied, 0.000138845 s, 3.2 MB/s
+ chroot /mnt/debootstrap.3140 grub-mkimage -O i386-pc -p '(hd0,msdos1)/boot/grub' -o /tmp/core.img biosdisk part_msdos ext2
+ dd if=/mnt/debootstrap.3140/tmp/core.img of=/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw conv=notrunc seek=1
50+1 records in
50+1 records out
26032 bytes (26 kB, 25 KiB) copied, 0.000323505 s, 80.5 MB/s
+ rm -f /mnt/debootstrap.3140/tmp/core.img
+ einfo 'Updating grub configuration file.'
+ einfon 'Updating grub configuration file.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Updating grub configuration file.\n' '' ''
 * Updating grub configuration file.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ '[' -n '' ']'
+ chroot /mnt/debootstrap.3140 update-grub
Generating grub configuration file ...
Found Debian GNU/Linux buster/sid on /dev/vda1
done
+ case "$RELEASE" in
+ grep -q '^GRUB_DISABLE_LINUX_UUID=.*true' /mnt/debootstrap.3140/etc/default/grub
+ einfo 'Adjusting grub.cfg for successful boot sequence.'
+ einfon 'Adjusting grub.cfg for successful boot sequence.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Adjusting grub.cfg for successful boot sequence.\n' '' ''
 * Adjusting grub.cfg for successful boot sequence.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ sed -i 's;root=[^ ]\+;root=UUID=26ada0c0-1165-4098-884d-aafd2220c2c6;' /mnt/debootstrap.3140/boot/grub/grub.cfg
+ umount /mnt/debootstrap.3140/proc
+ umount /mnt/debootstrap.3140/sys
+ umount /mnt/debootstrap.3140/dev/pts
+ try_umount 3 /mnt/debootstrap.3140/dev
+ local tries=3
+ local mountpoint=/mnt/debootstrap.3140/dev
+ (( try=1 ))
+ (( try<=tries ))
+ [[ 1 -eq 3 ]]
+ umount /mnt/debootstrap.3140/dev
+ return 0
+ stage grub_install done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/grub_install
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage umount_target
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/umount_target
+ umount_target
+ '[' -z 1 ']'
+ umount /mnt/debootstrap.3140
+ kpartx -d /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
loop deleted : /dev/loop0
+ dmsetup ls
+ grep -q '^loop0p1 '
+ stage umount_target done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/umount_target
+ for i in format_efi_partition prepare_vm mkfs tunefs mount_target mountpoint_to_blockdevice debootstrap_system preparechroot execute_pre_scripts chrootscript execute_post_scripts remove_configs umount_chroot grub_install umount_target fscktool
+ stage fscktool
+ '[' -n '' ']'
+ grep -q done /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/fscktool
+ fscktool
+ '[' -n 1 ']'
+ einfo 'Skipping filesystem check because we deploy a virtual machine.'
+ einfon 'Skipping filesystem check because we deploy a virtual machine.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Skipping filesystem check because we deploy a virtual machine.\n' '' ''
 * Skipping filesystem check because we deploy a virtual machine.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ return 0
+ stage fscktool done
+ '[' -n done ']'
+ echo done
+ return 0
+ rm -f /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw/fscktool
+ cleanup
+ '[' -n /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw'
+ einfon 'Removing /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Removing /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw\n' '' ''
 * Removing /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rm /var/cache/grml-debootstrap/variables_Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw ']'
+ einfo 'Removing /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw'
+ einfon 'Removing /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Removing /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw\n' '' ''
 * Removing /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ rmdir /var/cache/grml-debootstrap/stages_Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ echo /mnt/debootstrap.3140
+ grep -q '/mnt/debootstrap\.'
+ rmdir /mnt/debootstrap.3140
+ '[' -n /mnt/debootstrap.3140 ']'
+ grep -q /mnt/debootstrap.3140 /proc/mounts
+ '[' -n /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw ']'
+ einfo 'Removing loopback mount of file /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw.'
+ einfon 'Removing loopback mount of file /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Removing loopback mount of file /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw.\n' '' ''
 * Removing loopback mount of file /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ kpartx -d /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ dmsetup ls
+ grep -q '^loop0p1 '
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ '[' -n '' ']'
+ einfo 'Finished execution of grml-debootstrap. Enjoy your Debian system.'
+ einfon 'Finished execution of grml-debootstrap. Enjoy your Debian system.\n'
+ '[' '' '!=' yes ']'
+ '[' einfon = ebegin ']'
+ printf ' %s*%s Finished execution of grml-debootstrap. Enjoy your Debian system.\n' '' ''
 * Finished execution of grml-debootstrap. Enjoy your Debian system.
+ LAST_E_CMD=einfon
+ return 0
+ return 0
+ eend 0
+ local retval=0
+ shift
+ '[' 0 -gt 0 ']'
+ return 0
+ permission-fix-raw-image
+ chown user:user /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ exithandler
+ local exit_code=0
+ '[' '!' 0 = 0 ']'
++ benchmarktimeend 1568144490
+++ date +%s
++ benchmarktimeend=1568144920
++ benchmark_took_seconds=430
+++ convertsecs 430
+++ local h m s
+++ (( h=430/3600 ))
+++ true
+++ (( m=(430%3600)/60 ))
+++ (( s=430%60 ))
+++ printf '%02d:%02d:%02d\n' 0 7 10
++ echo 00:07:10
+ benchmark_took_time=00:07:10
+ output_cmd_set
+ '[' -o xtrace ']'
+ output_cmd=true
+ '[' 0 = 0 ']'
+ true 'INFO: End of: ././build-steps.d/1300_create-raw-image | exit_code: 0 | error(s) detected: 0 | benchmark: 00:07:10'
+ exit 0
+ true 'INFO: END  : whonix_build_one_build_step_current: ./build-steps.d/1300_create-raw-image'
+ true '############################################################'
+ true '############################################################'
+ true '############################################################'
+ for whonix_build_one_build_step_current in ./build-steps.d/*
+ '[' -x ./build-steps.d/1700_install-packages ']'
+ '[' s = '~' ']'
+ echo ./build-steps.d/1700_install-packages
+ grep -q .dpkg-
+ true '############################################################'
+ true '############################################################'
+ true '############################################################'
+ true 'INFO: BEGIN: whonix_build_one_build_step_current: ./build-steps.d/1700_install-packages'
+ ././build-steps.d/1700_install-packages
+ set -e
+ true 'INFO: Currently running script: ././build-steps.d/1700_install-packages '
+++ dirname ././build-steps.d/1700_install-packages
++ cd ././build-steps.d
++ pwd
+ MYDIR=/home/user/Whonix/build-steps.d
+ cd /home/user/Whonix/build-steps.d
+ cd ..
+ cd help-steps
+ source pre
++ '[' '!' '' = true ']'
++ set +x
+ source colors
++ '[' '!' true = true ']'
+ source variables
++ '[' '!' '' = true ']'
++ set +x
INFO: Setting... export UWT_DEV_PASSTHROUGH="1"
INFO: Variable anon_dist_build_version was unset. Auto detected. Set to: 15.0.0.4.9
++ true 'INFO: Currently running script: ././build-steps.d/1700_install-packages '
++ true 'INFO: LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libeatmydata.so'
+ root_check
++ id -u
+ '[' 0 '!=' 0 ']'
+ echo 'INFO: Script running as root.'
INFO: Script running as root.
+ main
+ '[' whonix-workstation-xfce = whonix-custom-workstation ']'
+ install-packages
+ errorhandlersetup errorhandlerunchrootunpreventunmount ERR INT TERM
+ local handler signal
+ handler=errorhandlerunchrootunpreventunmount
+ shift
+ for signal in "$@"
+ trap 'errorhandlerunchrootunpreventunmount ERR' ERR
+ for signal in "$@"
+ trap 'errorhandlerunchrootunpreventunmount INT' INT
+ for signal in "$@"
+ trap 'errorhandlerunchrootunpreventunmount TERM' TERM
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ /home/user/Whonix/help-steps/mount-raw
+ set -e
+ true 'INFO: Currently running script: /home/user/Whonix/help-steps/mount-raw '
+++ dirname /home/user/Whonix/help-steps/mount-raw
++ cd /home/user/Whonix/help-steps
++ pwd
+ MYDIR=/home/user/Whonix/help-steps
+ source /home/user/Whonix/help-steps/pre
++ '[' '!' '' = true ']'
++ set +x
+ source /home/user/Whonix/help-steps/colors
++ '[' '!' true = true ']'
+ source /home/user/Whonix/help-steps/variables
++ '[' '!' '' = true ']'
++ set +x
INFO: Setting... export UWT_DEV_PASSTHROUGH="1"
INFO: Variable anon_dist_build_version was already set to: 15.0.0.4.9
++ true 'INFO: Currently running script: /home/user/Whonix/help-steps/mount-raw '
++ true 'INFO: LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libeatmydata.so:/usr/lib/x86_64-linux-gnu/libeatmydata.so'
+ '[' false = false ']'
+ main
+ root_check
++ id -u
+ '[' 0 '!=' 0 ']'
+ echo 'INFO: Script running as root.'
INFO: Script running as root.
+ '[' 0 = 1 ']'
+ mount_raw
+ '[' false = false ']'
+ trap error_handler_mount-raw ERR INT TERM
+ '[' '' = '' ']'
+ true
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ '[' '' = '' ']'
+ local img=/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ losetup --all
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ wait 9632
+ sleep 2
+ local kpartx_output a b device
++ kpartx -a -s -v /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ kpartx_output='add map loop0p1 (253:0): 0 209709056 linear 7:0 4096'
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ '[' 'add map loop0p1 (253:0): 0 209709056 linear 7:0 4096' = '' ']'
+ losetup --all
/dev/loop0: [65025]:4197196 (/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw)
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ read a b device _
+ dev_mapper_device=/dev/mapper/loop0p1
+ '[' '' = true ']'
+ sudo --non-interactive -u user LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libeatmydata.so:/usr/lib/x86_64-linux-gnu/libeatmydata.so mkdir --parents /home/user/whonix_binary/Whonix-Workstation-XFCE_image
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ mount /dev/mapper/loop0p1 /home/user/whonix_binary/Whonix-Workstation-XFCE_image
mount: /home/user/whonix_binary/Whonix-Workstation-XFCE_image: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p1, missing codepage or helper program, or other error.
++ error_handler_mount-raw
+++ caller
++ : echo '
   BASH_COMMAND: mount "$dev_mapper_device" "$CHROOT_FOLDER"
   ERROR /home/user/Whonix/help-steps/mount-raw: | caller: 91 /home/user/Whonix/help-steps/mount-raw
   '
++ exit 1
+ exithandler
+ local exit_code=1
+ '[' '!' 1 = 0 ']'
+ exit 1
++ errorhandlerunchrootunpreventunmount ERR
++ last_failed_exit_code=1
++ last_failed_bash_command='"$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"'
++ output_cmd_set
++ '[' -o xtrace ']'
++ output_cmd=true
++ errorhandlerprocessshared ERR
++ last_script=././build-steps.d/1700_install-packages
++ trap_signal_type_previous=
++ '[' '' = '' ']'
++ trap_signal_type_previous=unset
++ trap_signal_type_last=ERR
++ whonix_build_error_counter=1
+++ benchmarktimeend 1568144920
++++ date +%s
+++ benchmarktimeend=1568144924
+++ benchmark_took_seconds=4
++++ convertsecs 4
++++ local h m s
++++ (( h=4/3600 ))
++++ true
++++ (( m=(4%3600)/60 ))
++++ true
++++ (( s=4%60 ))
++++ printf '%02d:%02d:%02d\n' 0 0 4
+++ echo 00:00:04
++ benchmark_took_time=00:00:04
++ 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 ././build-steps.d/1700_install-packages detected!
anon_dist_build_version: 15.0.0.4.9
(whonix_build_error_counter: 1)
(benchmark: 00:00:04)
trap_signal_type_previous: unset
trap_signal_type_last    : ERR
process_backtrace_result:
1: : /sbin/init 
2: : xfce4-terminal 
3: : bash 
4: : sudo SKIP_SCRIPTS+= 1200_create-debian-packages  SKIP_SCRIPTS+= 1100_prepare-build-machine  REPO_PROXY=http://127.0.0.1:3142 ./whonix_build --flavor whonix-workstation-xfce --build --redistribute --target qcow2 --unsafe-io true 
5: : /bin/bash ./whonix_build --flavor whonix-workstation-xfce --build --redistribute --target qcow2 --unsafe-io true 
6: : /bin/bash ././build-steps.d/1700_install-packages 
function_trace_result:
main (line number: 355)
main (line number: 351)
install-packages (line number: 171)
errorhandlerunchrootunpreventunmount (line number: 344)
errorhandlerprocessshared (line number: 169)
last_failed_bash_command: "$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"
last_failed_exit_code: 1
ERROR in ././build-steps.d/1700_install-packages detected!
############################################################
'
++ '[' ERR = INT ']'
++ '[' ERR = TERM ']'
++ '[' ERR = ERR ']'
++ true '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 _
++ '[' '"$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"' = error_ ']'
++ '[' 1 -gt 1 ']'
++ true 'INFO: Auto retry attempt number: 1. Max retry attempts: 1 (--retry-max). Auto retry... '
++ whonix_build_auto_retry_counter=2
++ '[' '!' 5 = 0 ']'
++ true 'INFO: Waiting (--retry-wait) 5 seconds before auto retry... '
++ wait 9706
++ sleep 5
++ ignore_error=true
++ error_handler_do_retry=true
++ errorhandlerretry
++ '[' '!' '' = '' ']'
++ true 'INFO: Skipping whonix_build_dispatch_before_retry (--retry-before), because empty, ok.'
++ true 'INFO: Retrying last_failed_bash_command...: "$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw" '
++ retry_last_failed_bash_command_exit_code=0
++ eval '"$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"'
+++ /home/user/Whonix/help-steps/mount-raw
+ set -e
+ true 'INFO: Currently running script: /home/user/Whonix/help-steps/mount-raw '
+++ dirname /home/user/Whonix/help-steps/mount-raw
++ cd /home/user/Whonix/help-steps
++ pwd
+ MYDIR=/home/user/Whonix/help-steps
+ source /home/user/Whonix/help-steps/pre
++ '[' '!' '' = true ']'
++ set +x
+ source /home/user/Whonix/help-steps/colors
++ '[' '!' true = true ']'
+ source /home/user/Whonix/help-steps/variables
++ '[' '!' '' = true ']'
++ set +x
INFO: Setting... export UWT_DEV_PASSTHROUGH="1"
INFO: Variable anon_dist_build_version was already set to: 15.0.0.4.9
++ true 'INFO: Currently running script: /home/user/Whonix/help-steps/mount-raw '
++ true 'INFO: LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libeatmydata.so:/usr/lib/x86_64-linux-gnu/libeatmydata.so'
+ '[' false = false ']'
+ main
+ root_check
++ id -u
+ '[' 0 '!=' 0 ']'
+ echo 'INFO: Script running as root.'
INFO: Script running as root.
+ '[' 0 = 1 ']'
+ mount_raw
+ '[' false = false ']'
+ trap error_handler_mount-raw ERR INT TERM
+ '[' '' = '' ']'
+ true
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ '[' '' = '' ']'
+ local img=/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ losetup --all
/dev/loop0: [65025]:4197196 (/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw)
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ wait 9838
+ sleep 2
+ local kpartx_output a b device
++ kpartx -a -s -v /home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw
+ kpartx_output='add map loop0p1 (253:0): 0 209709056 linear 7:0 4096'
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ '[' 'add map loop0p1 (253:0): 0 209709056 linear 7:0 4096' = '' ']'
+ losetup --all
/dev/loop0: [65025]:4197196 (/home/user/whonix_binary/Whonix-Workstation-XFCE-15.0.0.4.9.raw)
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ read a b device _
+ dev_mapper_device=/dev/mapper/loop0p1
+ '[' '' = true ']'
+ sudo --non-interactive -u user LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libeatmydata.so:/usr/lib/x86_64-linux-gnu/libeatmydata.so mkdir --parents /home/user/whonix_binary/Whonix-Workstation-XFCE_image
+ sync
+ true 'sync: Not running sync, because using '\''--unsafe-io true'\''.'
+ mount /dev/mapper/loop0p1 /home/user/whonix_binary/Whonix-Workstation-XFCE_image
mount: /home/user/whonix_binary/Whonix-Workstation-XFCE_image: wrong fs type, bad option, bad superblock on /dev/mapper/loop0p1, missing codepage or helper program, or other error.
++ error_handler_mount-raw
+++ caller
++ : echo '
   BASH_COMMAND: mount "$dev_mapper_device" "$CHROOT_FOLDER"
   ERROR /home/user/Whonix/help-steps/mount-raw: | caller: 91 /home/user/Whonix/help-steps/mount-raw
   '
++ exit 1
+ exithandler
+ local exit_code=1
+ '[' '!' 1 = 0 ']'
+ exit 1
++ retry_last_failed_bash_command_exit_code=1
++ true
++ '[' 1 = 0 ']'
++ true 'INFO: Retry failed. exit code of last_failed_bash_command: 1 '
++ last_failed_exit_code=1
++ last_failed_bash_command='"$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"'
++ '[' '!' '' = '' ']'
++ true 'INFO: Skipping whonix_build_dispatch_after_retry (--retry-after), because empty, ok.'
++ '[' 1 = 0 ']'
++ errorhandlerprocessshared 'NONE_(called_by_errorhandlerretry)'
++ last_script=././build-steps.d/1700_install-packages
++ trap_signal_type_previous=ERR
++ '[' ERR = '' ']'
++ trap_signal_type_last='NONE_(called_by_errorhandlerretry)'
++ whonix_build_error_counter=2
+++ benchmarktimeend 1568144920
++++ date +%s
+++ benchmarktimeend=1568144932
+++ benchmark_took_seconds=12
++++ convertsecs 12
++++ local h m s
++++ (( h=12/3600 ))
++++ true
++++ (( m=(12%3600)/60 ))
++++ true
++++ (( s=12%60 ))
++++ printf '%02d:%02d:%02d\n' 0 0 12
+++ echo 00:00:12
++ benchmark_took_time=00:00:12
++ 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 ././build-steps.d/1700_install-packages detected!
anon_dist_build_version: 15.0.0.4.9
(whonix_build_error_counter: 2)
(benchmark: 00:00:12)
trap_signal_type_previous: ERR
trap_signal_type_last    : NONE_(called_by_errorhandlerretry)
process_backtrace_result:
1: : /sbin/init 
2: : xfce4-terminal 
3: : bash 
4: : sudo SKIP_SCRIPTS+= 1200_create-debian-packages  SKIP_SCRIPTS+= 1100_prepare-build-machine  REPO_PROXY=http://127.0.0.1:3142 ./whonix_build --flavor whonix-workstation-xfce --build --redistribute --target qcow2 --unsafe-io true 
5: : /bin/bash ./whonix_build --flavor whonix-workstation-xfce --build --redistribute --target qcow2 --unsafe-io true 
6: : /bin/bash ././build-steps.d/1700_install-packages 
function_trace_result:
main (line number: 355)
main (line number: 351)
install-packages (line number: 171)
errorhandlerunchrootunpreventunmount (line number: 344)
errorhandlerprocessshared (line number: 220)
errorhandlerretry (line number: 154)
errorhandlerprocessshared (line number: 169)
errorhandlerprocessshared (line number: 169)
errorhandlerunchrootunpreventunmount (line number: 344)
install-packages (line number: 171)
main (line number: 351)
main (line number: 355)
last_failed_bash_command: "$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"
last_failed_exit_code: 1
ERROR in ././build-steps.d/1700_install-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)' ']'
++ true 'INFO: trap_signal_type_last: NONE_(called_by_errorhandlerretry), considering auto retry...'
++ '[' '!' 1 = 0 ']'
++ '[' 2 = '' ']'
++ '[' -n 1 ']'
++ '[' -n 5 ']'
++ local first
++ read -r first _
++ '[' '"$WHONIX_SOURCE_HELP_STEPS_FOLDER/mount-raw"' = error_ ']'
++ '[' 2 -gt 1 ']'
++ true 'INFO: Auto retried (--retry-max) already 1 times. No more auto retry. '
++ unset whonix_build_auto_retry_counter
++ true
++ ignore_error=false
++ answer=
++ '[' 'NONE_(called_by_errorhandlerretry)' = ERR ']'
++ '[' 'NONE_(called_by_errorhandlerretry)' = 'NONE_(called_by_errorhandlerretry)' ']'
++ true 'INFO: whonix_build_non_interactive: '
++ '[' '' = true ']'
++ '[' -t 0 ']'
++ true 'INFO: stdin connected to terminal, using interactive error handler.'
++ true '   ERROR in ././build-steps.d/1700_install-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 a and enter to abort.'
++ read -p 'Answer? ' answer
Answer?
1 Like

All right I’ll try it and report back after the post immediately below mine.

1 Like

Worked. Now GW and WS built.

Stuck at the prepare release stage where gpg times out again.

Creating a gpg-agent.conf file with the command below causes it to die with an error:

echo -e “pinentry-qt /usr/bin/pinentry\nno-grab\ndefault-cache-ttl 7200” | sudo tee ~/.gnupg/gpg-agent.conf

By the time the images are compressed gpg times out and signing can never be done. Is there a solution for this that can be added to the script?

1 Like

Try drop on issues like previous.

What error?

Timeout file too big?

Timeout password entry taking too long while unattended?

Not sure yet. Haven’t seen the error. The script just runs the command for convince. Same should happen on manual execution. Should be possible to copy/paste same command. What’s wrong with the command? Ask upstream?

Yes.

This command I quoted unrecognized by gpg-agent and cripples any gpg operations.

Can’t work since that config file looks obviously invalid.

cat ~/.gnupg/gpg-agent.conf

“pinentry-qt /usr/bin/pinentrynno-grabndefault-cache-ttl 7200”

Shouldn’t use sudo since file location in user owned location. Best to delete ~/.gnupg/gpg-agent.conf and recreate with proper permissions and owned by user.

1 Like

Used this with same consequences Turns out you can ignore the cache completely and go ahead with the signing. Will drop the sudo and start again:

echo -e “pinentry-program /usr/bin/pinentry-qt\nno-grab\nignore-cache-for-signing\nmax-cache-ttl 7200” | sudo tee ~/.gnupg/gpg-agent.conf

Anyway I ran the most simplified version of the signing command manually in attempt to forget about the prepare release script. Ended up timing out. There must be something else screwing this up:

user@host:~/whonix_binary$ gpg --detach-sign --armor *.libvirt.xz
gpg: signing failed: Timeout
gpg: signing failed: Timeout

1 Like
[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]