arduino m0 troubles with installation

SO i have a code to transfer to a m0 but I don't have the driver for it.
but when I click on "install the package for arduino M0" it just makes an error like "Error during the dwonload of https://downloads.arduino.cc/packages/package_index.json"
with

java.lang.RuntimeException: java.lang.Exception: Error during the dwonload of https://downloads.arduino.cc/packages/package_index.json
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
at java.lang.Thread.run(Thread.java:748)
Caused by: Error during the dwonload of https://downloads.arduino.cc/packages/package_index.json
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:139)
at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:333)
at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:307)
at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:285)
at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:146)
... 1 more
Caused by: java.nio.file.FileSystemException: C:\Users\darks\AppData\Local\Arduino15\package_index.json.tmp: The process can't go to the file beacause this file is used by another process

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1126)
at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:156)
at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:132)
at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:137)
... 5 more

I think the answer is in "The process can't go to the file beacause this file is used by another process" but I don't have any other arduino IDE opened
also i can't find the drivers anywhere on the internet so any help ?

You could try turning off your antivirus or similar as it looks close to an issue that would be caused by that.
Only until you try get the packages though.

If it works then add the Arduino locations to your security exclusions.