Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.
like image 751
Solomon Broadbent Avatar asked Apr 16 '17 02:04

Solomon Broadbent


People also ask

How do I change the location of my Jetbrain toolbox?

Go to the Toolbox App settings (choose Settings under the locknut icon in the upper right-hand corner of the main Toolbox App screen), scroll down to the Tools section and change the Tools install location field. How do I open a GitHub, GitLab, or BitBucket project in a JetBrains IDE?

Where is JetBrains located in Windows 10?

Windows: %LOCALAPPDATA%\JetBrains\Toolbox\apps. macOS: ~/Library/Application Support/JetBrains/Toolbox/apps. Linux: ~/. local/share/JetBrains/Toolbox/apps.

Is JetBrains Toolbox Free?

It offers free community versions of our popular Python and Java integrated development environments. It provides tools for learning Python, Java, and Kotlin, designed by professional developers.


2 Answers

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

like image 76
Tony Day Avatar answered Jun 06 '23 13:06

Tony Day


Can fix by adding read and write priveleges to the directory where it's installed:

sudo chmod -R 777 /home/[username]/.local/share/JetBrains

like image 25
Solomon Broadbent Avatar answered Jun 06 '23 14:06

Solomon Broadbent