Nix-shell command on WSL is throwing error

on WSL, nix-shell command (running inside …/plutus/ folder) is throwing below error.

building ‘/nix/store/jm4m95mrzjbsvd2ffh6bf83nhmxbi9xm-dummy-ghc-8.10.4.20210212.drv’…
building ‘/nix/store/2fxkcjm42kxbdkpyvv0cf29mcrf5lxlh-dot-cabal-hackage.haskell.org-at-2021-06-10T000000Z.drv’…
fdLock: invalid argument (Invalid argument)
builder for ‘/nix/store/2fxkcjm42kxbdkpyvv0cf29mcrf5lxlh-dot-cabal-hackage.haskell.org-at-2021-06-10T000000Z.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/k9cgc22kjl9l3c4rsjbp7zvdbklimbdr-Agda-plan-to-nix-pkgs.drv’: 1 dependencies couldn’t be built
cannot build derivation ‘/nix/store/1az775s1adci32g2351glcyvwlh9r8is-Agda-plan-to-nix-pkgs.drv’: 1 dependencies couldn’t be built
error: build of ‘/nix/store/1az775s1adci32g2351glcyvwlh9r8is-Agda-plan-to-nix-pkgs.drv’ failed

1 Like

I’m getting the same error. Would appreciate help on this thanks!

I solved it by upgrading to WSL 2.

If you type wsl -l -v in PowerShell while running your Ubuntu, you will see if you’re running version 1 or 2. If you’re running version 1, check this link on how to update: https://www.tenforums.com/tutorials/164301-how-update-wsl-wsl-2-windows-10-a.html

Please also note that after you’ve done everything in that guide, you must also reinstall Ubuntu.

Hope that helps!