So I found that at I could try allow-untagged true --allow-uncommitted true which is not safe (read below).
However, when I try it, it gives me a new error:
> # This system was installed using small removable media
> # (e.g. netinst, live or single CD). The matching "deb cdrom"
> # entries were disabled at the end of the installation process.
> # For information about how to configure apt package sources,
> # see the sources.list(5) manual.
> deb https://deb.debian.org/debian bullseye main contrib non-free
+ error 'ERROR: Host /home/user/Whonix_Install/Whonix/Whonix/build_sources/debian_stable_current_clearnet.list does not match chroot /etc/apt/sources.list'
+ echo '############################################################'
############################################################
+ echo 'ERROR: ERROR: Host /home/user/Whonix_Install/Whonix/Whonix/build_sources/debian_stable_current_clearnet.list does not match chroot /etc/apt/sources.list'
ERROR: ERROR: Host /home/user/Whonix_Install/Whonix/Whonix/build_sources/debian_stable_current_clearnet.list does not match chroot /etc/apt/sources.list
+ echo '############################################################'
############################################################
+ error_reason='ERROR: Host /home/user/Whonix_Install/Whonix/Whonix/build_sources/debian_stable_current_clearnet.list does not match chroot /etc/apt/sources.list'
+ error_ 'See above! (There should be a bold, red message surrounded by blue hashtags (#).)'
/home/user/Whonix_Install/Whonix/Whonix/help-steps/pre: line 43: error_: command not found
++ error_handler_chroot-raw
+++ caller
++ : echo '
BASH_COMMAND: error_ "See above! (There should be a bold, red message surrounded by blue hashtags (#).)"
ERROR /home/user/Whonix_Install/Whonix/Whonix/help-steps/chroot-raw: | caller: 43 /home/user/Whonix_Install/Whonix/Whonix/help-steps/pre
'
++ 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/chroot-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 1653556884
++++ date +%s
+++ benchmarktimeend=1653556887
+++ benchmark_took_seconds=3
++++ convertsecs 3
++++ local h m s
++++ (( h=3/3600 ))
++++ true
++++ (( m=(3%3600)/60 ))
++++ true
++++ (( s=3%60 ))
++++ printf '%02d:%02d:%02d\n' 0 0 3
+++ echo 00:00:03
++ benchmark_took_time=00:00:03
++ local first
++ read -r first _
++ processbacktracefunction
++ true 'INFO: BEGIN: processbacktracefunction'
++ '[' -o xtrace ']'
++ set +x
++ true 'INFO: END : processbacktracefunction'
++ functiontracefunction
++ true 'INFO: BEGIN: functiontracefunction'
++ '[' -o xtrace ']'
++ set +x
++ true 'INFO: END : functiontracefunction'
++ output_cmd_set
++ '[' -o xtrace ']'
++ output_cmd=true
++ true '
############################################################
ERROR in ././build-steps.d/1700_install-packages detected!
dist_build_version: 16.0.4.2-22-g0f23fa3778b48a892468e2d9ef5c5625c19c017e
whonix_build_error_counter: 1
benchmark: 00:00:03
last_failed_exit_code: 1
trap_signal_type_previous: unset
trap_signal_type_last : ERR
process_backtrace_result:
1: : init
2: : sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
3: : sshd: user [priv]
4: : sshd: user@pts/0
5: : -bash
6: : sudo ./whonix_build --flavor whonix-gateway-xfce --allow-untagged true --allow-uncommitted true --target root --build
7: : /bin/bash ./whonix_build --flavor whonix-gateway-xfce --allow-untagged true --allow-uncommitted true --target root --build
8: : /bin/bash ././build-steps.d/1700_install-packages
function_trace_result:
main (line number: 471)
main (line number: 467)
install-packages (line number: 215)
errorhandlerunchrootunpreventunmount (line number: 389)
errorhandlerprocessshared (line number: 208)
last_failed_bash_command: "$WHONIX_SOURCE_HELP_STEPS_FOLDER/chroot-raw"
############################################################
'
++ unset error_reason
++ '[' ERR = INT ']'
++ '[' ERR = TERM ']'
++ '[' ERR = ERR ']'
++ '[' '!' 0 = 0 ']'
++ true 'INFO: whonix_build_auto_retry set to 0 (--retry-max). No auto retry.'
++ unset whonix_build_auto_retry_counter
++ true
++ ignore_error=false
++ answer=
++ '[' ERR = ERR ']'
++ '[' '' = true ']'
++ '[' -t 0 ']'
++ true 'INFO: stdin connected to terminal, using interactive error handler.'
++ true 'ERROR in ././build-steps.d/1700_install-packages detected!
Please have a look above (the block within ###...).
- Please enter c and press enter to ignore the error and continue building. (Recommended against!)
- Please press r and enter to retry.
- Please press s and enter to open an chroot interactive shell.
- Please press a and enter to abort.'
++ read -p 'Answer? ' answer
Answer? ++ error_handler_do_retry=
++ interactive_chroot_shell=
++ '[' '' = continue ']'
++ '[' '' = c ']'
++ '[' '' = s ']'
++ '[' '' = shell ']'
++ '[' '' = r ']'
++ '[' '' = retry ']'
++ '[' '' = a ']'
++ true 'ERROR: Invalid answer!'
++ continue
++ true
++ ignore_error=false
++ answer=
++ '[' ERR = ERR ']'
++ '[' '' = 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 ###...).
- 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?
+ grep '
The post about allow-untagged true --allow-uncommitted true:
It’s happening because git master contains newer packages than the tag you’re trying to build.
The extraneous files (from perspective of the tag you try to build) are reported. The output of the build script already explains how to remove these.
This removal step isn’t automated since this could wipe out user custom modifications.
I try figure out how to git clone a specific git tag so these extraneous packages issue won’t happen.
Also build 15.0.0.4.9-stable
instead. Just previously only 15.0.0.4.9-developers-only
existed. Forgot to create an identical tag with the same name.
No good idea for most users. These extraneous packages do not point to any signed (and verified) git commit or git tag. These extra folders could be compromised in transfer.
Only by understanding what causes –allow-untagged true --allow-uncommitted true
to proceed it is safe to proceed such as when having manually added/modified files but not committed or added commits on top of when trying to build from non-tagged commits.