[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Building Whonix from source errors

Hi,

I’m trying to compile Whonix from source, but I get a lot of errors. First, I get an error about something that my commits aren’t tagged. I fixed it by adding–allow-untagged true and --allow-uncommited true. Now I get an update error, not sure what is means. Ignoring the error leads to more errors which in the end leads to a failure of the build. I follow the guide step by step so I don’t understand why would this happen. I only changed the build version from 15.0.0.9.4-stable to 15.0.0.6.6-stable because according to git --no-pager tag, this is the latest stable version.

This is what I run:

sudo ./whonix_build --flavor whonix-gateway-cli --target qcow2 --repo true --allow-untagged true --allow-uncommitted true --build

(I need it for a KVM setup)

This is the first error:

last_failed_bash_command: $apt_get_update_wrapper_source_path_full ${APTGETOPT[@]} -o Dir::Etc::sourcelist="$whonix_build_sources_list_primary" -o Dir::Etc::sourceparts="-" update

Upper in the log I get:

E: The repository ‘http://HTTPS///deb.debian.org/debian buster InRelease’ is not signed.

I also skipped this step:

git checkout --recurse-submodules 15.0.0.9.4-stable

Because it says I have errors with my git submodules.

I’m following this tutorial https://www.whonix.org/wiki/Dev/Build_Documentation/15_full, which seems official.

Any help is appriciated, Thanks!

Sometimes I forget to create an identical copy of that git tag and rename to 15.0.0.9.4-stable. Created that tag now.

And also created an easier git clone command so you don’t have to deal with submodules folder changes. https://www.whonix.org/wiki/Dev/Build_Documentation/15_full slightly updated.

Don’t use.

Ok, thanks!

I stil get this error:
last_failed_bash_command: $apt_get_update_wrapper_source_path_full ${APTGETOPT[@]} -o Dir::Etc::sourcelist="$whonix_build_sources_list_primary" -o Dir::Etc::sourceparts="-" update
In this script:
ERROR in ././build-steps.d/1120_prepare-build-machine detected!
I think it is caused by this:
Err:2 _http://HTTPS///deb.debian.org/debian buster InRelease
Temporary failure resolving ‘HTTPS’
Why is there double Http? I guess this is the error?

UnlikelyDescription2 via Whonix Forum:

Err:2 _http://HTTPS///deb.debian.org/debian buster InRelease
Temporary failure resolving ‘HTTPS’

Is your internet conneciton fully functional wherever you’re building
inside VM or on host?

You cannot build on Whonix-Gateway.

Why is there double Http? I guess this is the error?

Not an error. apt-cacher-ng https syntax.

Yeah, internet is good. I tried it twice with the same error. Once on an Ubuntu 20.04 host, and once on a Debian 10 “buster” guest. Both times I had internet.

Gonna spend tomorrow trying to figure this out, any tips where and what to look for?

Must be build on Debian buster. Anything else is untested and unsupported.

  • Can’t just continue / skip any errors without reporting.
  • Full log required.
  • There must not be a locally (inside VM) running firewall that blocks apt-cacher-ng localhost 127.0.0.1 port 3142.

test apt-cacher-ng port reachablity

sudo apt update
sudo apt install apt-cacher-ng

curl --head http://127.0.0.1:3142

Expected output:

HTTP/1.1 406 Usage Information
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

Ok, it works fine!

I just misunderstood you and thought that

git clone --branch 15.0.0.9.4-stable --jobs=4 --recursive _https://github.com/Whonix/Whonix

was instead of:

git checkout --recurse-submodules 15.0.0.9.4-stable

but you need both of them apparently.

Now everything is good. Thanks!

Ok but now something else is weird, it shows my .qcow2 file is 101G, my VM was limited to 10G so this is impossible…

I guess this is not an error or something, just wierd, I used qemu-img -O to shrink it to 2.2G

UnlikelyDescription2 via Whonix Forum:

Ok but now something else is weird, it shows my .qcow2 file is 101G, my VM was limited to 10G so this is impossible…

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]