install gcc-arm-embedded returns errors on Lubuntu 14.04

Asked by Andreas

Hello,
I am trying to install install gcc-arm-embedded but am getting an error. Maybe someone can point me in the right direction

Unpacking gcc-arm-embedded (5-2016q1-1~trusty1) ...
dpkg: error processing archive /var/cache/apt/archives/gcc-arm-embedded_5-2016q1-1~trusty1_amd64.deb (--unpack):
 trying to overwrite '/usr/bin/arm-none-eabi-elfedit', which is also in package binutils-arm-none-eabi 2.24-2ubuntu2+4
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcc-arm-embedded_5-2016q1-1~trusty1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@user-virtual-machine:~$

user@user-virtual-machine:~$ lsb_release -irc
Distributor ID: Ubuntu
Release: 14.04
Codename: trusty
user@user-virtual-machine:~$

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Andreas,

It seems you already have the distribution cross-toolchain installed (or at least partially installed). This is the binutils-arm-none-eabi package the error message mentions. You should first uninstall that package and then try to install our toolchain again.

Best regards.

Revision history for this message
Andreas (r-andreas) said :
#2

Hello Thomas,

It worked!

looks like to properly uninstall the distribution cross-toolchain :

sudo apt-get remove gcc-arm-none-eabi
sudo apt-get autoremove

Kind regards
Andreas

Revision history for this message
Rui M. (pixidu) said :
#3

It doesn't work for me. =\

Log:

lab3 @ lab3: ~ $ sudo apt-get autoremove
Reading package lists ... Ready
Building dependency tree
Reading status information ... Ready
The following packages will be REMOVED:
  libisl15
0 packages upgraded, 0 new packages installed, 1 to be removed and 18 not upgraded.
After this operation, 1760 kB of disk space will be released.
Do you want to continue? [Y / n] y
(Reading database ... 196571 files and directories currently installed.)
Removing libisl15: amd64 (0.18-4) ...
Processing 'triggers' for libc-bin (2.27-3ubuntu1) ...
lab3 @ lab3: ~ $ sudo apt-get install gcc-arm-embedded
Reading package lists ... Ready
Building dependency tree
Reading status information ... Ready
The following additional packages will be installed:
  libisl15
The following new packages will be installed:
  gcc-arm-embedded libisl15
0 packages upgraded, 2 new packages installed, 0 to be removed and 18 not upgraded.
You need to download 0 B / 69.4 MB files.
After this operation, an additional 453 MB of disk space will be used.
Do you want to continue? [Y / n] y
To select previously unselected package libisl15: amd64.
(Reading database ... 196566 files and directories currently installed.)
Preparing to unpack ... / libisl15_0.18-4_amd64.deb ...
Unpacking libisl15: amd64 (0.18-4) ...
Preparing to unpack ... / gcc-arm-embedded_7-2018q2-1 ~ bionic1_amd64.deb ...
Unzip gcc-arm-embedded (7-2018q2-1 ~ bionic1) ...
dpkg: error processing file /var/cache/apt/archives/gcc-arm-embedded_7-2018q2-1~bionic1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libcc1.so.0.0.0', which is also in the package gcc-avr 1: 5.4.0 + Atmel3.6.0-1build1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcc-arm-embedded_7-2018q2-1~bionic1_amd64.deb
E: Sub-process / usr / bin / dpkg returned an error code (1)
lab3 @ lab3: ~ $ lsb_release -irc
Distributor ID: Ubuntu
Release: 18.04
Codename: bionic