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

[nvidia] : 404 error while installing nvidia driver #25721

Closed
wizzup opened this issue May 12, 2017 · 10 comments
Closed

[nvidia] : 404 error while installing nvidia driver #25721

wizzup opened this issue May 12, 2017 · 10 comments

Comments

@wizzup
Copy link
Contributor

wizzup commented May 12, 2017

Issue description

Steps to reproduce

  • add following line to /etc/nixos/configuration.nix

    services.xserver.videoDrivers = [ "nvidia" ];

Technical details

  • System: NixOS: 17.09pre107265.0afb6d789c (Hummingbird)
  • Nix version: nix-env (Nix) 1.11.9
  • Nixpkgs version: "17.09pre107265.0afb6d789c"
  • Sandboxing enabled: build-use-sandbox = false

Error log (partial)

building path(s) ‘/nix/store/r580h44jw2vlxf8yhbailq59pdqa09rd-nvidia’

trying https://git.archlinux.org/svntogit/packages.git/plain/trunk/kernel_4.10.patch?h=packages/nvidia
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 
error: cannot download nvidia from any mirror
@bugworm
Copy link
Contributor

bugworm commented May 12, 2017

#25702 Kinda fixed, but it's not. I have the same issue as before on 17.03.1123.4a7a03913d (Gorilla)

@MP2E
Copy link

MP2E commented May 12, 2017

The commit you specified is before the fix was added, please update to the latest master

@vcunat vcunat closed this as completed in 165a654 May 12, 2017
vcunat added a commit that referenced this issue May 12, 2017
Using fixed-commit URLs and fetchpatch is just more robust.

(cherry picked from commit 165a654)
@wizzup
Copy link
Contributor Author

wizzup commented May 12, 2017

@MP2E , @vcunat : How can I use the latest? Building with --upgrade doesn't solved the problem.

[root@earth:~]# nix-channel --list
nixos https://nixos.org/channels/nixos-unstable

[root@earth:~]# nixos-rebuild build --upgrade
downloading Nix expressions from ‘https://d3g5gsiof5omrk.cloudfront.net/nixos/unstable/nixos-17.09pre107265.0afb6d789c/nixexprs.tar.xz’...
downloading ‘https://d3g5gsiof5omrk.cloudfront.net/nixos/unstable/nixos-17.09pre107265.0afb6d789c/nixexprs.tar.xz’... [7487/9485 KiB, 1475.6 KiB/s]
unpacking channels...
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/yvsly9idn2zhs99m4v80rmpknik42gcm-nvidia.drv
  /nix/store/8c19p635f80b5jxvz1nb2xjf7x4s74q8-nvidia-x11-375.39-4.9.27.drv
  /nix/store/ypfkz02258cwa81kg9ldp1d5lm5rrvh0-xserver.conf.drv
  /nix/store/b6nxvh1bvgy9si6v1p1imihzr7m9zjqn-xserver-wrapper.drv
  /nix/store/1msl2r65vkld9dkip0rsfl2ajd0yp41a-sddm.conf.drv
  /nix/store/8wj9hq5r3pdldlk5rkp5j6h1qfl26pwa-nvidia-persistenced-375.39.drv
  /nix/store/pk3yc9grcn2b1yns61q10l58fyk6dwk9-nvidia-settings-375.39.drv
  /nix/store/6jb6vvrwdp667j2k7jri2m2ifccwvwid-system-path.drv
  /nix/store/610irpmgz7xwq7cax713g6yjhm2kxc1p-dbus-1.drv
  /nix/store/1xngplvw8a67bi2z65n4jbpkzc1hndcn-unit-dbus.service.drv
  /nix/store/39b1j35pcbz0yw8b58ngwmb59w1nr7y0-unit-display-manager.service.drv
  /nix/store/fy8yb77kivs0bncfcr72fg87960dxg8c-unit-polkit.service.drv
  /nix/store/z2h41y3ivymppsvpg2z5lqhq2dhxjnj2-unit-systemd-fsck-.service.drv
  /nix/store/hnn1mw8hc98v6gfc3zl4kwwbizb878mj-system-units.drv
  /nix/store/kxk4a45fwd125lzggw2iskzdil6ggm5d-user-units.drv
  /nix/store/5qwl4kn6wdrq3g1bbsbfsjn7p4vs80xh-etc.drv
  /nix/store/ywn9wnfspswkq0ngi48lxm61y2f0fn6a-nvidia-libs.drv
  /nix/store/hnplrz2zhjf9wv1akq52lqildiwzc6fk-opengl-drivers.drv
  /nix/store/kn0vbxm69wxx67k9312gz04i6kj6ac5c-kernel-modules.drv
  /nix/store/mjzpkhqayy3cry4bnjx5kdsm71adhqh8-kernel-modules-shrunk.drv
  /nix/store/ja7k2kwb58dj5idyqvx6aaspq1p5jl08-stage-1-init.sh.drv
  /nix/store/niqf82r1zpds82mdrns2d9pai7clgpd1-initrd.drv
  /nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth-17.09pre107265.0afb6d789c.drv
building path(s) ‘/nix/store/r580h44jw2vlxf8yhbailq59pdqa09rd-nvidia’

trying https://git.archlinux.org/svntogit/packages.git/plain/trunk/kernel_4.10.patch?h=packages/nvidia
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (22) The requested URL returned error: 404 
error: cannot download nvidia from any mirror
builder for ‘/nix/store/yvsly9idn2zhs99m4v80rmpknik42gcm-nvidia.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/8c19p635f80b5jxvz1nb2xjf7x4s74q8-nvidia-x11-375.39-4.9.27.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/kn0vbxm69wxx67k9312gz04i6kj6ac5c-kernel-modules.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/ywn9wnfspswkq0ngi48lxm61y2f0fn6a-nvidia-libs.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/8wj9hq5r3pdldlk5rkp5j6h1qfl26pwa-nvidia-persistenced-375.39.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/pk3yc9grcn2b1yns61q10l58fyk6dwk9-nvidia-settings-375.39.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/39b1j35pcbz0yw8b58ngwmb59w1nr7y0-unit-display-manager.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/ypfkz02258cwa81kg9ldp1d5lm5rrvh0-xserver.conf.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/mjzpkhqayy3cry4bnjx5kdsm71adhqh8-kernel-modules-shrunk.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/hnplrz2zhjf9wv1akq52lqildiwzc6fk-opengl-drivers.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/6jb6vvrwdp667j2k7jri2m2ifccwvwid-system-path.drv’: 3 dependencies couldn't be built
cannot build derivation ‘/nix/store/b6nxvh1bvgy9si6v1p1imihzr7m9zjqn-xserver-wrapper.drv’: 2 dependencies couldn't be built
cannot build derivation ‘/nix/store/610irpmgz7xwq7cax713g6yjhm2kxc1p-dbus-1.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/1msl2r65vkld9dkip0rsfl2ajd0yp41a-sddm.conf.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/ja7k2kwb58dj5idyqvx6aaspq1p5jl08-stage-1-init.sh.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/fy8yb77kivs0bncfcr72fg87960dxg8c-unit-polkit.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/z2h41y3ivymppsvpg2z5lqhq2dhxjnj2-unit-systemd-fsck-.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/niqf82r1zpds82mdrns2d9pai7clgpd1-initrd.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/1xngplvw8a67bi2z65n4jbpkzc1hndcn-unit-dbus.service.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/hnn1mw8hc98v6gfc3zl4kwwbizb878mj-system-units.drv’: 4 dependencies couldn't be built
cannot build derivation ‘/nix/store/kxk4a45fwd125lzggw2iskzdil6ggm5d-user-units.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/5qwl4kn6wdrq3g1bbsbfsjn7p4vs80xh-etc.drv’: 5 dependencies couldn't be built
cannot build derivation ‘/nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth-17.09pre107265.0afb6d789c.drv’: 5 dependencies couldn't be built
error: build of ‘/nix/store/ji06jn95w7pr5h3f7nprjkwnwgklnqac-nixos-system-earth-17.09pre107265.0afb6d789c.drv’ failed

@vcunat
Copy link
Member

vcunat commented May 12, 2017

@wizzup: that's a version before the fixes were applied. You can read about how channels work on http://howoldis.herokuapp.com/

@vcunat
Copy link
Member

vcunat commented May 12, 2017

I think this should be now OK, including the legacy_340 driver and release-17.03.

@liamwigney
Copy link

So how do you get the version after the fixes? It's still not fixed on nixos https://nixos.org/channels/nixos-unstable and the link you sent doesn't explain how to get a newer commit than that builds.

@vcunat
Copy link
Member

vcunat commented May 15, 2017

@liamwigney: get the nixpkgs tree you want, e.g. via git clone, and then add -I nixpkgs=path/to/your/nixpkgs/tree to nixos-rebuild. That way you can control exactly which version you build.

@wizzup
Copy link
Contributor Author

wizzup commented May 15, 2017

@vcunat nixos-rebuild documentation on -I option is missing, you might want to fix that too.

@vcunat
Copy link
Member

vcunat commented May 15, 2017

I suppose there might be a list of options that's passed-through to nix-build, instead of documenting everything multiple times. I don't know.

@wizzup
Copy link
Contributor Author

wizzup commented May 15, 2017

nix-env and nix-build have it

$ nix-build --help | grep "\-I "
                 [-k] [--keep-failed] [-K] [--fallback] [--readonly-mode] [--log-type type] [--show-trace] [-I path] [--option name value]
       -I path
           Paths added through -I take precedence over NIX_PATH.
           The search path can be extended using the -I option, which takes precedence over NIX_PATH.

$ nix-env --help | grep "\-I "
               [--keep-failed] [-K] [--fallback] [--readonly-mode] [--log-type type] [--show-trace] [-I path] [--option name value]
       -I path
           Paths added through -I take precedence over NIX_PATH.
           The search path can be extended using the -I option, which takes precedence over NIX_PATH.

$ nixos-rebuild --help | grep "\-I "
               $ nixos-rebuild switch -p test -I nixos-config=./test.nix

adrianpk added a commit to adrianpk/nixpkgs that referenced this issue May 31, 2024
Using fixed-commit URLs and fetchpatch is just more robust.

(cherry picked from commit 165a654)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants