Search code examples
jetbrains-toolbox

JetBrains Toolbox error: Failed to prepare Directory. Unable to create version folder


Note:

I'm sure there is a better way of fixing this. I just thought I would put it out there to save someone some frustration.

I'm no expert, just trying to be helpful.

Problem:

When using JetBrains toolbox on an Ubuntu-based Linux distribution, the tool gives me an error:

Failed to prepare Directory. Unable to create version folder: /home/solomon/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/[a version number]

Details:

  • I've only come across it with Ubuntu-based Linux distributions.
  • Sometimes it doesn't happen when trying to install a new IDE after running the application as a super user.

Solution

  • I also just ran into this, and it turns out that the ~/.local/share/JetBrains/Toolbox was set to root ownership. I must have used sudo when running it originally.

    The following fixed it:

    sudo chown -R <username>:<username> ~/.local/share/JetBrains/Toolbox