DEV Community

Cover image for Can't install STM32CubeIDE on Linux? It's the license prompt, not you published: false
ABDUL SATTAR
ABDUL SATTAR

Posted on

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.
Enter fullscreen mode Exit fullscreen mode

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 up. When the [N/y] question appears, a leftover Enter answers it first. The capital N means "No" is the default, so the install stops before your y is read.

The fix

  1. Run the installer with sudo. It installs .deb packages to /opt/st/:

    sudo ./stm32cubeide_-Lin-Deb-x86_64.sh

  2. When the license text starts, press q once. Don't scroll with Enter. This jumps straight to the question.

  3. Type y and press Enter.

  4. If a second license shows up (ST-LINK server / udev rules), do the same: q, then y.

That's it. It installs fine.

If it still fails

You can unpack the bundle and install the packages with apt:

sudo ./stm32cubeide_<version>-Lin-Deb-x86_64.sh --noexec --target ~/stm32cubeide_extract
cd ~/stm32cubeide_extract
sudo apt install ./*.deb
Enter fullscreen mode Exit fullscreen mode

(Installing this way still means you accept the ST license.)

Top comments (0)