Error while using `Pkg.instantiate()`

I ran these commands:
import Pkg
Pkg.instantiate()
Got some warnings and precompiling got stuck
julia> import Pkg; Pkg.instantiate()
┌ Warning: attempting to remove probably stale pidfile
│ path = "/home/devansh/.julia/compiled/v1.10/JLD2/O1EyT_vnlyu.ji.pidfile"
└@FileWatching.Pidfile/snap/julia/95/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:244

How did you install Julia?

The only methods we directly support are those mentioned on Download Julia . It seems like you may be using a SNAP package from somewhere.

Yeah, you are right. I just checked I have a snap folder in my WSL directory. So now should uninstall julia and then reinstalled using MS store?
But will it work with my WSL setup?

The Linux instructions are to run the following.

curl -fsSL https://install.julialang.org | sh