Skip to main content
yogui_ricardo
Associate III
September 29, 2024
Solved

I can't install ide cube on ubuntu 24

  • September 29, 2024
  • 8 replies
  • 6896 views

When I try to install it I get this error: "The following packages have unmet dependencies:
st-stm32cubeide-1.16.1 : Depends: libncurses5 but is not installable
Depends: libpython2.7 but is not installable
Depends: libwebkit2gtk-4.0-37 but is not installable"
any ideas? thanks in advance

Best answer by PGump.1

Hi,

These are my notes for installing CubeIDE onto Tumbleweed -

STM32CubeDE installation

Download the generic linux option. The RPM package is problematic!

DON'T use the sudo running the script.

Select NO to install stlink server.

Using sudo & kate, create a desktop file in "/usr/share/applications/st-stm32cubeide-version.desktop". You need to logout - login to finialise it.

Before launching, create the workspace folders required. Copy/ move the projects from the old workspace to the new one.
When launching, select the new workspace, then import the project(s).

I hope this helps.

Kind regards
Pedro

8 replies

AScha.3
Super User
September 29, 2024

Which version you try?  -> try : generic Linux...

"If you feel a post has answered your question, please click ""Accept as Solution""."
yogui_ricardo
Associate III
September 29, 2024

I tried it and it gives the same error

 

PGump.1
PGump.1Best answer
Senior II
September 29, 2024

Hi,

These are my notes for installing CubeIDE onto Tumbleweed -

STM32CubeDE installation

Download the generic linux option. The RPM package is problematic!

DON'T use the sudo running the script.

Select NO to install stlink server.

Using sudo & kate, create a desktop file in "/usr/share/applications/st-stm32cubeide-version.desktop". You need to logout - login to finialise it.

Before launching, create the workspace folders required. Copy/ move the projects from the old workspace to the new one.
When launching, select the new workspace, then import the project(s).

I hope this helps.

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
DAldr.1
Associate
September 30, 2024

The link on the Generic Version of STM32CubeIDE is broken. Any other ideas?

yogui_ricardo
Associate III
September 30, 2024

I will try, thanks in advance

Associate
October 4, 2024

Hi,

The last generic version 1.16.1 doesn't work either on Ubuntu 24 LTS, because it requires libncurses 5 which is obsolete. The build & IDE works but not the SWD debug.

" Build works but debug can't work because it requires too old libs :

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

It reveals which versions are required by STM32CubeIde / arm-none-eabi-gdb build, which seems way too limited :

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)

Maybe it's possible to rebuilt the compiler to get a working GDB... "

PGump.1
Senior II
October 4, 2024

Hi,

Try the generic version of 1.16.0, then update through CubeIDE's updater. That worked for me on Tumbleweed.

I hope that helps.

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
Associate
October 4, 2024

Hi,

Good news that can work, maybe something slightly different create the issue for me and a lot of people...

Which distribution of Linux are you using ?

Indeed, I already tried 1.16.0 before, 'arm-none-eabi-gdb' also requires libncurses5 (thus very specific version of it which doesn't really make sense for me). I tried 1.16.1 hopping it would had been fixed.

I see two solutions, get a newer generic 'arm-none-eabi-gdb' and replaced it in STMCubeIDE.

Use Archlinux... which integrate a packet creating a compatibility layer between libncurses5 and libncurses6, but I tend to avoid using Archlinux on my work computer.

Initially I had to migrate from the previous Ubuntu LTS to newer for very complex issues with Virtual Box...

Best regards.

Graduate
October 10, 2024

Because Ubuntu 24.04 doesn't have those library versions. The best thing would be for ST to rebuild the tools for the 24.04 version of Ubuntu.  I got the same error on my new Ubuntu 24.04 installation. Luckily, I have another machine with the previous LTS version of Ubuntu (22.04 Jammy Jellyfish). The STM32VCubeIDE install worked fine there. I used the Linux zip and not the deb file. I don't have any reason to believe that the deb version would not work on 22.04 ... I just have not tried it. 

George Eliozov
Associate II
October 19, 2024

A quick temporary solution, tested on arm-none-eabi-gdb:

 

# create local path to store softlink to ncurses6, avoid sudo, also doesn't introduce 
# files into a system directory
mkdir -p ~/path/to/some/dir
cd ~/path/to/some/dir
# whole idea is to make soft links libncursesw.so.5 -> /usr/lib/x86_64-linux-gnu/libncursesw.so.6
# check the version installed in your system-wide ncurses library 
ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 libtinfo.so.5
ln -s /usr/lib/x86_64-linux-gnu/libncursesw.so.6 libncursesw.so.5

# try to execute, should work
LD_LIBRARY_PATH=~/path/to/some/dir arm-none-eabi-gdb 

# to make systemwide, add LD_LIBRARY_PATH to your startup script, eg ~/.profile
# do not forget to substitute '~' with $HOME
export LD_LIBRARY_PATH=$HOME/path/to/some/

 

I didn't found a proper code highlight for SH script so used a python, should be readable...

Associate II
October 20, 2024

ciao

I tried your code but it doesn't find the directory it gives me the following error

 

:~/path/to/some/dir$ LD_LIBRARY_PATH=~/path/to/some/dir arm-none-eabi-gdb 
arm-none-eabi-gdb: comando non trovato

 

debugging
Lead
October 30, 2024

1.16.1 works fine on 24.10 for me. There is a conflict between FreeCAD 0.21, Kicad  8etc.. for Libncurses though. Perhaps uninstall those  from the repository, then install CubEIDE again.  On 24.04/10 you need to apply the ulimit though (see sticky post). I run FreeCAD, Kicad 8 an CubeIDE w/o problems on 24.10 now.

 

Visitor II
April 16, 2025

On a fresh new installation of Ubuntu 24.04 I was able to install STM32CubeIDE v.1.18.0 and STM32CubeProgrammer v2.19.0 with no issues.

When asked to install Packages needed for some "Developer Package" use cases, instead of NCURSES 5 install NCURSES 6:

sudo apt-get install build-essential libncurses-dev libncurses6 libyaml-dev libssl-dev