Skip to content

BUILD FAILED: Permission denied, Failed to open the file ruby-x.x.x.tar.gz. Kubuntu 24.04 #2556

Answered by ksimmi
ksimmi asked this question in Build failures
Discussion options

You must be logged in to vote

The issue turned out to be that curl was installed via Snap. Due to Snap's sandboxing restrictions, it didn’t have proper access to /tmp, which caused the write error (status 23). The solution was to remove the Snap version and install the native one using APT:

sudo snap remove curl  
sudo apt install curl

After switching to the APT version of curl, the ruby-build installation completed without any problems.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ksimmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant