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

debian buster - multiuser install procedure fails due to proxy #2996

Open
markgalassi opened this issue Jul 18, 2019 · 2 comments
Open

debian buster - multiuser install procedure fails due to proxy #2996

markgalassi opened this issue Jul 18, 2019 · 2 comments
Labels

Comments

@markgalassi
Copy link

markgalassi commented Jul 18, 2019

I think you need "sudo -E" in your install scripts. I get this error when following your multiuser procedure:

$ sh <(curl https://nixos.org/nix/install) --daemon

eventually gives this:

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/hbhdjn5ik3byg642d1m11k3k3s0kn3py-nix-2.2.2/bin/nix-channel --update nixpkgs

to update the default channel in the default profile

warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Couldn't connect to server (7); retrying in 319 ms
warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Couldn't connect to server (7); retrying in 687 ms
warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Couldn't connect to server (7); retrying in 1365 ms
warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Couldn't connect to server (7); retrying in 2318 ms
error: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Couldn't connect to server (7)

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

If you can, open an issue at https://github.com/nixos/nix/issues

A workaround is to put this line into /etc/sudoers:

Defaults        env_reset
Defaults env_keep = "http_proxy HTTP_PROXY https_proxy HTTPS_PROXY ftp_proxy"

Some info about the system:

$ printenv | grep -i proxy
no_proxy=localhost,lanl.gov
https_proxy=http://proxyout.mydomain:8080
NO_PROXY=localhost,mydomain
HTTPS_PROXY=http://proxyout.mydomain:8080
HTTP_PROXY=http://proxyout.mydomain:8080
http_proxy=http://proxyout.mydomain:8080

$ uname -a
Linux rocketchat 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

@stale
Copy link

stale bot commented Feb 18, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Feb 18, 2021
@stale
Copy link

stale bot commented Apr 28, 2022

I closed this issue due to inactivity. → More info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants