Skip to main content
dungeonlords789
Associate III
March 10, 2022
Question

Upgrade CubeIDE 1.6.1 to 1.9 fails on Ubuntu 20.04

  • March 10, 2022
  • 1 reply
  • 3793 views

Before upgrade CubeIDE I make "sudo apt-get update && sudo apt-get upgrade -y"

CubeIDE says:

An error occurred while uninstalling

session context was:(profile=STM32CubeIDE, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.cdt_root 9.11.1.202006011430 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction).

Backup of file /opt/st/stm32cubeide_1.6.1/notice.html failed.

File that was copied to backup could not be deleted: /opt/st/stm32cubeide_1.6.1/notice.html

This topic has been closed for replies.

1 reply

Julien D
ST Employee
March 11, 2022

Hi @dungeonlords789​ ,

Actually STM32CubeIDE can't be upgraded with the native package manager on Linux (apt or yum). Means "sudo apt-get update && sudo apt-get upgrade -y" will upgrade every packages on your system but STM32CubeIDE and maybe few other tools.

Then may I ask you how do to invoke the software updater?

Because obviously you can't update STM32CubeIDE installed into /opt/ without having the 'write' permission on it. This path is normally owned by root.

If you launch STM32CubeIDE as a standard user you should get this kind of error:

0693W00000KcHZOQA3.pngIf you launch STM32CubeIDE as root (sudo), which is totally not advised, then you should be able to update. At least it has worked fine with my 1.6.1 installation few minutes ago...

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.