Curl installed via snap has a bug that prevents the NVM software from being installed correctly.
If you have installed curl using snap, please remove it by running "sudo snap remove curl".
If you need curl on your system, please install it via apt with "sudo apt install curl".