Installing nvidia drivers

I am having trouble installing nvidia drivers on leap 42.1

I am trying to install it through YaST but I keep getting this error

Cannot access installation media
http://download.nvidia.com/opensuse/leap/42.1
(Medium 1).
Check whether the server is accessible

It does it when I go through the online one click thing (think they are the same thing)

Why can it not find it? Is it me?

Either way, how can I get a nvidia driver on here.

remove or change that repo to point to this ftp server
ftp://download.nvidia.com/opensuse/leap/42.1/
I usually install with zypper like this

zypper ar -f ftp://download.nvidia.com/opensuse/leap/42.1/ nvidia
zypper in x11-video-nvidiaG03

depending on your graphic card you might need G02 or G04 driver you can check what driver you need on nvidia’s site, G02 is for older pre hundreds cards, G03 is generic and works with most cards, G04 is for the latest 6xx and above (this is my speculation I’ve used G03 for years on an older 240)
just note that if you have an optimus laptop (intel+nvidia) you can not use the regular drivers you need bumblebee

The first part works, but the second commands throws this at me

ben@linux-2re9:~> sudo zypper in x11-video-nvidiaG03
Retrieving repository 'nvidia' metadata ------------------------------------------------------------------\]
Signature verification failed for file 'repomd.xml' from repository 'nvidia'.
Warning: This might be caused by a malicious change in the file!
Continuing might be risky. Continue anyway? [yes/no] (no): yes
File './repodata/5b03c21067c04ad01bfbf71648b171192d49e587ee11e7f4057716abb22da3c2-primary.xml.gz' not found on medium 'ftp://download.nvidia.com/opensuse/leap/42.1/'

Abort, retry, ignore? [a/r/i/? shows all options] (a): r
File './repodata/5b03c21067c04ad01bfbf71648b171192d49e587ee11e7f4057716abb22da3c2-primary.xml.gz' not found on medium 'ftp://download.nvidia.com/opensuse/leap/42.1/'

Please wait a day or two.

There have been changes to the nvidia repo, it will take a while until it is in a consistent state again.

See also: http://lists.opensuse.org/opensuse-bugs/2016-01/msg03176.html
and http://lists.opensuse.org/opensuse-bugs/2016-01/msg03178.html
(or the last comments in the bugreport itself)

as far as I can tell the drivers are still there and that’s more of an informative error about missing pgp keys, personally I do believe you can safely ignore that error because if nvidia’s ftp was really hacked it would make world news those packages are safe.
so you should not chose retry r but ignore i

I think that won’t help, it rather seems the repo metadata is wrong/outdated.

That has happened before a few times already, when nvidia updated the driver.
They seem to forget to update the repo metadata too, or are just slow at it sometimes.

I remember, but it wouldn’t hurt to try, if it’s reported in bugzilla it should be fixed soon.

Yes.

An option now would also be to download the rpm files with a web browser or ftp client and install them manually.
But it would be easier to just wait, if it’s not really urgent.

A heads-up:
The repo should be fixed meanwhile, according to http://lists.opensuse.org/opensuse-bugs/2016-01/msg03349.html.

So try again and it should work.

Btw, it should suffice to run “sudo zypper inr” (INstall Recommends). zypper should automatically pick the correct driver then.