Bug 499863

Summary: "Can't mkdir parents" error when using org.kde.Sdk 6.8
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Nicolás Ortega <nicolas>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolás Ortega 2025-02-12 08:42:01 UTC
SUMMARY
When trying to build a Flatpak with org.kde.Sdk v6.8 (specifically) or even simply running a shell from within the SDK (with `flatpak run --devel --command=sh org.kde.Sdk` and then selecting the 6.8 branch) an error occurs immediately saying that bwrap cannot create a directory and then it exits back to the shell.

STEPS TO REPRODUCE
1. Install org.kde.Sdk on branch 6.8
2. Run `flatpak run --devel --command=sh org.kde.Sdk`
3. [If you have multiple versions of the Sdk installed it will ask which, choose 6.8.]

OBSERVED RESULT
```
bwrap: Can't mkdir parents for /usr/lib/debug/usr/lib/i386-linux-gnu: Read-only file system
error: ldconfig failed, exit status 256
```

EXPECTED RESULT
A shell within the Sdk sandbox.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro (stable)
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
Flatpak version: 1.16.0
Flatpak builder version: 1.4.4
Comment 1 Nicolás Ortega 2025-02-13 09:23:21 UTC
While doing further research I found that this may be related to accidentally installing the SDK with sudo or root. I don't think that's what I did, but I decided to reinstall anyways, and now it works just fine. I'm closing the issue as "not a bug" since it's probably an issue on my end of how I was installing/running the flatpak.