Problem with kernel-source repo

I was trying to install kernel-source using the command from https://software.opensuse.org/download.html?project=openSUSE%3ALeap%3A42.1%3AUpdate&package=kernel-source

However, on running

zypper addrepo http://download.opensuse.org/repositories/openSUSE:Leap:42.1:Update/ports/openSUSE:Leap:42.1:Update.repo

i get

File '/repositories/openSUSE:Leap:42.1:Update/ports/openSUSE:Leap:42.1:Update.repo' not found on medium 'http://download.opensuse.org/'                                     

**Abort, retry, ignore? [a/r/i/? shows all options] (a):**

retrying multiple times doesn’t help. Is there a work around to this? Is there another way i can get kernel-source?

Hi
The update repo is already added, either via YasT software management, search on kernel-source and select the versions tab, else via command line and;


zypper in kernel-source

Also,
Be aware that kernel source is required only for modifying the kernel itself.

If you’re building kernel modules, you only need the kernel headers, ie kernel-devel instead of kernel-source.

TSU