I am getting errors like these:
The following packages have unmet dependencies: network-manager : Depends: libpam-systemd but it is not going to be installed Depends: policykit-1 but it is not going to be installed E: Unable to correct problems, you have held broken packages.
My build script looks like this:
This script is called first so I can set some stuff up as sudo user before calling the actual build script:
# Pre Fixups sudo mkdir -p /boot/grub2 sudo touch /boot/grub2/grub.cfg sudo mkdir -p /boot/grub sudo touch /boot/grub/grub.cfg sudo mkdir --parents --mode=g+rw "/tmp/uwt" # Whonix seems to re-install sysvinit even though there is a hold # on the package. Things seem to work anyway. BUT hopfully the # hold on grub* don't get removed sudo apt-mark hold sysvinit sudo apt-mark hold grub-pc grub-pc-bin grub-common grub2-common # Whonix expects haveged to be started sudo /etc/init.d/haveged start sudo ~/whonix_build_post $@
Then this is called (whonix_build_post)
#!/bin/bash -e # vim: set ts=4 sw=4 sts=4 et : export WHONIX_BUILD_UNATTENDED_PKG_INSTALL="1" # Whonix 11 Hacks (stretch does not exist) export whonix_build_apt_newer_release_codename="jessie" # Make sure we clear Qubes overrides of these vars #export GENMKFILE_INCLUDE_FILE_MAIN= #export GENMKFILE_BOOTSTRAP= # Prevents Whonix makefile use of shared memory 'sem_open: Permission denied' echo tmpfs /dev/shm tmpfs defaults 0 0 >> /etc/fstab mount /dev/shm # --freshness current \ pushd /home/user/Whonix /home/user/Whonix/whonix_build \ --flavor $1 \ -- \ --build \ --arch amd64 \ --kernel linux-image-amd64 \ --headers linux-headers-amd64 \ --target root \ --report minimal \ --verifiable minimal \ --allow-uncommitted true \ --sanity-tests false || { exit 1; } popd