Package: dpkg
Version: 1.19.0.5

When installing gcc-avr, I got the error message: 
dpkg: error processing archive 
/var/cache/apt/archives/gcc-avr_1%3a5.4.0+Atmel3.6.0-1build1_amd64.deb 
(--unpack):
 trying to overwrite '/usr/lib/libcc1.so.0.0.0', which is also in package 
gcc-arm-embedded 7-2018q2-1~bionic1

So because I need the gcc-avr package now, and "not today" the
gcc-ARM compiler, I decided to make a backup of the offending file
and then force the install of gcc-avr. 

Then I get: 

dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/lib/libcc1.so', which is also in 
package gcc-arm-embedded 7-2018q2-1~bionic1
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/usr/lib/libcc1.so.0', which is also in 
package gcc-arm-embedded 7-2018q2-1~bionic1

so now it has overwritten two files that I did NOT make a backup of!

I can probably recover by telling dpkg to force-overwrite during
a reinstall of the ARM compiler, and it is of course a packaging
error of those compilers to use a shared place to store these
libraries, but dpkg should have allowed me to make a backup
of the files without me having to figure out how to reinstall
that ARM compiler while overwriting these shared files. 

        Roger. 

-- 
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

Reply via email to