sdkman - cannot install java on Ubuntu - permission denied
Solution 1:
I had the same problem when I installed curl using snap.
On stackoverflow I found help :) https://stackoverflow.com/questions/67541374/nvm-getting-permission-denied-with-nvm-install-command
sudo snap remove curl
sudo apt-get install curl
After this and restarted bash session sdkman work fine
Installing: java 11.0.11-open
Done installing!