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

Whonix Desktop Installer with Calamares - field report

@Patrick
Can’t build 15.0.0.4.-developers-only:

git verify-tag 15.0.0.4.1-developers-only
error: tag '15.0.0.4.1-developers-only' not found.
2 Likes

Pushed just now.

Building 15.0.0.4.1 also fails at the same step with same error.

df -h | grep pbuilder
none            2.0G  807M  1.3G  40% /var/cache/pbuilder

build command was

sudo ~/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false

1 Like

Are there any log files produced during the build I could look into that may help understand and solve this issue?

1 Like

Answered here:

Another path of debugging this:

Good news.

  • ‘[’ whonix-host = whonix-host ‘]’
  • true ‘INFO: Skipping creation of user ‘’‘user’’’ since WHONIX_BUILD_TYPE is set to whonix-host.’

Slightly bad news. There will be another build issue.

+ dpkg-divert --divert /etc/hostname.anondist-orig --rename --package anon-base-files --add /etc/hostname
Adding 'diversion of /etc/hostname to /etc/hostname.anondist-orig by anon-base-files'
dpkg-divert: error: unable to remove copied source file '/etc/hostname': Device or resource busy
....
+ true 'ERROR: Second attempt installing whonix-host-xfce-kvm-nonfreedom did not fail?!?'

But that one is understood by me. Whonix VM builds also had this issue in past. This is only about what files are mounted when and when not and in which order to install the packages which overwrite these critical files. Issue described here:

https://github.com/Whonix/Whonix/blob/master/help-steps/chroot-raw

Will work on that one.

1 Like

User user creation (as already mentioned) should work.

Above issue fixed in git master.

Included in git tag

15.0.0.4.3-developers-only

Untested.

15.0.0.4.5-developers-only tag more tested (building packages now) but build not done yet.

What version should I try to build? Should I first continue debugging the fatal error in 1200 step?

1 Like

Can be done “in parallel” (in different VMs). Or one thing after another.

Git tag 15.0.0.4.5-developers-only should work fine for cowbuilder debugging but the same tag should also be good for Whonix Host testing since I expect no more build bugs related to /etc/hostname and also user “user” creating being skipped.

15.0.0.4.5-developers-only

Whonix Host build successful. No build errors. But didn’t try to boot the actual Whonix Host build.

1 Like

Building in a fresh Whonix-Workstation 15 VM now.

1 Like

Build fails at 1120 step. Very cryptic error log.

Short log:

/home/user/Whonix/packages/genmkfile /home/user/Whonix
+ make_use_cowbuilder=false
+ make deb-cleanup
./usr/share/genmkfile/make-helper.bsh deb-cleanup
make: *** [usr/share/genmkfile/makefile-full:85: deb-cleanup] Error 1
++ errorhandlergeneral ERR
++ last_failed_exit_code=2
++ last_failed_bash_command='make_use_cowbuilder=false make deb-cleanup'

long log:

+ cat /usr/sbin/policy-rc.d
cat: /usr/sbin/policy-rc.d: No such file or directory
+ true
+ genmkfile_installation
+ pushd /home/user/Whonix/packages/genmkfile
/home/user/Whonix/packages/genmkfile /home/user/Whonix
+ make_use_cowbuilder=false
+ make deb-cleanup
./usr/share/genmkfile/make-helper.bsh deb-cleanup
make: *** [usr/share/genmkfile/makefile-full:85: deb-cleanup] Error 1
++ errorhandlergeneral ERR
++ last_failed_exit_code=2
++ last_failed_bash_command='make_use_cowbuilder=false make deb-cleanup'
++ output_cmd_set
++ '[' -o xtrace ']'
++ output_cmd=true
++ true 'INFO: Middle of function errorhandlergeneral of ././build-steps.d/1120_prepare-build-machine.'
++ errorhandlerprocessshared ERR
++ last_script=././build-steps.d/1120_prepare-build-machine
++ trap_signal_type_previous=
++ '[' '' = '' ']'
++ trap_signal_type_previous=unset
++ trap_signal_type_last=ERR
++ whonix_build_error_counter=1
+++ benchmarktimeend 1566907746
++++ date +%s
+++ benchmarktimeend=1566908131
+++ benchmark_took_seconds=385
++++ convertsecs 385
++++ local h m s
++++ (( h=385/3600 ))
++++ true
++++ (( m=(385%3600)/60 ))
++++ (( s=385%60 ))
++++ printf '%02d:%02d:%02d\n' 0 6 25
+++ echo 00:06:25
++ benchmark_took_time=00:06:25
++ 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/1120_prepare-build-machine detected!
anon_dist_build_version: 15.0.0.4.5-3-g36d2cb1643831e011984fc2fa76bfd6bb8775646
(whonix_build_error_counter: 1)
(benchmark: 00:06:25)
trap_signal_type_previous: unset
trap_signal_type_last    : ERR
process_backtrace_result:
1: : /sbin/init 
2: : xfce4-terminal 
3: : bash 
4: : sudo /home/user/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false 
5: : /bin/bash /home/user/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false 
6: : /bin/bash ././build-steps.d/1120_prepare-build-machine 
function_trace_result:
main (line number: 293)
main (line number: 290)
genmkfile_installation (line number: 280)
errorhandlergeneral (line number: 334)
errorhandlerprocessshared (line number: 169)
last_failed_bash_command: make_use_cowbuilder=false make deb-cleanup
last_failed_exit_code: 2
ERROR in ././build-steps.d/1120_prepare-build-machine detected!
############################################################

I did not set make_use_cowbuilder=false

Build command:

sudo ~/Whonix/whonix_build --build --redistribute --target iso --flavor whonix-host-xfce --freedom false

1 Like

And retrying in the old VM (that used to work fine) failed as expected at step 1200 when building hardened_malloc package (until then it works fine).

1 Like

genmkfile bootstrap bug.

For now, install manually. That should work around that bug.

sudo mkdir -p /usr/share/genmkfile

sudo cp ~/Whonix/packages/genmkfile/usr/share/genmkfile/* /usr/share/genmkfile/

sudo chmod -R o+r /usr/share/genmkfile/

I will work on a fix.

1 Like

Thanks, retrying

1 Like

Exact same error occured again

1 Like

It requires some debugging.

If that makes sense.

And then figuring out what’s going wrong. Probably GENMKFILE_PATH not being set and then set to GENMKFILE_PATH="/usr/share/genmkfile" which does not exist prior installation.

1 Like

no, it does not :slight_smile: how exactly can I enable debugging?

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