As far as I can see, there are two options:

  • Install an old version (as pointed out by Chaos)
  • Install gdb-multiarch, which actually worked for me.
Answer from user1729210 on askubuntu.com
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › hardware and peripherals › raspberry pi pico › sdk
missing arm-none-eabi-gdb - Raspberry Pi Forums
January 30, 2021 - Sat Jan 30, 2021 12:42 pm Thanks for the confirmation James, I've switched back to gdb-multiarch I also found a bad connection to one of the debug pins that was probably root cause of this. D'oh! And hey presto It now works I think the documentaion needs to be a little clearer here to explain under what circumstances you'd use arm-none-eabi.gdb. If the comment about "this **may** need to be arm-none-eabi-gdb" hadn't been in launch.json or the note in the documentation "You **may** have to amend the gdbPath in launch.json ..." had been a little clearer on why you may need to do this, I probably wouldn't have gone down that path.
Discussions

Arduino IDE 2.X ESP32C3 Debug not found arm-none-eabi-gdb.exe Error
When I was trying to use 2.1 Arduino IDE debug ESP32C3, the software reported an error: GDB executable "C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\bin\arm-none-… More on forum.arduino.cc
🌐 forum.arduino.cc
19
1
May 2, 2023
Help Getting arm-none-eabi-gdb to Work on Fedora 35
This question belongs in r/linuxquestions . The debugger has a dependency on the ncurses library, and you don't have it installed. So you need to install it. I don't use Fedora but the command is probably something like % sudo yum install ncurses-devel If that doesn't work. Google "install ncurses on Fedora" Do you have a target to debug? Because it looks to me like you're trying to do remote debugging from an x86/Linux host to an ARM board, so you need to have a running gdbserver on your target for gdb to talk to. More on reddit.com
🌐 r/arm
6
3
December 31, 2021
visual studio code - OpenOCD GDB executable "arm-none-eabi-gdb" was not found. Please configure "cortex-debug.armToolchainPath" correctly - Stack Overflow
OpenOCD GDB executable "arm-none-eabi-gdb" was not found. More on stackoverflow.com
🌐 stackoverflow.com
GDB executable "docker exec -it armdev \arm-none-eabi-gdb.exe" was not found
My situation: I provide docker containers for my team to run arm cortex projects. In vscode, a docker container get started (and or build) when vscode launches from a folder. In the container are a... More on github.com
🌐 github.com
15
February 8, 2022
🌐
Arm Community
community.arm.com › support-forums › f › compilers-and-libraries-forum › 52805 › gcc-arm-11-2-2022-02-x86_64-arm-none-eabi-gdb-fails-on-ubuntu
gcc-arm-11.2-2022.02-x86_64-arm-none-eabi gdb FAILS ...
May 18, 2022 - Have a question about working on Arm technology? Browse our support forums for solutions to your questions, answer questions from fellow community members and get help from Arm experts.
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Arduino IDE 2.X ESP32C3 Debug not found arm-none-eabi-gdb.exe Error - Programming - Arduino Forum
May 2, 2023 - When I was trying to use 2.1 Arduino IDE debug ESP32C3, the software reported an error: GDB executable "C:\Users\XXX\AppData\Local\Arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\bin\arm-none-eabi-gdb.exe" was not found. Please configure "cortex-debug.armToolchainPath" or "cortex-debug.gdbPath" correctly.
🌐
Reddit
reddit.com › r/arm › help getting arm-none-eabi-gdb to work on fedora 35
r/arm on Reddit: Help Getting arm-none-eabi-gdb to Work on Fedora 35
December 31, 2021 -

I am tried installing the arm embedded tool-chain and I am struggling to get arm-none-eabi-gdb to work. So far, the following commands are functioning for me: arm-none-eabi-gcc, arm-none-eabi-g++, and arm-none-eabi-size.

When I run arm-none-eabi-gcc ect. I get these results.

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

These results are what I'm trying to achieve for arm-none-eabi-gdb -- which results in:

$ 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

These are the steps I took to install the arm embedded tool chain:

  1. Downloaded gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

  2. Extracted the tar.bz2 by double clicking in the file system.

  3. Moved the gcc-arm folder containing arm-none-eabi, bin, lib, and share using: $ sudo mv gcc-arm-none-eabi-10.3-2021.10/* /opt/gcc-arm

  4. Added the following path variable to .bashrc export PATH="/opt/gcc-arm/bin/:$PATH"

Any and all help is appreciated in helping me to get arm-none-eabi-gdb working.

This is my first post here, so I apologize if I am breaking any rules. I am also fairly new to Linux, so please correct me if I use any terminology incorrectly.

🌐
GitHub
github.com › Marus › cortex-debug › issues › 597
GDB executable "docker exec -it armdev \arm-none-eabi-gdb.exe" was not found · Issue #597 · Marus/cortex-debug
February 8, 2022 - docker exec -it armdev /usr/bin/arm-none-eabi-gdb --version GNU gdb (Debian 8.2.1-2+b3) 8.2.1 Copyright (C) 2018 Free Software Foundation, Inc.
Author   Marus
Find elsewhere
Top answer
1 of 5
10

I got it working on Kubuntu 19.10 installing:

apt install libncurses5

Not installing the "-dev", development or ":i386", 32-bit versions of the library.

2 of 5
0

I installed Ubuntu 18.10 desktop (Cosmic Cuttlefish) from here, but I was unable to install gcc-arm-none-eabi:

ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:        18.10
Codename:       cosmic

ubuntu@ubuntu:~$ sudo apt-get install gcc-arm-none-eabi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-arm-none-eabi

I then installed libncurses5-dev and gcc-linaro-7.3.1-2018.05-x86_64_arm and got the same .so-related error you got.

Since I don't have this issue with 16.04 nor with 18.04, I would suggest you compile the latest GDB from source in order to avoid what may be a package/dynamic link library mismatch issue in Ubuntu 18.10:

sudo apt-get install build-essential libncurses5-dev libexpat1-dev texinfo-doc-nonfree
pushd /tmp
wget -qO- ftp://ftp.gnu.org/gnu/gdb/gdb-8.2.tar.xz | tar Jxv
mkdir gdb
cd gdb
../gdb-8.2/configure  --enable-tui --with-expat --prefix=/usr/local  --target=arm-eabi --program-prefix=arm-eabi-
make all
sudo make  install
popd

Install will fail because makeinfo is missing, even though I installed texinfo-doc-nonfree, but binaries will be installed:

ls /usr/local/bin
arm-eabi-gdb  arm-eabi-gdb-add-index  arm-eabi-run

And arm-eabi-gdb will launch properly this time:

arm-eabi-gdb --version
GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

arm-eabi-gdb -tui will work as well - I encourage you to use the TUI mode. You should like it as much as I do - I guess.

🌐
GitHub
github.com › espressif › arduino-esp32 › issues › 8029
GDB executable "arm-none-eabi-gdb.exe" not being found · Issue #8029 · espressif/arduino-esp32
April 5, 2023 - GDB executable "C:\Users\username\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\bin\arm-none-eabi-gdb.exe" was not found.
Author   espressif
🌐
Arm Community
community.arm.com › support-forums › f › compilers-and-libraries-forum › 53996 › arm-gnu-toolchain-12-2-rel1-x86_64-arm-none-eabi-gdb-fails-on-ubuntu-22-04
arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi gdb ...
December 22, 2022 - Have a question about working on Arm technology? Browse our support forums for solutions to your questions, answer questions from fellow community members and get help from Arm experts.
🌐
NXP
community.nxp.com › t5 › Kinetis-Microcontrollers › Segger-Error-while-launching-command-arm-none-eabi-gdb-version › td-p › 856066
Solved: Segger - Error while launching command: arm-none-eabi-gdb --version - NXP Community
February 28, 2019 - That message usually tells you that it was not able to find binary, see Troubleshooting Tips: Failed Debugging with GDB | MCU on Eclipse ... No it doesn't help. KDS is calling the wrong executable: it's not supposed to be calling "arm-none-eabi-gdb" for the SEGGER.
🌐
Command Not Found
command-not-found.com › arm-none-eabi-gdb
command-not-found.com – arm-none-eabi-gdb
Install arm-none-eabi-gdb command on any operating system and in Docker.
🌐
GitHub
github.com › devkitPro › docker › issues › 24
Unable to run arm-none-eabi-gdb · Issue #24 · devkitPro/docker
June 3, 2022 - $ docker run -it --rm -v "$PWD:/build" devkitpro/devkitarm # arm-none-eabi-gdb bash: arm-none-eabi-gdb: command not found # find / -name arm-none-eabi-gdb /opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb
Author   devkitPro
🌐
Infineon Developer Community
community.infineon.com › home › forums › software › wiced™ studio › wiced studio wi-fi combo › program cannot debug / arm-none-eabi-gdb.exe --ver...
Solved: program cannot Debug / arm-none-eabi-gdb.exe --ver... - Infineon Developer Community
April 12, 2016 - Instead, press "Browse.." and then select gdb debugger in tools folder like as "./WICED-SDK/tools/ARM_GNU/bin/Win32/arm-none-eabi-gdb.exe". When I tested this, it worked fine. ... Depending on the host OS you need to change to the correct gdb ...
🌐
STMicroelectronics Community
community.st.com › t5 › stm32cubeide-mcus › cubeide-1-16-1-arm-none-eabi-gdb-version-error › td-p › 726632
CubeIDE 1.16.1 arm-none-eabi-gdb-version Error - STMicroelectronics Community
May 14, 2025 - 4- Test with Full Path: Try running the arm-none-eabi-gdb command with the full path to the executable to see if it provides the version information. For example, C:\path\to\arm-none-eabi-gdb.exe --version.
🌐
Alan C. Assis
acassis.wordpress.com › 2018 › 12 › 27 › adding-arm-none-eabi-gdb-to-ubuntu-18-04
Adding arm-none-eabi-gdb to Ubuntu 18.04 – Alan C. Assis
December 27, 2018 - Then after more some searching I found the solution is easy: just download and install this package from Xenial (Ubuntu 16.04) : https://packages.ubuntu.com/xenial/gdb-arm-none-eabihttps://packages.ubuntu.com/xenial/libreadline6 $ sudo dpkg…