cancel
Showing results for 
Search instead for 
Did you mean: 

Can install packages only as root (Ubuntu 22.04.1)

MMett
Associate III

I was able to successfully install and launch CubeMX. However, I cannot download the packages. In my case I need the STM32CubeG0 firmware packages. When I download it manually and select "From Local" I get "Failed to create temporary directory". In ~/STMCube/Repository write permissions are granted.

If I start CubeMX as root, then everything works. But I don't want to start CubeMX always as root. How do I fix this problem?

2 REPLIES 2
Aymen CHAKROUN
ST Employee

Hi @MMett​ ,

Can you try modifying your default repository FW path to a directory that you are sure to have full write permissions.

Below a screenshot of the CubeMX option allowing you browsing your FW repository.

Then, re-start MX and perform a new FW installation trial.

0693W00000QNTXJQA5.png 

Let me know your feedback.

Aymen.

redwil
Associate II

@Aymen CHAKROUN 

MMett actually asked about a Linux platform the screen shot you provided is for a Windows platform which is ok-ish if you think the path is actually a unix style path.

But the question remains where exactly the installer/updater is trying to create the temporary directory.

Notes:

I have the same problem trying to install from local zip/pack file

I ended up unzipping directly into the .../repository/ directory

It is a bit of a long process to install/update when the installation is on a networked drive