On Debian and derivatives, the package you’re looking for is gcc-arm-none-eabi:

apt install gcc-arm-none-eabi

To find this out yourself in future, install apt-file, update your indexes and use it to search for commands:

apt install apt-file
apt-file update
apt-file search bin/arm-none-eabi-gcc
Answer from Stephen Kitt on Stack Exchange
🌐
Particle
community.particle.io › troubleshooting
[SOLVED] Arm-none-eabi-gcc not found when building firmware on Linux - Troubleshooting - Particle
August 23, 2016 - Hello everyone! I have been working on po-util recently, and I am encountering a very frustrating bug on Ubuntu / Mint. Arm-none-eabi-gcc is not being found, and I am having trouble adding it to $PATH. Here is the o…
Discussions

linux - "No such file or directory" as error for wrong architecture - Unix & Linux Stack Exchange
I'm trying to run a cross compiler on my 64 bit Ubuntu. and it results in a following error: $ ./arm-none-eabi-gcc bash: ./arm-none-eabi-gcc: No such file or directory The file is here and contain... More on unix.stackexchange.com
🌐 unix.stackexchange.com
December 14, 2016
arm-none-eabi-gcc command not found
Hi, I am using Debian 8.2 out-of-the-box install and after make clean diet i got this error: arm-none-eabi-gcc command not found Please help. More on github.com
🌐 github.com
5
May 9, 2016
linux - E: Unable to locate package arm-none-eabi-gcc - Stack Overflow
I'm working on a project in which I've to compile a MicroPython stack and build a firmware file for my STM32 boards. At present, I'm following through the instruction set given on https://docs. More on stackoverflow.com
🌐 stackoverflow.com
ubuntu - gcc-arm-linux-gnueabi command not found - Stack Overflow
I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binaries. I have tried with ./ ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Electro-Smith
forum.electro-smith.com › troubleshooting and support
Vscode not finding arm-none-eabi-gcc under linux - Troubleshooting and Support - Daisy Forums
July 22, 2023 - Hello there, I am setting up my environment for the daisy right now. I was able to build the daisy example folder in my terminal via the ./rebuild_all.sh script. I tried to build it from vscode without success. The task build_all command stops with the following error: make: arm-none-eabi-gcc: No such file or directory make: *** [Makefile:358: build/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o] Error 127 echo $PATH gives me the correct folder and arm-none-eabi-gcc --version outputs the c...
🌐
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.
🌐
GitHub
github.com › travisgoodspeed › md380tools › issues › 103
arm-none-eabi-gcc command not found · Issue #103 · travisgoodspeed/md380tools
May 9, 2016 - Hi, I am using Debian 8.2 out-of-the-box install and after make clean diet i got this error: arm-none-eabi-gcc command not found Please help.
Author   webkernel
Find elsewhere
🌐
Launchpad
answers.launchpad.net › gcc-arm-embedded › +question › 403082
Question #403082 “Installed on Linux but "No such file or direct...” : Questions : GNU Arm Embedded Toolchain
I installed the toolchain on Linux in /usr/local as per the instructions: * Installing executables on Linux * Unpack the tarball to the install directory, like this: $ cd $install_dir && tar xjf gcc-arm-none-eabi-*-yyyymmdd-linux.tar.bz2 but when attempting to use arm-none-eabi-gcc I receive a "No such file or directory" message.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] Program is there, but bash can't find it / Newbie Corner / Arch Linux Forums
I use arm-none-eabi- toolset for baremetal programs. http://www.2shared.com/file/CDLvIh53/io … uttar.html ... I can build your project with default Arch toolset. The changes I made: 1) "DIRCSLITE := /usr" 2) Set gcc version to "$(LD) -o $@ $^ $(DIRCSLITE)/arm-none-eabi/lib/libc.a $(DIRCSLITE)/lib/gcc/arm-none-eabi/4.9.2/libgcc.a"
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
Getting to work ARM-compiler arm-none-eabi with Linux 21 Vanessa - Linux Mint Forums
November 28, 2022 - It seems that this GDB version uses a hardcoded Python version name, but it's at least Python3 so that just linking to the Mint version could work: https://askubuntu.com/questions/1404248 ... untu-20-04 Note that this is for Ubuntu 20.04 corresponding to Mint 20, not Mint 21. The Python version on Mint 21 is 3.10.6, not 3.8 as in the Stackoverflow post. That brought me a step forward. With ... arm-none-eabi-gdb --version arm-none-eabi-gdb: /lib/x86_64-linux-gnu/libtinfo.so.5: version `NCURSES_TINFO_5.6.20061217' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.5) arm-none-eabi-gdb:
🌐
Digilent Forum
forum.digilent.com › digilent technical forums › fpga
Error "arm-none-eabi-gcc: error trying to exec 'cc1' " - FPGA - Digilent Forum
September 12, 2016 - Building file: ../src/helloworld.c Invoking: ARM v7 gcc compiler arm-none-eabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/helloworld.o" -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -I../../getting_started_with_ZYBO_bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/helloworld.d" -MT"src/helloworld.o" -o "src/helloworld.o" "../src/helloworld.c" arm-none-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory make: *** [src/helloworld.o] Error 1
Top answer
1 of 5
49

It turned out that ARM decided to make our life easier (sarcasm) by deprecating the use of PPA - their page at launchpad now has an anouncement: "... all new binary and source packages will not be released on Launchpad henceforth ...".

So, to make use of their latest arm-none-eabi-gdb you have to install gcc-arm-embedded manually.

Remove arm-none-eabi-gcc from your system:

sudo apt remove gcc-arm-none-eabi

Download latest version (Linux x86_64 Tarball) from their website, check its MD5. Unpack it into some directory. I used /usr/share/ :

sudo tar xjf gcc-arm-none-eabi-YOUR-VERSION.bz2 -C /usr/share/

Create links so that binaries are accessible system-wide:

sudo ln -s /usr/share/gcc-arm-none-eabi-YOUR-VERSION/bin/arm-none-eabi-gcc /usr/bin/arm-none-eabi-gcc 
sudo ln -s /usr/share/gcc-arm-none-eabi-YOUR-VERSION/bin/arm-none-eabi-g++ /usr/bin/arm-none-eabi-g++
sudo ln -s /usr/share/gcc-arm-none-eabi-YOUR-VERSION/bin/arm-none-eabi-gdb /usr/bin/arm-none-eabi-gdb
sudo ln -s /usr/share/gcc-arm-none-eabi-YOUR-VERSION/bin/arm-none-eabi-size /usr/bin/arm-none-eabi-size
sudo ln -s /usr/share/gcc-arm-none-eabi-YOUR-VERSION/bin/arm-none-eabi-objcopy /usr/bin/arm-none-eabi-objcopy

Install dependencies. ARM's "full installation instructions" listed in readme.txt won't tell you what dependencies are - you have to figure it out by trial and error. In my system I had to manually create symbolic links to force it to work:

sudo apt install libncurses-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.5
sudo ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5

Check if it works:

arm-none-eabi-gcc --version
arm-none-eabi-g++ --version
arm-none-eabi-gdb --version
arm-none-eabi-size --version
2 of 5
10

I've wrapped the script here by @kmhallen into a semi-automated debian package builder here: https://gitlab.com/alelec/arm-none-eabi-gcc-deb/-/releases

Installing a package like this means you can skip the tedious manual symlinks to put tools on the path, and just as importantly you can uninstall / upgrade to newer packages (assuming I remember to make more packages)

🌐
NXP
community.nxp.com › t5 › S32-Design-Studio › arm-none-eabi-gcc-command-not-found › td-p › 1695788
arm-none-eabi-gcc: command not found - NXP Community
May 15, 2024 - Reading specs from nano.specs arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory Invoking: Standard S32DS C Compiler make: *** [src/subdir.mk:20: src/sys_init.o] Error 1 arm-none-eabi-gcc "@board/Siul2_Port_Ip_Cfg.args" -MMD -MP -MF"board/Siul2_Port_Ip_Cfg.d" -MT"board/Siul2_Port_Ip_Cfg.o" -o "board/Siul2_Port_Ip_Cfg.o" "../board/Siul2_Port_Ip_Cfg.c" make: *** Waiting for unfinished jobs....
🌐
GitHub
github.com › USCRPL › mbed-cmake › issues › 2
CMake cannot find `arm-none-eabi-g++` · Issue #2 · USCRPL/mbed-cmake
June 21, 2020 - CMake Error at mbed-cmake/CMakeLists.txt:35 (project): The CMAKE_CXX_COMPILER: arm-none-eabi-g++ is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. I've added the bin folder of the Arm toolchain to the path in .bashrc, .bash_profile, and .profile. I've added the following lines in cmake, just above include(mbed_gcc_arm_toolchain):
Author   ProExpertProg