git status on 12.0.0.3.2-developers-only whonix gateway build

Trying to clean up the branch before building. My git status command returns the following:
Changes not staged for commit:
modified: packages/apparmor-profile-torbrowser

git clean -ndff returns nothing. I’ve already ran both git dff commands, but git status still returns changes not staged for commit. How should I get passed this so I can move on with the build? I’ve tried building it anyways but the script errors out with 1200_create-debian-packges error exit code 1.

My build command is:
sudo ./whonix_build --flavor whonix-gateway – --target root --gui none --freshness current --build

Chapter cleanup.

Build Documentation: Physical Isolation

Made no different to git status command. I tried running as normal and root user.
git status is still outputing the following, after running git clean -ndff, git clean -dff, git submodule update --init --recursive, then the helper cleanup script, then a git status:

Changes not staged for commit"
modified: packages/aparmor-profile-torbrowser (modified content)

no changes added to commit.

When I try to build this, the script errors out about Uncommited changes…

I’ve tried git clean -d --force --force and git reset --hard

Still cant get a clean git status.

cd packages/aparmor-profile-torbrowser
git status

That should not happen.
Please post the output here.

I fixed it by doing a git rm on the file git status was showing, then doing a git commit. Now git status shows a clean repo.

If you are talking about the install log, I’m not sure how much of it you want, heres a cut of the errors it was throughing:

  • git status
    HEAD detached at 12.0.0.3.2-developers-only
    Changes not staged for commit:
    (use “git add …” to update what will be committed)
    (use “git checkout – …” to discard changes in working directory)
    (commit or discard the untracked or modified content in submodules)

    modified: packages/apparmor-profile-torbrowser (modified content)

no changes added to commit (use “git add” and/or “git commit -a”)

  • true '/home/user/Whonix/help-steps/git_sanity_test INFO: Running git “clean -d --force --force --dry-run” for your convenience. ’
  • git clean -d --force --force --dry-run
  • true ‘/home/user/Whonix/help-steps/git_sanity_test You most likely like to run:
    /home/user/Whonix/help-steps/cleanup-files
    or if you know what you are doing:
    git clean -d --force --force
    git reset --hard
  • true ---------------------------------------------------------------------
  • error ‘Uncommitted changes! See above!’
  • true ‘############################################################’
  • true ‘ERROR: Uncommitted changes! See above!’
  • true ‘############################################################’
  • error_ 'See above! (There should be a bold, red message surrounded by blue hashtags (#).)'
    pre: line 20: error_: command not found
    ++ errorhandlergeneral ERR
    ++ last_failed_exit_code=127
    ++ last_failed_bash_command=‘error_ “See above! (There should be a bold, red message surrounded by blue hashtags (#).)”’
    ++ true ‘INFO: Middle of function errorhandlergeneral of ././build-steps.d/1200_create-debian-packages.’
    ++ errorhandlerprocessshared ERR
    ++ last_script=././build-steps.d/1200_create-debian-packages
    ++ trap_signal_type_previous=
    ++ ‘[’ ‘’ = ‘’ ‘]’
    ++ trap_signal_type_previous=unset
    ++ trap_signal_type_last=ERR
    ++ whonix_build_error_counter=1
    +++ benchmarktimeend 1451175266
    ++++ date +%s
    +++ benchmarktimeend=1451175270
    +++ 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’
    ++ true '
    ############################################################
    ERROR in ././build-steps.d/1200_create-debian-packages detected!
    anon_dist_build_version: 12.0.0.3.2
    (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: : /bin/login –
    3: : -bash
    4: : sudo ./whonix_build --flavor whonix-gateway – --target root --gui none --freshness current --build
    5: : /bin/bash ./whonix_build --flavor whonix-gateway – --target root --gui none --freshness current --build
    6: : /bin/bash ./help-steps/whonix_build_one --flavor whonix-gateway --target root --gui none --freshness current --build
    7: : /bin/bash ././build-steps.d/1200_create-debian-packages
    function_trace_result:
    main (line number: 222)
    main (line number: 218)
    create-debian-packages (line number: 202)
    git_sanity_test_main (line number: 146)
    git_sanity_test_check_for_uncommitted_changes (line number: 137)
    error (line number: 20)
    errorhandlergeneral (line number: 311)
    errorhandlerprocessshared (line number: 159)
    last_failed_bash_command: error_ "See above! (There should be a bold, red message surrounded by blue hashtags (#).)"
    last_failed_exit_code: 127
    ERROR in ././build-steps.d/1200_create-debian-packages detected!
    ############################################################

Sorry for confusion, here is what you asked for:

HEAD detached at 60b6204
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git checkout – …” to discard changes in working directory)

deleted:    etc/apparmor.d/home.*.tor-browser_*.Browser.start-tor-browser

no changes added to commit (use “git add” and/or “git commit -a”)

ob7:

I fixed it by doing a git rm on the file git status was showing, then doing a git commit.

You can’t blindly delete random files. Takes too long to explain how to
fix. Start with a fresh source code folder. Delete the old one. Get a
new one.

Patrick,

I can’t reply to any more posts for 22 more hours! That’s a real progress breaker. Can you fix that? I had to make a second account to reply.

So after doing a new git clone:

git clone --recursive https://github.com/Whonix/Whonix

Unable to checkout ‘4c71c615b8b568a9e5598dc32ccdd51c2aee4541’ in submodule path ‘packages/whonix-setup-wizard’

Is that an issue?

ob72:

So after doing a new git clone:

git clone --recursive https://github.com/Whonix/Whonix

Unable to checkout ‘4c71c615b8b568a9e5598dc32ccdd51c2aee4541’ in submodule path ‘packages/whonix-setup-wizard’

Is that an issue?

Not one that breaks the build.

Fixed.

Still having the dpkg permission issue during build. It appears to still build though, 90,000 lines of output later.

Once I have the gateway booted. I can’t get an internet connection going. Is there a way to ping a website or will it always return nothing even if I have an internet connection on the gateway? When I do the whonixsetup, whonixcheck says tor.pid doesn’t exist. If I change the tor variable to 1 instead of 0 (including it being uncommented) it then does make a tor.pid file, but it still doesn’t connect to internet. Any advice on how to configure my network once the gateway boots? I would like to have the outside connection use my wifi card, so I can then connect the workstation via the ethernet port.

ob7:

Still having the dpkg permission issue during build.

There is no dpkg permissino issue. Ignore it as per ‘Expected Build
Warnings’.

Once I have the gateway booted. I can’t get an internet connection
going. Is there a way to ping a website or will it always return nothing
even if I have an internet connection on the gateway? When I do the
whonixsetup, whonixcheck says tor.pid doesn’t exist. If I change the
tor variable to 1 instead of 0 (including it being uncommented) it then
does make a tor.pid file, but it still doesn’t connect to internet. Any
advice on how to configure my network once the gateway boots? I would
like to have the outside connection use my wifi card, so I can then
connect the workstation via the ethernet port.

Ignore the Tor pid check failure. It’s just a follow up bug. whonixcheck
doesn’t check yet if networking is up. But if networking is not up
(check with ‘sudo ifconfig’), Tor will start to bind, Tor will fail to
start. So just get your network config right. Then reboot.

Thanks Patrick,

How will I know for sure if my network config is right? I’m using a wireless card as the iface for making connections to internet, so that ethernet can plug into the workstation. Can I ping a website and get a response to know if my networking is good? Or would this connection fail because of the hardened gateway?

Learn it outside of Whonix in plain Debian.

Ping won’t work, because Tor does not support UDP. Use whonixcheck.

Ok I will. Thanks Patrick.