You can force a version:

apt-get install gcc-arm-linux-gnueabihf=4:9.3.0-1ubuntu2

From man apt-get: install pkg [{=pkg_version_number | /target_release}]...

Answer from user.dz on askubuntu.com
🌐
Debian
packages.debian.org › sid › gcc-arm-linux-gnueabihf
Debian -- Details of package gcc-arm-linux-gnueabihf in sid
This is the GNU C compiler, a fairly portable optimizing compiler for C · This is a dependency package providing the default GNU C cross-compiler for the armhf architecture
🌐
Arm Developer
developer.arm.com › downloads › - › arm-gnu-toolchain-downloads
Arm GNU Toolchain Downloads – Arm Developer
Toolchains dedicated for Windows host require mingw-w64 library, a complete runtime environment for GCC. The following executables in the Windows hosted toolchains: aarch64-none-linux-gnu-dwp.exe · aarch64-none-linux-gnu-ld.gold.exe · arm-none-linux-gnueabihf-dwp ·
Discussions

What is the difference between arm-linux-gcc and arm-none-linux-gnueabi - Stack Overflow
What is the difference between arm-linux-gcc and arm-none-linux-gnueabi and arm-linux-gnueabi toolchains? Do they compile differently? More on stackoverflow.com
🌐 stackoverflow.com
apt - Package gcc-arm-linux-gnueabi is not available, but is referred to by another package - Raspberry Pi Stack Exchange
I try to compile a piece of software with a pre-defined Docker-enviroment, where following packages are getting installed: gcc-arm-linux-gnueabi, g++-arm-linux-gnueabi, gcc-arm-linux-gnueabihf and ... More on raspberrypi.stackexchange.com
🌐 raspberrypi.stackexchange.com
May 25, 2021
How to install GCC armhf cross compilation toolchain on Arch
https://aur.archlinux.org/packages/arm-none-linux-gnueabihf-toolchain-bin/ works for my purposes. No compilation required. More on reddit.com
🌐 r/archlinux
2
5
September 13, 2021
How to fix "arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs'"
Trying to compile for a Raspberry Pi Pico. Most fixes for this out there are just mac users installing gcc-arm-embedded instead of arm-none-eabi-gcc… More on reddit.com
🌐 r/embedded
3
2
December 3, 2023
🌐
Arch Linux
aur.archlinux.org › packages › arm-linux-gnueabihf-gcc
AUR (en) - arm-linux-gnueabihf-gcc
-gcc-stage2 will conflict with the -gcc-stage1 package. You'll need to remove -gcc-stage1 after building -gcc-stage2, but before installing it. Install arm-linux-gnueabihf-gcc from AUR (with -glibc dependency).
🌐
Raspberry Pi Forums
forums.raspberrypi.com › board index › using the raspberry pi › beginners
SOLVED: What is arm-linux-gnueabihf? - Raspberry Pi Forums
November 20, 2021 - Sun Nov 21, 2021 1:17 am Is it safe to delete? No. You'll break your install if you delete /usr/lib/arm-linux-gnueabihf. Software libraries are kept in there.
Find elsewhere
🌐
GitHub
github.com › radcolor › arm-linux-gnueabi
GitHub - radcolor/arm-linux-gnueabi: ⚒️ Bleeding edge GNU GCC toolchains (CC only) built from sources with latest binutils and glibc. (for ARM)
These Builds (on master/main branch) are always made from the latest GCC sources rather than stable releases. This toolchain AArch32 AArch64 here. Built with Support for Link Time Optimization, -O3, --disable-nls and removed extras that we don't need. Clone using git from this repo, As currently we don't have any mirror or a archived release. $ git clone https://github.com/theradcolor/arm-linux-gnueabi --depth=1
Starred by 13 users
Forked by 5 users
Languages   C++ 46.6% | C 41.3% | Roff 11.3% | Python 0.4% | Shell 0.2% | XC 0.1%
🌐
Ubuntu
launchpad.net › ubuntu › jammy › +package › gcc-arm-linux-gnueabihf
gcc-arm-linux-gnueabihf : Jammy (22.04) : Ubuntu
This is the GNU C compiler, a fairly portable optimizing compiler for C. . This is a dependency package providing the default GNU C cross-compiler for the armhf architecture.
🌐
Debian
packages.debian.org › sid › gcc-arm-linux-gnueabi
Debian -- Details of package gcc-arm-linux-gnueabi in sid
gcc-arm-linux-gnueabihf · gcc-multilib-s390x-linux-gnu · gcc-powerpc64le-linux-gnu · gcc-s390x-linux-gnu · gcc-mips-linux-gnu · gcc-mips64-linux-gnuabi64 · gcc-mips64el-linux-gnuabi64 · gcc-mipsel-linux-gnu · This is the GNU C compiler, a fairly portable optimizing compiler for C.
🌐
Acmesystems
acmesystems.it › arm9_toolchain
Install the ARM cross compiler toolchain on your Linux PC
sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf · If you are using an Arietta, Aria or FOX G20 board: sudo apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi · Now you are ready to cross-compile on your PC all the source available for the Acme Boards based on Microchip MPUs.
🌐
Aw-som
aw-som.com › faq › index.php
Getting started with AW-SoM products - Debian/Ubuntu Install GCC 4.7 ARM Cross Compiler
Lets install a more recent version of the GCC ARM Cross Compiler. ... cd /usr/bin sudo ln -s arm-linux-gnueabihf-gcc-4.7 arm-linux-gnueabihf-gcc sudo ln -s arm-linux-gnueabihf-cpp-4.7 arm-linux-gnueabihf-cpp sudo ln -s arm-linux-gnueabihf-gcc-ar-4.7 arm-linux-gnueabihf-gcc-ar sudo ln -s arm-linux-gnueabihf-gcc-nm-4.7 arm-linux-gnueabihf-gcc-nm sudo ln -s arm-linux-gnueabihf-gcc-ranlib-4.7 arm-linux-gnueabihf-gcc-ranlib sudo ln -s arm-linux-gnueabihf-gcov-4.7 arm-linux-gnueabihf-gcov cd ~/
🌐
Reddit
reddit.com › r/ubuntu › wsl ubuntu: how to setup gcc to cross-compile for arm with a specific glibc version?
r/Ubuntu on Reddit: WSL Ubuntu: How to setup gcc to cross-compile for arm with a specific glibc version?
April 22, 2024 - sudo bash -c "echo 'deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse' > /etc/apt/sources.list.d/armhf.list" sudo bash -c "echo 'deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list" sudo bash -c "echo 'deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse' >> /etc/apt/sources.list.d/armhf.list" sudo bash -c "echo 'deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe m
🌐
Debian
packages.debian.org › gcc-arm-linux-gnueabihf
Debian -- Package Search Results -- gcc-arm-linux-gnueabihf
experimental (devel): GNU C compiler for the armhf architecture 4:16-20251130-1: amd64 arm64 armhf i386 ppc64el s390x x32
🌐
Arm Learning
learn.arm.com › install-guides › gcc › cross
Cross-compiler | Arm Learning Paths
GCC is used to cross-compile Linux applications targeting Arm. Applications can be compiled for 32-bit or 64-bit Arm Linux systems. The executables for 32-bit are arm-linux-gnueabihf-gcc and arm-linux-gnueabihf-g++.
🌐
Debian
packages.debian.org › bookworm › amd64 › devel › gcc-arm-linux-gnueabihf
Details of package gcc-arm-linux-gnueabihf in bookworm
JavaScript is disabled in your browser · Please enable JavaScript to proceed · A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
🌐
Fedora
packages.fedoraproject.org › pkgs › cross-gcc › gcc-arm-linux-gnu
gcc-arm-linux-gnu - Fedora Packages
View gcc-arm-linux-gnu in the Fedora package repositories. gcc-arm-linux-gnu: Cross-build binary utilities for arm-linux-gnu
🌐
GitHub
github.com › eckucukoglu › arm-linux-gnueabihf
GitHub - eckucukoglu/arm-linux-gnueabihf: gcc version: 4.9.2, glibc version: 2.19, binutils version: 2.24, gdb version: 7.6.1, kernel headers version: 199248 (3.10.80) · GitHub
gcc version: 4.9.2, glibc version: 2.19, binutils version: 2.24, gdb version: 7.6.1, kernel headers version: 199248 (3.10.80) - eckucukoglu/arm-linux-gnueabihf
Starred by 9 users
Forked by 2 users
Languages   Python 40.8% | HTML 25.7% | C 15.8% | C++ 10.7% | Roff 3.5% | Perl 1.2%