Skip to main content
MQi.1
Senior II
September 10, 2020
Solved

How to install STM32CubeIDE on Ubuntu?

  • September 10, 2020
  • 16 replies
  • 59501 views

I found links here:https://www.st.com/en/development-tools/stm32cubeide.html

but, it doesn't work.

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

Weird, I've been able to download the STM32CubeIDE Generic Linux Installer without troubles. This is actually my preferred one since it is the only installation procedure allowing self-update application. Other installation modes will stay on a fixed version. There are pros and cons to this depending on your needs.

The installation guide is under Resources / User Manuals / UM2563.

Once zip downloaded and extracted you get a .sh script file.

Make it executable (chmod +x ***.sh) and launch it from a terminal.

For Ubuntu, either:

sudo ./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle​.sh

or

./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64​.sh

The 2nd will ask you later to execute some install steps as sudo. This is required since STLink-Server, Udev rules for STLink/Jlink installation need to change some basic system settings.

HTH :)

16 replies

Julien D
ST Employee
September 10, 2020

Hi MQi.1,

What exactly won't work ?

Reading your post it could be many things: the installer download, the installation guide document download, the installer itself, the installed application, etc...

Please provide us with more details about, like the error message and/or the way that conducted to this error.

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.
MQi.1
MQi.1Author
Senior II
September 11, 2020

When I selected "STM32CubeIDE Generic Linux Installer", I could downloaded nothing.

Then I downloaded "STM32CubeIDE Debian Linux Installer", I got a zip file, and I could extract it, then how to do next?

I tried to double click it, it just said"loading ...sh", is that OK, or I should input some codes like "sudo ..."?

MQi.1
MQi.1Author
Senior II
September 11, 2020

I got this one:

st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle​.sh

How to do with it?

Is there a manual or tutorial for installing and running CubeIDE ON linux?

Julien D
Julien DBest answer
ST Employee
September 11, 2020

Weird, I've been able to download the STM32CubeIDE Generic Linux Installer without troubles. This is actually my preferred one since it is the only installation procedure allowing self-update application. Other installation modes will stay on a fixed version. There are pros and cons to this depending on your needs.

The installation guide is under Resources / User Manuals / UM2563.

Once zip downloaded and extracted you get a .sh script file.

Make it executable (chmod +x ***.sh) and launch it from a terminal.

For Ubuntu, either:

sudo ./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle​.sh

or

./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64​.sh

The 2nd will ask you later to execute some install steps as sudo. This is required since STLink-Server, Udev rules for STLink/Jlink installation need to change some basic system settings.

HTH :)

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.
MQi.1
MQi.1Author
Senior II
September 11, 2020

Did you installed "Generic Linux" or "Debian Linux Installer"?

Why here is "deb": sudo ./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle​.sh

Julien D
ST Employee
September 11, 2020

Quick answer is both.

"Debian Linux Installer" requires sudo on the command-line since calling the package manager (apt, dpkg) has to be done as admin.

STM32CubeIDE will be installed in /opt/st/, owned by root, and shared among all workstation users.

"Generic Linux" does not necessary requires sudo on the command-line. Don't use it to enable the self-update feature in STM32CubeIDE, this is how I usually install the tool.

STM32CubeIDE will be installed where you want, owned by you or root (sudo).

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.
MQi.1
MQi.1Author
Senior II
September 11, 2020

I downloaded and installed "Generic Linux", and got these:

0693W000003RR5sQAG.png

Julien D
ST Employee
September 11, 2020

I do not see the .sh script, are you sure that you're not trying to execute the extracted folder from the zip archive.

Try cd en.st-stm32cubeide_1.4.0_7511_20200720_0928_amd64_sh first and do the chmod command on the .sh file.

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.
MQi.1
MQi.1Author
Senior II
September 12, 2020

I could only download "STM32CubeIDE Generic Linux Installer", since when I downloaded "STM32CubeIDE Debian Linux Installer", it would also sent me a link, but when I clicked the link, it prompted:

0693W000003RTirQAG.png

MQi.1
MQi.1Author
Senior II
September 12, 2020

I deleted the directories, and downloaded again, unzip--> chmod +x --> sudo ...

it was the same:

0693W000003RTiwQAG.png

MQi.1
MQi.1Author
Senior II
September 12, 2020

There was some advance, I found that it was not "sudo ./st-stm32cubeide*", but "sudo sh ./st-stm32cubeide*"

at the end of the prompt in CLI, there were "I accept" and "I don't accept", but one should careful on clicking "Enter", otherwise you maybe slide over the option, and have to "arrow up --> Enter " and select again.

But it still prompt something missed, so I am still looking for solution.

MQi.1
MQi.1Author
Senior II
September 12, 2020

Now, it was ok.

0693W000003RTpxQAG.png

MQi.1
MQi.1Author
Senior II
September 12, 2020

I have to say, compared with installing experience of Simplicity Studio 5, the Linux edition of STM32CubeIDE still has some place for improvement.