This can be caused y one of three problems
- Not enough privilegies on the current directory
- Not enough space
- WSL configuration
List the current directory with ls -lah to see if "." (current directory) have your same user and write permissions.
Use df -h to see how many disk space is available.
..........
ovix@DESKTOP-Z790:~$ ls -lah
total 28K
drwxr-x--- 3 ovix ovix 4.0K Jun 28 12:52 .
drwxr-xr-x 3 root root 4.0K Jun 27 11:27 ..
-rw------- 1 ovix ovix 843 Jun 28 21:25 .bash_history
-rw-r--r-- 1 ovix ovix 220 Jun 27 11:27 .bash_logout
-rw-r--r-- 1 ovix ovix 3.7K Jun 27 11:27 .bashrc
-rw-r--r-- 1 ovix ovix 0 Jul 1 09:27 .motd_shown
-rw-r--r-- 1 ovix ovix 807 Jun 27 11:27 .profile
-rw-r--r-- 1 ovix ovix 0 Jun 27 11:28 .sudo_as_admin_successful
drwxr-xr-x 14 root root 4.0K Jun 28 11:59 keyhunt
ovix@DESKTOP-Z790:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 251G 1.6G 237G 1% /
none 48G 4.0K 48G 1% /mnt/wsl
tools 1.9T 731G 1.2T 40% /init
none 48G 0 48G 0% /run
none 48G 0 48G 0% /run/lock
none 48G 0 48G 0% /run/shm
none 48G 0 48G 0% /run/user
tmpfs 48G 0 48G 0% /sys/fs/cgroup
drivers 1.9T 731G 1.2T 40% /usr/lib/wsl/drivers
lib 1.9T 731G 1.2T 40% /usr/lib/wsl/lib
drvfs 1.9T 731G 1.2T 40% /mnt/c