Skip to main content
Associate
November 19, 2025
Solved

"Could not determine GDB version" running on Linux 24.04 LTS Noble

  • November 19, 2025
  • 3 replies
  • 514 views

Hi all I am a newbie to Linux and I badly want to excel in the system and currently i've stumbled upon an issue of not being able to run and debug my code to STM32-NUCLEO-F4460RE board through CUBE IDE. On running the program to my bord its i showing an error window and giving error message "Could not determine GDB version using command: arm-none-eabi-gdb --version". I asked Gemini and Chatgpt for help and got replies that made me symlink my libncurses.so.6.4 to .so.5 and similarly with libtinfo, then I installed gdb-multiarch as I was not able to download arm-none-eabi-gdb even with .gcc. Even I changed the prefernce to gdb-multiarch and its still the same. To add my Linux version is 24.04 LTS Noble. Kindly someone help me out of this mess.

Best answer by Pavel A.

1. Find the arm-none-eabi-gdb binary in your ARM toolchain (installed with CubeIDE, or whatever you use).

2. Rename or delete this file

3. Create instead a symlinlk named arm-none-eabi-gdb and pointing to your gdb-multiarch  binary.

 

P.S.

Your goal of learning Linux may get in conflict with being productive and safe.

Decide what is more important. You can use Windows for the productivity work and learn Linux in spare time.

 

3 replies

Technical Moderator
November 20, 2025

Hello @boazkmichael 

Are you using the latest version of CubeIDE 2.0.0?

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate
November 21, 2025

No the version is 1.19.0

Technical Moderator
November 25, 2025

Hello @boazkmichael 

This was a known issue using stm32cubeIDE 1.19.0, the libncurses must be installed manually 

Could you please try installing the new version of CubeIDE 2.0.0? This should resolve the issue.

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Ozone
Principal
November 21, 2025

> Hi all I am a newbie to Linux and I badly want to excel in the system 

That's quite a challenge ...

What does "which gdb" say ?

It should look somewhat like this:

Ozone_0-1763723063946.png

I suppose a Linux installation of CubeIDE should come with a proper gdb version.
I am no Cube user, so I cannot comment on that, or specific version requirements of CubeIDE.

BTW, a check to see what is installed : sudo apt list --installed | grep gdb

This should give you a list of all installed packages containing the pattern "gdb" in their name.
You need sudo rights, obviously.

Associate
November 23, 2025

This is the outputScreenshot from 2025-11-23 22-38-04.png

Associate
November 23, 2025

Also one more info to add is that, it asks for authentication each time it opens and it appears with the system icon. I don't know if it has anything to do with it but if it'll be a help in understanding the issue for any of you, then....

Associate II
November 25, 2025

Depending on the Linux version it might be hard to install the required libncurses 5.

Some time ago the trick Pavel mentioned above (delete gdb from ST toolchain and replace with a symlink to gdb-multiarch) worked for me.