2024-05-02 09:37 AM
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?
Solved! Go to Solution.
2024-05-21 07:14 AM
I meant when I try to flash the board. Apparently, Only Ubuntu 20.04 - 22.04 are supported. Ubuntu 24.04 is not supported.
2024-05-22 05:45 AM
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".
2024-05-22 07:16 AM
Same here, Use generic 1.12.0, it's working properly here.
2024-06-06 02:41 AM
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
2024-08-06 12:41 AM
GDB works after download and install ncurses5. Try this:
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.4-2_amd64.deb && sudo dpkg -i libtinfo5_6.4-2_amd64.deb && rm -f libtinfo5_6.4-2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.4-2_amd64.deb && sudo dpkg -i libncurses5_6.4-2_amd64.deb && rm -f libncurses5_6.4-2_amd64.deb
2024-08-29 12:30 AM
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~