Skip to main content
akronmacon
Associate
February 2, 2020
Solved

What is the preferred method for completely uninstalling STM32CubeIDE in Linux (Ubuntu 18.04LTS)?

  • February 2, 2020
  • 6 replies
  • 6149 views

I am encountering breaking graphical problems with the configuration perspective and want to try a clean uninstall/reinstall to try to resolve it.

What is the preferred method for uninstalling STM32CubeIDE on Linux?

This topic has been closed for replies.
Best answer by Julien D

True, I'm only replying to the graphical problems point .

Not to the uninstall question for which I don't have more input than the usual dpkg -r st-stm32cubeide-x.x.x (+ possibly some other additional packages st-stlink-server st-stlink-udev-rules segger-jlink-udev-rules)

6 replies

Cartu38 OpenDev
Graduate II
February 2, 2020

Why not have try Windows > Perspectives > Reset perspective ?​

Julien D
ST Employee
February 3, 2020

Also make sure that you're not using Wayland as display server, xorg is recommended from STM32CubeIDE.

It can be configured on the login screen.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Ozone
Principal
February 3, 2020

Which does not sound as a de-install/re-install would improve or solve anything.

Julien D
Julien DAnswer
ST Employee
February 3, 2020

True, I'm only replying to the graphical problems point .

Not to the uninstall question for which I don't have more input than the usual dpkg -r st-stm32cubeide-x.x.x (+ possibly some other additional packages st-stlink-server st-stlink-udev-rules segger-jlink-udev-rules)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
akronmacon
Associate
February 7, 2020

Thank you for your help all. Sorry for the delayed response, I've been ill.

There appears to be some nuance to the solution:

I started seeing the problem using v1.1.0. When I uninstalled it (with dpkg), it left several folders with contents behind (like /opt/st I think) and others. I manually removed the ones I could find.

I reinstalled 1.1.0 and upgraded it from the program itself. I still had the problem, so I uninstalled it (dpkg) again.

I then installed v1.2.0, and had the same problems. It also had a weird screen pop up asking something about re-applying some kind of setting. This is when I posted asking for help. (sadly I didn't screen shot it at the time, and haven't seen it since.)

I installed 1.2.0 on a new VM, and it worked fine, suggesting it was indeed an incomplete uninstall causing problems.

I then later, on the original VM, uninstalled v1.2.0 (with dpkg), and observed that it seemed to do a better job cleaning up the package when it uninstalled. After reinstalling it again, the problem went away.

Additional Notes:

1) The problem was that the blue graphical menus around the chip view in the Device Configuration Tool failed to ever load, the program also became massively laggy.

2) Resetting the perspective did not help

3) I suspect some UI colour customization I played around with a while ago may have played into the problem.

Julien D
ST Employee
February 7, 2020

"I reinstalled 1.1.0 and upgraded it from the program itself."

AFAIK once installed with native packages such as deb or rpm the application cannot be updated anymore. 1.2.0 to 1.2.1 for example should fail at some step with a grayed screen complaining for insufficient permissions. No way to update unless playing with sudo (not really advised) or installing the new package from st.com.

"The problem was that the blue graphical menus around the chip view in the Device Configuration Tool failed to ever load."

Before trying to investigate this deeper, could you share your display server type, Wayland or Xorg, using those commands on both Ubuntu setup (workstation + VM):

$ loginctl (reports the session number; it is c2 with my session)
$ loginctl show-session c2 -p Type
Type=x11

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
akronmacon
Associate
February 7, 2020

For me it is:

Type=x11

Also, looking back at my command history, yes I did play with sudo after the problem was first encountered in order to try to upgrade.

Cartu38 OpenDev
Graduate II
February 7, 2020

According what you're sharing sounds you've got a try to customize color or ... Is issue may come from ? I've read on some other post some possible trouble if dark theme or ...

Then trying to found a solution:

+ Have you got a try to play with Windows > Preferences > STM32Cube > DeviceConfiguration Tool Font size option ?

+ Have you got a chance to remove your <user home>/.eclipse folder prior initiating new STM32CubeIDE session ?

Please share outcomes back

akronmacon
Associate
February 7, 2020

I was attempting to find a dark theme several weeks ago. Unfortunately I don't remember the details of what I did. I believe I was only altering built-in options.

I did not remove $HOME/.eclipse during the trouble shooting.

After the latest install the problem is now fixed, and I have not found a way to easily replicate it yet.

PFitz.1
Visitor II
September 13, 2021

I was able to remove STM32CubeIDE 1.7 using Synaptic package manager. I installed from the terminal using the downloaded st-stm32cubeide_1.7.0_10852_20210715_0634_amd64.deb_bundle.sh but the installed package was visible in the package lists in Synaptic. When Synaptic removed the application the directory /opt/st/stm32cubeide_1.7.0 vanished, as well.

MMARI.1
Senior II
December 20, 2022

sudo apt-get remove st-stm32cubeide_1.11.0_13638_20221122_1308_amd64.deb_bundle.sh st-stlink-udev-rules st-stlink-server

Reading package lists... Done

Building dependency tree    

Reading state information... Done

E: Unable to locate package st-stm32cubeide_1.11.0_13638_20221122_1308_amd64.deb_bundle.sh

E: Couldn't find any package by glob 'st-stm32cubeide_1.11.0_13638_20221122_1308_amd64.deb_bundle.sh'

E: Couldn't find any package by regex 'st-stm32cubeide_1.11.0_13638_20221122_1308_amd64.deb_bundle.sh'

i could not remove cube ide ... can you please suggest exact command

Julien D
ST Employee
December 20, 2022

You did most of the work by retrieving this topic but actually forgot to entirely read the "best answer". STM32CubeIDE being not installed through apt it can be uninstalled with it. Try with dpkg as suggested.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
MMARI.1
Senior II
December 20, 2022

hi justin .. you are correct ... i did dpkg and removed and installed again now working ..thanks