nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.14k stars 1.84k forks source link

bug: Invalid link was tried when installing home-manager? #5903

Open sharpchen opened 1 month ago

sharpchen commented 1 month ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

I was trying to install home-manager with the following procedure:

Then the channels are:

$ nix-channel --list
home-manager https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz
nixpkgs https://nixos.org/channels/nixos-24.05
unstable https://nixos.org/channels/nixpkgs-unstable

While installing, it compiles a lot source files then finally encounter problem when fetching something?

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/zw2swgy58zm34ywy27nz6hqiq9z7sa41-28-cve-2022-0529-and-cve-2022-0530.patch.drv^*'

trying https://sources.debian.org/data/main/u/unzip/6.0-27/debian/patches/28-cve-2022-0529-and-cve-2022-0530.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   265    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) The requested URL returned error: 404

trying https://web.archive.org/web/20230106200319/https://sources.debian.org/data/main/u/unzip/6.0-27/debian/patches/28-cve-2022-0529-and-cve-2022-0530.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:14 --:--:--     0
curl: (28) Failed to connect to web.archive.org port 443 after 134048 ms: Couldn't connect to server
Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
  0     0    0     0    0     0      0      0 --:--:--  0:02:12 --:--:--     0
curl: (28) Failed to connect to web.archive.org port 443 after 132118 ms: Couldn't connect to server
Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
  0     0    0     0    0     0      0      0 --:--:--  0:02:11 --:--:--     0
curl: (28) Failed to connect to web.archive.org port 443 after 131116 ms: Couldn't connect to server
Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left.
  0     0    0     0    0     0      0      0 --:--:--  0:02:14 --:--:--     0
curl: (28) Failed to connect to web.archive.org port 443 after 134235 ms: Couldn't connect to server
error: cannot download 28-cve-2022-0529-and-cve-2022-0530.patch from any mirror

There's a 404 response returned for https://sources.debian.org/data/main/u/unzip/6.0-27/debian/patches/28-cve-2022-0529-and-cve-2022-0530.patch.

Also, I found 443 but I haven't figure out how to solve it, any idea would be appreciated.

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 5.15.153.1-microsoft-standard-WSL2, Arch Linux, noversion, rolling`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.7`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/home/sharpchen/.nix-defexpr/channels/nixpkgs`
jackwilsdon commented 1 month ago

It's expected that the sources.debian.org URL is down - the archive.org URL is supposed to supplement this: https://github.com/NixOS/nixpkgs/blob/a384cbf926c5d9b1b6798dea46465ec5f8ab6c84/pkgs/tools/archivers/unzip/default.nix#L54-L62

Are you still having this issue? The archive.org URL loads fine for me in a browser: https://web.archive.org/web/20230106200319/https://sources.debian.org/data/main/u/unzip/6.0-27/debian/patches/28-cve-2022-0529-and-cve-2022-0530.patch

sharpchen commented 1 month ago

I just tried again in a new wsl, turns out no problem. It seems it didn't download from nixos cache when I first encountered this issue so it compiles from a lot sources. I don't know how to reproduce this.