Testers-wanted! Whonix 8 Release candidate #1 Whonix 7.7.8.6

Nailed it! It indeed seems to be due to update-locale failing. You can’t be serious about this :frowning: Are you? grml_packages, i.e. all requirements (including locales) are installed.

[code]*** update-locale: Error: invalid locale settings: LANGUAGE=“en_GB:en” LANG=en_US.UTF-8
++ error_handler
++ local exit_code=255
++ local ‘last_err=update-locale LANG=en_US.UTF-8’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘’ = ‘’ ‘]’
++ output=’## See above.’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ force_echo '
####################################################################

e[31me[1mBEGIN ERROR in /usr/share/whonix/postinst.d/70_locale detected!e[0;10m

e[4mERROR LOGe[0;10m:

See above.

e[4mBASH_COMMANDe[0;10m: update-locale LANG=en_US.UTF-8

e[4mEXIT_CODEe[0;10m: 255

e[31me[1mEND ERROR in /usr/share/whonix/postinst.d/70_locale detected!e[0;10m

e[31me[1mPlease report this Whonix bug!e[0;10m

####################################################################

++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ exit 1
run-parts: /usr/share/whonix/postinst.d/70_locale exited with return code 1
++ error_handler
++ local exit_code=1
++ local ‘last_err=run-parts --verbose --exit-on-error “/usr/share/whonix/postinst.d”’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘’ = ‘’ ‘]’
++ output=’## See above.’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ force_echo '
####################################################################

e[31me[1mBEGIN ERROR in /var/lib/dpkg/info/whonix-gateway-files.postinst detected!e[0;10m

e[4mERROR LOGe[0;10m:

See above.

e[4mBASH_COMMANDe[0;10m: run-parts --verbose --exit-on-error “/usr/share/whonix/postinst.d”

e[4mEXIT_CODEe[0;10m: 1

e[31me[1mEND ERROR in /var/lib/dpkg/info/whonix-gateway-files.postinst detected!e[0;10m

e[31me[1mPlease report this Whonix bug!e[0;10m

####################################################################

++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ ‘[’ ‘!’ 1 = 1 ‘]’
++ exit 1
dpkg: error processing whonix-gateway-files (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
whonix-gateway-filesE: Sub-process /usr/bin/dpkg returned an error code (1)
++ error_handler_unchroot_unprevent_unmount
++ benchmark_time_end
+++ date +%s
++ benchmark_time_end=1392567050
++ benchmark_took_seconds=96
+++ convertsecs 96
+++ (( h=96/3600 ))
+++ (( m=(96%3600)/60 ))
+++ (( s=96%60 ))
+++ printf ‘%02d:%02d:%02d\n’ 0 1 36
+++ true
++ benchmark_took_time=00:01:36
++ true
++ echo 'ERROR in ./build-steps.d/2000_install-files-packages. Aborting… (benchmark: 00:01:36)'
ERROR in ./build-steps.d/2000_install-files-packages. Aborting… (benchmark: 00:01:36)
++ rm --force /var/run/whonix/package_manager_lock
++ /home/user/Whonix/help-steps/remove-local-temp-apt-repo
+++ dirname /home/user/Whonix/help-steps/remove-local-temp-apt-repo
++ cd /home/user/Whonix/help-steps
++ pwd

  • MYDIR=/home/user/Whonix/help-steps
  • source /home/user/Whonix/help-steps/pre
    ++ set +x
  • source /home/user/Whonix/help-steps/variables
    ++ set +x
    INFO: Setting… export UWT_DEV_PASSTHROUGH="1"
    whonix_build_whonix_version_new: 7.7.8.9.1.gf3a98d341e39047ed3b612132313be462899e171
    whonix_build_new_changelog_version: 2:7.7.8.9-debpackage1
  • true 'INFO: Currently running script: /home/user/Whonix/help-steps/remove-local-temp-apt-repo ’
  • remove_local_temp_apt_repo
  • trap error_handler_general ERR INT TERM
  • rm --force /etc/apt/trusted.gpg.d/whonix-temporary-local-apt-repository.gpg
  • rm --force /etc/apt/trusted.gpg.d/whonix-temporary-local-apt-repository.gpg~
  • rm --force //var/lib/whonix/sources_temp_list.d/whonix_temp_initialdeb.list
  • rm --force //var/lib/whonix/sources_temp_list.d/build_sources.list
  • benchmark_time_end
    ++ date +%s
  • benchmark_time_end=1392567052
  • benchmark_took_seconds=2
    ++ convertsecs 2
    ++ (( h=2/3600 ))
    ++ (( m=(2%3600)/60 ))
    ++ (( s=2%60 ))
    ++ printf ‘%02d:%02d:%02d\n’ 0 0 2
    ++ true
  • benchmark_took_time=00:00:02
  • true
  • true ‘INFO: End of: /home/user/Whonix/help-steps/remove-local-temp-apt-repo No error detected. (benchmark: 00:00:02)’
    ++ /home/user/Whonix/help-steps/unchroot-img
    +++ dirname /home/user/Whonix/help-steps/unchroot-img
    ++ cd /home/user/Whonix/help-steps
    ++ pwd
  • MYDIR=/home/user/Whonix/help-steps
  • source /home/user/Whonix/help-steps/pre
    ++ set +x
  • source /home/user/Whonix/help-steps/variables
    ++ set +x
    INFO: Setting… export UWT_DEV_PASSTHROUGH="1"
    whonix_build_whonix_version_new: 7.7.8.9.1.gf3a98d341e39047ed3b612132313be462899e171
    whonix_build_new_changelog_version: 2:7.7.8.9-debpackage1
  • true 'INFO: Currently running script: /home/user/Whonix/help-steps/unchroot-img ’
  • do_unchroot
  • trap error_handler_unchroot-img ERR INT TERM
  • sync
  • ‘[’ 1 = 1 ‘]’
  • true
  • umount //mnt/initialdeb
  • umount /etc/resolv.conf
    umount: /etc/resolv.conf: not mounted
  • true
  • umount /etc/hosts
    umount: /etc/hosts: not mounted
  • true
  • umount /etc/hostname
    umount: /etc/hostname: not mounted
  • true
  • umount /etc/network/interfaces
    umount: /etc/network/interfaces: not mounted
  • true
  • sync
  • benchmark_time_end
    ++ date +%s
  • benchmark_time_end=1392567055
  • benchmark_took_seconds=2
    ++ convertsecs 2
    ++ (( h=2/3600 ))
    ++ (( m=(2%3600)/60 ))
    ++ (( s=2%60 ))
    ++ printf ‘%02d:%02d:%02d\n’ 0 0 2
    ++ true
  • benchmark_took_time=00:00:02
  • true
  • true ‘INFO: End of: /home/user/Whonix/help-steps/unchroot-img No error detected. (benchmark: 00:00:02)’
    ++ /home/user/Whonix/help-steps/unprevent-daemons-from-starting
    +++ dirname /home/user/Whonix/help-steps/unprevent-daemons-from-starting
    ++ cd /home/user/Whonix/help-steps
    ++ pwd
  • MYDIR=/home/user/Whonix/help-steps
  • source /home/user/Whonix/help-steps/pre
    ++ set +x
  • source /home/user/Whonix/help-steps/variables
    ++ set +x
    INFO: Setting… export UWT_DEV_PASSTHROUGH="1"
    whonix_build_whonix_version_new: 7.7.8.9.1.gf3a98d341e39047ed3b612132313be462899e171
    whonix_build_new_changelog_version: 2:7.7.8.9-debpackage1
  • true 'INFO: Currently running script: /home/user/Whonix/help-steps/unprevent-daemons-from-starting ’
  • unprevent_daemons_from_starting
  • sync
  • rm --verbose --force /usr/sbin/policy-rc.d
    removed `/usr/sbin/policy-rc.d’
  • sync
  • benchmark_time_end
    ++ date +%s
  • benchmark_time_end=1392567056
  • benchmark_took_seconds=1
    ++ convertsecs 1
    ++ (( h=1/3600 ))
    ++ (( m=(1%3600)/60 ))
    ++ (( s=1%60 ))
    ++ printf ‘%02d:%02d:%02d\n’ 0 0 1
    ++ true
  • benchmark_took_time=00:00:01
  • true
  • true ‘INFO: End of: /home/user/Whonix/help-steps/unprevent-daemons-from-starting No error detected. (benchmark: 00:00:01)’
    ++ /home/user/Whonix/help-steps/unmount-img
    +++ dirname /home/user/Whonix/help-steps/unmount-img
    ++ cd /home/user/Whonix/help-steps
    ++ pwd
  • MYDIR=/home/user/Whonix/help-steps
  • source /home/user/Whonix/help-steps/pre
    ++ set +x
  • source /home/user/Whonix/help-steps/variables
    ++ set +x
    INFO: Setting… export UWT_DEV_PASSTHROUGH="1"
    whonix_build_whonix_version_new: 7.7.8.9.1.gf3a98d341e39047ed3b612132313be462899e171
    whonix_build_new_changelog_version: 2:7.7.8.9-debpackage1
  • ‘[’ 1 = 1 ‘]’
  • true ‘INFO: Skipping script, because BARE_METAL=1: /home/user/Whonix/help-steps/unmount-img’
  • exit 0
    ++ echo 'ERROR in ./build-steps.d/2000_install-files-packages! Aborted.'
    ERROR in ./build-steps.d/2000_install-files-packages! Aborted.
    ++ exit 1
    run-parts: ./build-steps.d/2000_install-files-packages exited with return code 1
    ++ error_handler_build-machine
    +++ caller
    ++ : echo ‘
    BASH_COMMAND: run-parts --verbose --exit-on-error ./build-steps.d
    ERROR ./whonix_build: | caller: 45 ./whonix_build

    ++ exit 1[/code]

What happens if you run

sudo update-locale LANG=en_US.UTF-8 ; echo $?
?

Strange, that it fails there. That script has not been modified in ages and always worked.

And what happens, if you run

?

I am also missing a bit of the log. But nevermind. The last command before the error was exactly

?

And next line was

?

I am wondering, where the error is coming from. Where the “en_GB:en” is coming from.

What’s the content of your /etc/default/locale? Please check.

I just saw, Jekyll changed the Build Documentation: Physical Isolation from
Country: United States
to
Select your location: United Kingdom.
No idea why. I am afraid, I didn’t catch this. This is wrong. Always default to “United States”.

Perhaps that’s why update-locale got confused.

This is now also obsolete.

## Add a new repository source. ## To install VirtualBox, you need to add the "contrib" repository. See the footnote below. echo "deb http://ftp.us.debian.org/debian/ jessie main contrib" >> /etc/apt/sources.list

[quote=“Occq, post:7, topic:67”]GPG key - there is a new one. https://www.whonix.org/wiki/Adrelanos

cd Whonix
gpg --recv-key 916B8D99C38EAF5E8ADC7A2A8D66066A2EEACCDA
git tag -v 7.7.8.7[/quote]

I download the key, is shown as Patrick Schleizer in Kleopatra.
I download the 7.7.8.6.ova
I download the 7.7.8.6.ova.asc

But if I try to verify, Kleopatra shows me signed by unknown zertificate.
0x6E979B28A6F37C43BE30AFA1CB8D50BB77BB3C48

[quote=“CoinMiner, post:48, topic:67”][quote author=Occq link=topic=48.msg362#msg362 date=1392479023]

GPG key - there is a new one. https://www.whonix.org/wiki/Adrelanos

cd Whonix
gpg --recv-key 916B8D99C38EAF5E8ADC7A2A8D66066A2EEACCDA
git tag -v 7.7.8.7

[/quote]

I download the key, is shown as Patrick Schleizer in Kleopatra.
I download the 7.7.8.6.ova
I download the 7.7.8.6.ova.asc

But if I try to verify, Kleopatra shows me signed by unknown zertificate.
0x6E979B28A6F37C43BE30AFA1CB8D50BB77BB3C48[/quote]

Please post a screenshot. Please donate the screenshot under CC0 (Creative Commons — CC0 1.0 Universal) so we can write documentation for this.

UTC gets accepted as default if you choose UK, with US you got to set it (no a problem for manual install, might be a problem with preseed).

[quote=“adrelanos, post:47, topic:67”]This is now also obsolete.

[quote]## Add a new repository source.

To install VirtualBox, you need to add the “contrib” repository. See the footnote below.

echo “deb http://ftp.us.debian.org/debian/ jessie main contrib” >> /etc/apt/sources.list[/quote][/quote]

Yes and no. We need Wheezy sources since they are empty (no select mirror during installation).

By the way, great job with the dots and progress at First Run Initiliazer.

Choosing UK causes issues with update-locale, I think. And US is best default, since most times default choice and used by most. Preseed shouldn’t be a problem, you should be able to set anything there.

The we also need the security repository. Added.

Do we need to remove any cd-rom repository lines?

Security repo is added by default, even if you don’t choose a mirror. Changed that in wiki.

Cd-rom repo is disabled by default.

[quote=“adrelanos, post:51, topic:67”][quote author=Occq link=topic=48.msg427#msg427 date=1392585831]
UTC gets accepted as default if you choose UK, with US you got to set it (no a problem for manual install, might be a problem with preseed).[/quote]
Choosing UK causes issues with update-locale, I think.[/quote]

I have build bare-metal, gateway and workstation all with UK. Script takes care of all. Probably.

  • force_echo ‘INFO /usr/share/whonix/postinst.d/70_locale: Changing your locale to en_US.UTF-8… Will only do this once.’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • force_echo ‘INFO /usr/share/whonix/postinst.d/70_locale: Will run: update-locale LANG=en_US.UTF-8’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • ‘[’ ‘!’ 1 = 1 ‘]’
  • update-locale LANG=en_US.UTF-8
  • touch /usr/lib/whonix/updated_locale
  • force_echo ‘INFO /usr/share/whonix/postinst.d/70_locale: Done, changed locale to en_US.UTF-8.’

I would argue for leaving UK as the default option (if the local thing is not problematic).

Aren’t there more computers with UK&UTC then US&UTC? First option is the default option of all UK users. UTC and US seems like an anomaly since most Americans use their timezone which is not UTC.

Occq, adrelanos, wait a second please before posting even more stuff. I’m just answering on all your question (so far) one by one … than we can continue. Thanks! In a few minutes.

user@host:~$ sudo which update-locale ; echo $? 0

user@host:~$ sudo update-locale LANG=en_US.UTF-8 ; echo $? *** update-locale: Error: invalid locale settings: LANGUAGE="en_GB:en" LANG=en_US.UTF-8 255
Basically the same error the build script is producing.

[quote=“adrelanos, post:44, topic:67”]I am also missing a bit of the log. But nevermind. The last command before the error was exactly

?

And next line was

?

I am wondering, where the error is coming from. Where the “en_GB:en” is coming from.[/quote]
Let me know if you need even more of the log (what you said above is correct), I still have it all saved here. en_GB:en is probably due to the fact that I selected United Kingdom as my region/locale during install just as advertised at the wiki. Also, I opted for this due to a UTC timezone.

[code]user@host:~$ cat /etc/default/locale

File generated by update-locale

LANG="en_GB.UTF-8"
LANGUAGE=“en_GB:en”[/code]

As of the repositories: I enabled the std. online repos during installation (I saw no reason not to do). Thus my /etc/apt/sources.list contains the default Debian repos after a default Debian 7.4.0 install. If you want to see that very file, let me know. Shouldn’t break a build script though and sounds totally unrelated to the actual issue. Also the selected locale shouldn’t break the script (be it French, German, US, whatever) if you ask me.

Any other input needed? I hope I catched up. Did I miss something important? I still have the (now again broken) machine running here, i.e. I’m able to extract whatever infos you want.

Thanks! Hope we get this fixed together. Btw, comments on #39?

Can you post the whole 2200 log?

From run-parts: executing ./build-steps.d/2000_install-files-packages

[quote=“Cerberus, post:40, topic:67”]Build on tty1 with

View the log on tty2 (in realtime) with

That’s what I currently do to reproduce the error for the third time.[/quote]
This is fine.

Script takes care of all. Probably.
grml-debootstrap uses en_US.UTF-8 by default. Ideally, physical isolation build process is as close to grml-debootstrap as possible. Installing manually should replace the grml-debootstrap build step. When we tell users to use en-GB for manual installation, but use en-US for VM builds, we create a subtle difference.
Aren't there more computers with UK&UTC then US&UTC?
I don't know.

Generally, it’s best to join the anonymity set of existing similar projects such as TBB, Tails, etc.

I would argue for leaving UK as the default option (if the local thing is not problematic).
We can consider this for Whonix 9. I'd hesitate making any more non-bug fixes for Whonix 8. This little improvement and this little improvement. That's what I've been doing for some time know. The devil is in the detail. Such a change could open up for further issues that need fixing. None of them a big deal, probably, but I delayed this release for far too long already.

Why is en-US / UTC the default for now? Well, good question. It has been the default since TorBOX times. Having UTC the default time zone is because TBB, Tails and Liberte Linux are using it as well. en-US is the language of the default TBB download. When you look at ip-check.info using TBB, it detects en-US as well. en_US.UTF-8 is grml-debootstrap’s default. Is Tails also using en-US? When looking at this, it seems a bad idea to set the default locale to en-GB.