Hello !
I am trying to build whonix on a Cubietruck to allow my gateway to be physically isolated.
It runs Wheezy armf.
So far it has been easy, I had not to change a lot of things.
The only file I edited was grml_packages, I had to delete grub-pc as the CB does not use grub.
Anyway, here is the command I used to start the build :
./whonix_build --terminal-only --no-default-applications --enable-whonix-apt-repository --whonix-apt-repository-distribution wheezy --minimal-report --skip-verifiable --skip-sanity-tests --tor-gateway --install-to-root --build >> log_build_whonix 2>&1
The build starts, and continues well until I have a git error stating that my log file 'log_build_whonix ’ has been modified, etc etc…
That does not sound like a fatal error to me, so I decided to ignore it and continue.
The building process continues…fine, until this error pops up :
[...]
'
+ shopt -s globstar dotglob
+ touch -t 201308151102.35 ./debian
+ touch -t 201308151102.35 ./debian/ ./debian/changelog ./debian/compat ./debian/control ./debian/copyright ./debian/gain-root-command ./debian/rules ./debian/source ./debian/source/format ./debian/watch
+ shopt -u globstar dotglob
+ rm --force ../anon-apt-sources-list_0.5.orig.tar.gz
+ gzip -n
+ git archive --format=tar HEAD --prefix=anon-apt-sources-list-0.5/
+ ls -la ../anon-apt-sources-list_0.5.orig.tar.gz
-rw-r--r-- 1 user user 19149 Oct 4 12:51 ../anon-apt-sources-list_0.5.orig.tar.gz
+ '[' '--info --display-info --fail-on-warnings' = '' ']'
+ debuild --no-lintian --rootcmd=/home/user/Whonix/packages/anon-apt-sources-list/debian/gain-root-command -sa -us -uc
dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied
dpkg-buildpackage -r/home/user/Whonix/packages/anon-apt-sources-list/debian/gain-root-command -D -us -uc -sa
dpkg-buildpackage: source package anon-apt-sources-list
dpkg-buildpackage: source version 3:0.5-1
dpkg-buildpackage: source changed by Patrick Schleizer <adrelanos@riseup.net>
dpkg: warning: failed to open configuration file '/root/.dpkg.cfg' for reading: Permission denied
dpkg-source --before-build anon-apt-sources-list
dpkg-buildpackage: host architecture armhf
/home/user/Whonix/packages/anon-apt-sources-list/debian/gain-root-command debian/rules clean
/usr/bin/faketime: 102: exec: fakeroot: not found
dpkg-buildpackage: error: /home/user/Whonix/packages/anon-apt-sources-list/debian/gain-root-command debian/rules clean gave error exit status 127
debuild: fatal error at line 1357:
dpkg-buildpackage -r/home/user/Whonix/packages/anon-apt-sources-list/debian/gain-root-command -D -us -uc -sa failed
make: *** [deb-pkg] Error 25
++ error_handler_general
++ error_handler_shared
++ last_exit_code=2
++ last_bash_command='sudo -E -u "$user_name" make deb-pkg'
++ '[' test -o xtrace = 0 ']'
++ set +x
ERROR in pre detected!
Please have a look above "error_handler_general", note the command that failed, its output and last_exit_code.
[...]
Looks like an error from gain-root-command, but Im not sure what causes it.
NB: For the record, here is the git error :
+ true 'INFO: End of: /home/user/Whonix/help-steps/cleanup-files No error detected. (benchmark: 00:02:29)'
+ true './build-steps.d/1200_create-debian-packages INFO: Cleaned old packages. '
+ check_for_uncommited_changes
+ trap error_handler_general ERR INT TERM
++ git status --porcelain
+ '[' -n ' M log_build_whonix' ']'
+ true './build-steps.d/1200_create-debian-packages ERROR: Git reports uncommitted changes! '
+ true './build-steps.d/1200_create-debian-packages INFO: Running "git status" for your convenience. '
+ git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: log_build_whonix
#
no changes added to commit (use "git add" and/or "git commit -a")
+ true './build-steps.d/1200_create-debian-packages INFO: Running git "clean -d --force --force --dry-run" for your convenience. '
+ git clean -d --force --force --dry-run
+ true './build-steps.d/1200_create-debian-packages 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'
+ error 'Uncommitted changes! See above!'
./build-steps.d/1200_create-debian-packages: line 131: error: command not found
++ error_handler_general
++ error_handler_shared
++ last_exit_code=127
++ last_bash_command='error "Uncommitted changes! See above!"'
++ '[' test -o xtrace = 0 ']'
++ set +x
ERROR in pre detected!
Please have a look above "error_handler_general", note the command that failed, its output and last_exit_code.
- Please enter c and press enter to ignore the error and continue building. (Recommended against!)
- Please press s and enter to open an chroot interactive shell.
- Please press enter to cleanup and exit. ++ '[' false = true ']'
+++ caller
++ last_caller='128 pre'
++ last_script=pre
++ error_handler_exit
++ '[' false = true ']'
++ abort_or_continue=Aborted
++ rm --force /etc/apt/sources.list.d/whonix_temp.list
++ rm --force /var/run/package_manager_lock
++ true '
############################################################
ERROR in pre detected! Aborted!
(benchmark: 00:02:33)
BASH_COMMAND: error "Uncommitted changes! See above!"
last_exit_code: 127
caller: 128 pre
ERROR in pre! Aborted!
############################################################
Any help would be much appreciated.
Thanks !
Edit: I am building Whonix 9