Skip to content

Instantly share code, notes, and snippets.

@masudcsesust04
Created January 22, 2018 12:32
Show Gist options
  • Save masudcsesust04/3c8ba2390fcd49e61851e92ea19907e2 to your computer and use it in GitHub Desktop.
Save masudcsesust04/3c8ba2390fcd49e61851e92ea19907e2 to your computer and use it in GitHub Desktop.
Fix sdk command not found after installing SDKMAN

Fix sdk command not found after installing SDKMAN.

You need to install following packages before installing sdkman:

sudo apt-get install unzip
sudo apt-get install zip
sudo apt-get install sed

Uninstall skdman if you installed already:

$ tar zcvf ~/sdkman-backup_$(date +%F-%kh%M).tar.gz -C ~/ .sdkman
$ rm -rf ~/.sdkman

Then reinstalled sdkman:

$ curl -s "https://get.sdkman.io" | bash

Next, open a new terminal or enter:

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

Lastly, run the following code snippet to ensure that installation succeeded:

$ sdk version
@richie115
Copy link

mine still says
$ sudo apt-get install unzip
-bash: sudo: command not found
can anyone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment