I found the solution based on the discussion available at https://unix.stackexchange.com/questions/377345/installing-arm-none-eabi-gcc and the documentation available on https://mynewt.apache.org/latest/get_started/native_install/cross_tools.html#installing-the-arm-cross-toolchain.

The name and structure of the software changed over time. The arm-none-eabi-gcc is gcc-arm-none-eabi now, and so on.

$ sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
$ sudo apt-get update 
$ sudo apt-get upgrade
$ sudo apt-get install gcc-arm-none-eabi
$ sudo apt-get install gdb-arm-none-eabi 

And finally, to verify the downloads, you can run the following commands:

arm-none-eabi-gcc --version
arm-none-eabi-g++ --version
arm-none-eabi-size --version 
Answer from Aatif Shaikh on Stack Overflow
🌐
GitHub
github.com › cpq › bare-metal-programming-guide › issues › 3
ubuntu Unable to locate package gcc-arm-embedded · Issue #3 · cpq/bare-metal-programming-guide
December 6, 2022 - tools setup instructions for Linux(Ubuntu-20.04x) needs a small correction: sudo apt -y install gcc-arm-none-eabi make stlink-tools (Instead of gcc-arm-embedded, use gcc-arm-none-eabi)
Author   hackboxguy
Discussions

apt - How to install a functional ARM cross-GCC toolchain on Ubuntu 18.04 (Bionic Beaver) - Unix & Linux Stack Exchange
Context I recently installed Ubuntu 18.04, Linux foobar-VirtualBox 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux on a VM. I want to cross-compile More on unix.stackexchange.com
🌐 unix.stackexchange.com
February 7, 2018
Setting up a Movesense development environment on Linux - Stack Overflow
Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams ... I followed an instruction to set up a Movesense development environment, "Manual setup on Linux", from Suunto / Movesense-community / Movesense-device-lib, README.md · However, I got stuck at sudo apt-get install gcc-arm-embedded: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable ... More on stackoverflow.com
🌐 stackoverflow.com
gcc - ARM cross-compiler Linux System install error unable to locate package - Stack Overflow
I am using a Debian Linux host computer. I would like to cross-compile some ARM Mali OpenCL sample code from the SDK. I have been searching all over the Internet and I have found several websites t... More on stackoverflow.com
🌐 stackoverflow.com
software installation - Installing arm-none-eabi-gcc - Unix & Linux Stack Exchange
Package managers, names, and availability vary between distros. Many system components also tend to differ, though that seems less of a concern in this case ... 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... More on unix.stackexchange.com
🌐 unix.stackexchange.com
July 9, 2017
🌐
Launchpad
answers.launchpad.net › gcc-arm-embedded › +question › 708037
Question #708037 “404 not found does not have a Release file.” : Questions : GNU Arm Embedded Toolchain
September 26, 2023 - zachary@zachary-Victus-by-HP-Gaming-Laptop-16-r0xxx:~$ sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa [sudo] password for zachary: This PPA is an alternative to toolchain released at https://launchpad.net/gcc-arm-embedded. The source codes for both are same.
🌐
Launchpad
answers.launchpad.net › gcc-arm-embedded › +question › 289287
Question #289287 “How to add specific version for the tool chain...” : Questions : GNU Arm Embedded Toolchain
Dear sir: When I do aws_starter_sdk Follow the<document: sudo apt-get install gcc-arm-embedded success Then: developer@ ... But when I try to remove, it complain cannot find the package. I use apt-cache search arm-none to remove it one by one · I try to install new version, now it cannot find the package developer@ ... q3-update Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package arm-none-eabi-gcc
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 54423066 › setting-up-a-movesense-development-environment-on-linux
Setting up a Movesense development environment on Linux - Stack Overflow
Following the instructions under "GNU/Linux" in the "GNU ARM Embedded Toolchain" section of https://gnu-mcu-eclipse.github.io/toolchain/arm/install/#gnu-arm-embedded-toolchain ... // Get some support dependencies for 32 bit running on 64-bit machines // Check toolchain README for actual list. $ sudo apt-get -y install lib32z1 lib32ncurses5 lib32bz2-1.0 // Install the toolchain $ mkdir -p "${HOME}"/opt $ cd "${HOME}"/opt $ tar xjf ~/Downloads/gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 $ chmod -R -w "${HOME}"/opt/gcc-arm-none-eabi-7-2017-q4-major
🌐
Pmortensen
pmortensen.eu › world2 › 2019 › 12 › 08 › arm-toolchain-ubuntu-19-04-black-magic-probe
Getting the ARM toolchain to work on Ubuntu 19.04 and later (including for Black Magic Probe (BMP)) – More professional engineering
December 8, 2019 - Before starting, uninstall any already-installed ARM GCC cross compiler (this command can be used unconditionally – if it is not installed, it will report “Package ‘gcc-arm-none-eabi’ is not installed, so not removed”): ... Instead of using apt-get, we get the toolchain directly from ...
🌐
Blogger
esplatforms.blogspot.com › 2014 › 01 › setting-arm-enviroment-on-linux-with.html
Embedded System Platforms: Setting the ARM enviroment on Linux with Cortex M4F - Stellaris
January 21, 2014 - sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded sudo apt-get update And just install the package: sudo apt-get install gcc-arm-none-eabi Obs.: if you have this error: E: Unable to locate package gcc-arm-none-eabi don't give up, just do this:
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)

🌐
Launchpad
answers.launchpad.net › gcc-arm-embedded › +question › 237911
Question #237911 “gcc-arm-embedded pkg broken or parts missing” : Questions : GNU Arm Embedded Toolchain
"sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded" "sudo apt-get update" Err http://ppa.launchpad.net quantal/main Sources 404 Not Found Err http://ppa.launchpad.net quantal/main i386 Packages 404 Not Found Ign http://ppa.launchpad.net quantal/main Translation-en Fetched 795 kB in 21s (37.7 kB/s) W: Failed to fetch http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu/dists/quantal/main/source/Sources 404 Not Found W: Failed to fetch http://ppa.launchpad.net/gwibber-da...
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.

🌐
DevManuals
devmanuals.net › install › ubuntu › ubuntu-16-04-LTS-Xenial-Xerus › how-to-install-gcc-arm-none-eabi.html
How to install gcc-arm-none-eabi On Ubuntu 16.04 Lts? Uninstall and remove gcc-arm-none-eabi Package
After downloading the latest package list with the help of above you can run the installation process. If gcc-arm-none-eabi is not installed on your compter then the command 'dpkg -L gcc-arm-none-eabi' will give followin error.
🌐
Reddit
reddit.com › r/ubuntu › trouble installing packages
r/Ubuntu on Reddit: Trouble installing packages
November 16, 2023 - E: Unable to locate package binutils-arm-none-eabi ... sudo apt install build-essential binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi git libpng-dev
🌐
GitHub
github.com › vedderb › bldc › issues › 233
I can't install gcc-arm-embedded with Ubuntu 20.04 · Issue #233 · vedderb/bldc
November 13, 2020 - Hello, when i write sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa in the terminal it says that there is not a version for Ubuntu 20.04. I read that the launchpad repository is deprecated and that the latest version can be installed manually.
Author   albertomercurio
🌐
GitHub
github.com › bbcmicrobit › micropython › issues › 619
Can't install compilation packages - ubuntu 16.04 · Issue #619 · bbcmicrobit/micropython
December 12, 2018 - I've been following the discussion #604 but it seem's that the OP has dropped out of the discussion. I follow the reasoning that ppa/ppamiller is no longer required and procede to follow the instructions in README.md. when i type sudo apt-get install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev it terminates with the error
Author   rhubarbdog