Can't install STM32CubeIDE on Linux? It's the license prompt, not you published: false
I was setting up STM32CubeIDE 2.3.0 on Ubuntu for my new STM32N6570-DK board. The installer kept quitting with: I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y] *** License NOT accepted. Not installing software. I typed y , but it still aborted. I tried a few times. Why it happens The installer shows a long license text, and I was pressing Enter to scroll through it. Those extra Enter presses get saved…
I recently encountered an issue while attempting to install STM32CubeIDE 2.3.0 on Ubuntu for my new STM32N6570-DK board. The installer consistently halted with a message stating, "I ACCEPT (y) / I DO NOT ACCEPT (N) [N/y]." Despite pressing the 'y' key, the installation process would abruptly terminate. After trying multiple times, I began to wonder what was causing this problem.
Upon further investigation, I discovered that the installer presents a lengthy license text, which could be overwhelming. I was inadvertently pressing the 'Enter' key multiple times to scroll through the license. These extra 'Enter' presses were being saved up and were inadvertently answering the [N/y] question before I could even type 'y'. As 'N' represents the default choice, the installation would cease before my intended 'y' was read. This was the root cause of the issue.
To resolve the problem, I found that running the installer with sudo privileges proved effective. By executing the command 'sudo ./stm32cubeide_-Lin-Deb-x86_64.sh', the package installer would install the .deb files to the /opt/st/ directory. When the license text began, I simply pressed 'q' once to bypass the license. Instead of scrolling through the text with 'Enter', I directly moved to the question.
Typing 'y' and pressing 'Enter' then allowed the installation to proceed without any issues. If a second license appeared (ST-LINK server/udev rules), I repeated the process: pressing 'q' and then 'y'.
Executing the installation in this manner ensured a smooth installation. However, if the problem persisted, I discovered an alternative method. The bundle could be unpacked, and the packages could be installed using apt: 'sudo ./stm32cubeide_ version -Lin-Deb-x86_64.sh --noexec --target ~/stm32cubeide_extract'. Then, navigating to the extracted folder with 'cd ~/stm32cubeide_extract' and running 'sudo apt install ./*.deb' installed the necessary packages.
Although this method still required accepting the ST license, it proved to be a viable solution when the initial approach failed.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.