Unable to locate package "gcc-arm-embedded"

Trying to install the software needed for development onto a device with Linux Mint. Everything looks good, until the last step where python is installed.

sudo apt-get install python-serial openocd
flex bison libncurses5-dev autoconf texinfo build-essential
libftdi-dev libtool zlib1g-dev
python-empy gcc-arm-embedded -y

when I input this code, I get a error saying there is no “gcc-arm-embedded” package to be found. Is there a way to install this package manually? Or did I mess up something in the installation?

Guide for installation for quick reference
http://dev.px4.io/starting-installing-linux.html

The instruction very clearly state that we’re only supporting Ubuntu officially. If you use something else you should know how to get software packages on your system.

1 Like

I’m also on Mint (18) and the instructions worked fine for me.
I think you messed up / skipped this:

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

Figured it out. I inputted sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa and did not confirm I wanted it installed. Software installed smoothly this time, thanks for the pointer.

Hello @Deafro, @LorenzMeier, @Bart

sorry for re-open this discussion. I’m in trouble whith gcc compiler while trying to build the code

As reported in https://dev.px4.io/en/setup/building_px4.html, I must have a supported GCC version to build make px4fmu-v2_default. I’ve followed the instructions in https://dev.px4.io/en/setup/dev_env_linux_ubuntu.html#nuttx-based-hardware, I’ve executed the script GCC 7-2017-q4 and reboot my computer. However, I still have arm-none-eabi-gcc 4.9.3 when I check the version (instead of version 7.2.1 as reported in the docs).

I’ve noticed that when executing sudo apt-get remove gcc-arm-embedded I got the following:

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package gcc-arm-embedded

Does anyone has suggestions on how to fix it?
Thank-you in advance

@Matteo_Scanavino

Did you manage to solve that problem? I am having the exact same problem. My gcc version isn’t changing despite running that script. I get:

.
.
E: Unable to locate package gdb-arm-none-eabi
E: Unable to locate package gcc-arm-embedded
Installing GCC to: /home/fahim/gcc-arm-none-eabi-7-2017-q4-major
 GCC already installed.
RESTART YOUR COMPUTER to complete installation of PX4 development toolchain 

It seems that running the installation script doesn’t update the arm-gcc to the appropriate version :frowning: