Skip to main content
Explorer
Solved

Ubuntu 24.04 install of Cube IDE 1.15.1

When moving to the latest LTS version of Ubuntu (version 24.04), I received the following message when attempting to install Cube IDE and after accepting all of the license agreements:

The following packages have unmet dependencies:
st-stm32cubeide-1.15.1 : Depends: libncurses5 but it is not installable
Depends: libpython2.7 but it is not installable
Depends: libwebkit2gtk-4.0-37 but it is not installable
E: Unable to correct problems, you have held broken packages.

 

After running "sudo apt-cache search" for each of these packages, I found the following:

for libncurses5 only libncurses-dev was returned. The version associated with 24.04 is (6.4+20240113-1ubuntu2)

for libpython2.7 nothing was returned and when I searched for just libpython only libpython3-all-dev and its associated packages were listed.

for libwebkit2gtk-4.0-37 nothing was returned but when searching for libwebkit2gtk version libwebkit2gtk-4.1 was returned.

 

Are there plans to update Cube IDE soon to use updated libraries?

    This topic has been closed for replies.
    TiagomdsBest answer
    Visitor II

    I had the same issue on my Ubuntu 24.

    I saw at https://www.st.com/en/development-tools/stm32cubeide.html#get-software another linux version (STM32CubeIDE Generic Linux Installer) and I was able to install it.

    For now it seems to be working fine.

    20 replies

    Explorer

    I have the Same Problem  :expressionless_face:

    unsigned_char_array
    Lead III

    Who still uses python 2.7 in 2024?! Python 2.7 has been discontinued since January 2020... I have used STM32CubeIDE on Ubuntu 22 in the past without any serious issues (aside from scaling issues, but I've had scaling issues on Windows too), but not on Ubuntu 24 yet.

    "Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
    TiagomdsBest answer
    Visitor II

    I had the same issue on my Ubuntu 24.

    I saw at https://www.st.com/en/development-tools/stm32cubeide.html#get-software another linux version (STM32CubeIDE Generic Linux Installer) and I was able to install it.

    For now it seems to be working fine.

    Visitor II

    Does it worked? I can't login :(

    Graduate

    I was able to install the CubeIDE from the Generic Linux option, but cannot login to myST. I'm on Ubuntu 24.04, tried versions 1.15.1 and 1.14.0, but cannot login too.

    Explorer

    Apparently, logging in from the CubeIDE works right now. 
    But I also experience the problem that I cannot run an example project because it is looking for libncurses5 whereas this Ubuntu only has the libncurses6. 

    Explorer II

    Even if you were able to install there are still problems down the line due to libncurses5. I was able to install on Ubuntu 24.04 using the generic Linux Installer, but I cannot load jobs to my MCU.

    Could not determine GDB version using command: arm-none-eabi-gdb --version
    arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

      I cannot get proceed beyond this at the moment.

    unsigned_char_array
    Lead III

    What do you mean by "load jobs to my MCU"?

    "Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
    Explorer II

    I meant when I try to flash the board. Apparently, Only Ubuntu 20.04 - 22.04 are supported. Ubuntu 24.04 is not supported. 

    Visitor II

    Dear all

    I managed to get STM32CubeIDE 1.15.1 running on Ubuntu 24.04. I used the "Generic Linux" installer, not the Debian one. I was able to manually download and install libtinfo5_6.4-4_amd64.deb and libncurses5_6.4-4_amd64.deb

    Importing a project, building and running and even the ST login seems to work properly.

    But when I try to load an IOC file it fails without any error message, only a gray background is displayed.

    However as a workaround I was able to load, edit and generate code using the "standalone version" Cube MX.

    I hope that ST will soon fix CubeIDE to properly run on Ubuntu 24.04 "out of the box".

    Visitor II

    Same here, Use generic 1.12.0, it's working properly here.

    Associate

    I assume that I am experiencing the same as @trusty, being unable to upload firmware to the MCU. I have created a separate topic for it here: https://community.st.com/t5/stm32cubeide-mcus/unable-to-upload-firmware-on-ubuntu-24-04/td-p/683268 

    CWang.13
    Associate

    I just boot my new desktop with ubuntu24.04, and seems generic_linux download version is the best to operate.

     

    Also, I keep getting the error during flashing/debugging the chip, it reports

     

    "Could not determine GDB version using command: arm-none-eabi-gdb --version arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libncurses.so.5: version NCURSES_5.3.20021019' not found (required by arm-none-eabi-gdb) arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libncurses.so.5: version NCURSES_5.1.20000708' not found (required by arm-none-eabi-gdb) arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libncurses.so.5: version NCURSES_5.6.20061217' not found (required by arm-none-eabi-gdb) arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libncurses.so.5: version NCURSES_5.0.19991023' not found (required by arm-none-eabi-gdb) arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libtinfo.so.5: version NCURSES_TINFO_5.0.19991023' not found (required by arm-none-eabi-gdb)"

     

    I solved it according to following operations.

     

    1. Manually download the required libtinfo5 package which is the dependency of libncurses5. https://launchpad.net/ubuntu/lunar/amd64/libtinfo5/6.4-2

    2. cd into your download directory, setting up the libtinfo5 package "sudo dpkg -i libtinfo5_6.4-2_amd64.deb"

    3. then "curl -O http://launchpadlibrarian.net/648013227/libncurses5_6.4-2_amd64.deb" to get the libncurses5

    4. set up the libncurses5 package "sudo dpkg --configure libncurses5:amd64"

    5. all good~

    Explorer

    Finally, that did the trick.

    I searched for this several days.

    God bless you!

    Instead of point 4. (set up) I had to install: "sudo dpkg -i libncurses5_6.4-2_amd64.deb"

    Visitor II

    What i did on my Ubuntu 24 Install :-

    • get into /etc/apt/sources.list.d and locate ubuntu.sources.
    • open the terminal in that directory by right clicking in it.
      then run sudo pluma ./ubuntu.sources a pluma editor will open.
    • just add these lines:-

    Types: deb

    URIs: http://security.ubuntu.com/ubuntu

    Suites: focal-security

    Components: main universe

    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

    • save it and close it.
    • then in terminal run sudo apt update.
    • then run sudo apt install libncurses5.
      Hopefully that works for you it did for me.