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?

1 REPLY 1
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.