Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build Whonix-gateway template #4957

Closed
awokd opened this issue Apr 7, 2019 · 4 comments
Closed

Can't build Whonix-gateway template #4957

awokd opened this issue Apr 7, 2019 · 4 comments
Labels
C: builder Qubes Builder C: Whonix This issue impacts Qubes-Whonix P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.

Comments

@awokd
Copy link

awokd commented Apr 7, 2019

Qubes OS version
R4.0

Affected component(s) or functionality
qubes-template-whonix

Brief summary
Build failure.

-> Building template stretch (logfile: build-logs/template-stretch.log)...
make: *** [Makefile:312: template-local-stretch+whonix-gateway+minimal+no-recommends] Error 1

To Reproduce
Follow https://www.qubes-os.org/doc/qubes-iso-building/ or https://www.qubes-os.org/doc/building-whonix-template/.

Expected behavior
Shiny new Whonix templates.

Actual behavior
From template-stretch.log:

Recommended packages:
  tor
The following NEW packages will be installed:
  apt-transport-tor
[...snip...]
Get:2 file:/tmp/qubes_repo stretch Release [342 B]
Err:3 tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion stretch-proposed-updates InRelease
  Could not connect to localhost:9050 (127.0.0.1). - connect (111: Connection refused) [IP: 127.0.0.1 9050]
Get:2 file:/tmp/qubes_repo stretch Release [342 B]
Get:4 file:/tmp/qubes_repo stretch Release.gpg
Ign:4 file:/tmp/qubes_repo stretch Release.gpg
Get:5 file:/tmp/qubes_repo stretch/main amd64 Packages [19.4 kB]
Hit:6 https://deb.qubes-os.org/r4.0/vm stretch InRelease
[...snip...]
W: Failed to fetch tor+http://deb.dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/dists/stretch-proposed-updates/InRelease  Could not connect to localhost:9050 (127.0.0.1). - connect (111: Connection refused) [IP: 127.0.0.1 9050]
W: Some index files failed to download. They have been ignored, or old ones used instead.
[...snip...]
E: Unable to locate package qubes-whonix-gateway
Removing 'local diversion of /sbin/initctl to /sbin/initctl.distrib'
make[1]: *** [Makefile:64: rootimg-build] Error 100

Additional context
marmarek/qubes-template-whonix@5f6fef1

Solutions you've tried
Reverting above commit fixes it. I also tried installing tor and torsocks before apt-transport-tor since we're in no-recommends mode, but I was still getting Could not connect to localhost:9050 (127.0.0.1). - connect (111: Connection refused) [IP: 127.0.0.1 9050]. Maybe tor needs to be running and/or configured first if we want to use an .onion there?

@awokd awokd added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug labels Apr 7, 2019
@andrewdavidwong andrewdavidwong added C: builder Qubes Builder C: Whonix This issue impacts Qubes-Whonix labels Apr 8, 2019
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone Apr 8, 2019
@adrelanos
Copy link
Member

I guess it's best I revert this.

Not easy to onionize the Debian template (which Whonix templates are based on) anyhow?

@awokd
Copy link
Author

awokd commented May 10, 2019

I guess it's best I revert this.

Not easy to onionize the Debian template (which Whonix templates are based on) anyhow?

It might be my misunderstanding: are Whonix templates supposed to be built in an environment that already has Tor functional? Not sure which localhost it's referring to from inside a chroot. Otherwise, it's a bit of a chicken and egg scenario.

@adrelanos
Copy link
Member

adrelanos commented May 11, 2019 via email

@adrelanos
Copy link
Member

Whonix 15 templates do build. See also:

#5108 (comment)

Won't fix for Whonix 14.

Therefore please close.
If not building, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: builder Qubes Builder C: Whonix This issue impacts Qubes-Whonix P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.
Projects
None yet
Development

No branches or pull requests

3 participants