Skip to main content
A424
Associate II
January 9, 2024
Question

how to uninstall STM32CubeProgrammer on Linux?

  • January 9, 2024
  • 5 replies
  • 6163 views

There is an uninstaller at ~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller/uninstaller.jar

But when I java -jar it, it just produce a log then exited, and nothing in the log actually mean anything useful.

I see there is a old post about the same issue, but it never got any further.

As a software product from an actual company, not provide a working uninstaller is unacceptable.

Please fix this or provide a workaround ST.

5 replies

InsignificantBit
ST Employee
January 12, 2024

Hello, there is a directory named uninstaller containing the uninstaller  in the STM32CubeProgrammer install directory ( /usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer by default ).

 

If your system doesn't automatically execute the java .jar program when opening it from a graphical file manager, you will need to start it using the following command (executed in the directory containing the uninstaller program):

 

 

$ sudo java -jar uninstaller.jar

 

 

Keep in mind, that you need to have Java runtime installed, eg. OpenJDK-JRE

A424
A424Author
Associate II
January 12, 2024

Please actually read the post before reply...

As I stated, I already tried invoke the uninstaller.jar, but it didn't do anything other than produce a log which contains nothing useful and no any error.

It's simply the uninstaller do not work

InsignificantBit
ST Employee
January 12, 2024

I apologize, I will try to investigate the issue further.

Can  you please link the other related threads that you have mentioned?

Pavel A.
Super User
January 14, 2024

PavelA_0-1705263545020.png

@A424 Have you used the magic word?

 

 

A424
A424Author
Associate II
January 17, 2024

the installer did not require root access, why the uninstaller needs it?

and the install folder is under my home folder, why it needs root perm. to uninstall?

I haven't try this since there is no any error in the log related to this, if something not work then run with sudo is also a bad bad idea

Explorer
November 24, 2024

Hi!
I am having the same issue, still not fixed in CubeProgammer 2.17.0.
Have you had any luck uninstalling it?

Thank you!

J.Christ
Associate II
June 16, 2025

I'm having the same issue with V2.13 and V2.19

 

 

Associate III
July 29, 2025

I too am having the same issues. I need to uninstall v2.18 to install v2.20 since the upgrade option does not work either. 

Can we have an answer to this please?

 

Associate III
July 29, 2025

Here is the contents of the log file generated when uninstaller.jar is run. Not very informative to me I am afraid!

 

xuraax@MyRoute:~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller$ cat /tmp/izpack14243443776489461469.log
2025-07-29T16:36:38.117 Phase 1: JarFile: /home/xuraax/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller/uninstaller.jar
2025-07-29T16:36:38.409 Phase 1: Extracted 1404 files into /tmp/izpack14243443776489461469.d
2025-07-29T16:36:38.444 Phase 1: Spawning phase 2:
/usr/lib/jvm/java-21-openjdk/bin/java
-classpath
/tmp/izpack14243443776489461469.d
-Dself.mod.base=/tmp/izpack14243443776489461469
-Dself.mod.jar=/home/xuraax/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller/uninstaller.jar
-Dself.mod.class=com.izforge.izpack.uninstaller.Uninstaller
-Dself.mod.method=uninstall
-Dself.mod.phase=2
com.izforge.izpack.util.SelfModifier
2025-07-29T16:36:38.446 Phase 1: Exit
2025-07-29T16:36:39.612 Phase 2: Spawning phase 3:
/usr/lib/jvm/java-21-openjdk/bin/java
-classpath
/tmp/izpack14243443776489461469.d
-Dself.mod.base=/tmp/izpack14243443776489461469
-Dself.mod.jar=/home/xuraax/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller/uninstaller.jar
-Dself.mod.class=com.izforge.izpack.uninstaller.Uninstaller
-Dself.mod.method=uninstall
-Dself.mod.phase=3
com.izforge.izpack.util.SelfModifier
2025-07-29T16:36:41.171 Phase 2: deleting sandbox
xuraax@MyRoute:~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/uninstaller$

Visitor II
November 7, 2025

Same issue for me. So I hard uninstall STM32CubeProgrammer by:
1. remove any related stm*.desktop files in ~/.locale/share/applications/
2. update the ~/.bashrc and ~/.profile by removing the export path line. `source ~/.profile` isn't enough I have to restart my session to update. Check `printenv` that it's gone.
3. delete the installation folder STM32CubeProgrammer/

that's it.