Solomon Broadbent
Solomon Broadbent

Reputation: 303

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:

Upvotes: 7

Views: 5580

Answers (5)

Dave Cluderay
Dave Cluderay

Reputation: 7426

On my Mac, it was the following:

sudo mkdir /usr/local/bin/apps
sudo chown -R $(whoami) /usr/local/bin/apps

Upvotes: 1

aclowkay
aclowkay

Reputation: 3897

For mac users:

sudo chown -R user:group /usr/local/jetbrains-cli/

Upvotes: 1

Solomon Broadbent
Solomon Broadbent

Reputation: 303

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

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

Upvotes: 2

Ijas Ameenudeen
Ijas Ameenudeen

Reputation: 9259

After upgrading from Ubuntu 16.04 to 18.04, enountered the same issue. This worked for me,

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

Upvotes: 1

Tony Day
Tony Day

Reputation: 2170

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

Upvotes: 15

Related Questions