October 10

Linux: apt-get failing because of a broken package with an overwrite error


apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
Need to get 77.2 kB of archives.
After this operation, 213 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://http.kali.org/kali/ kali/main libnfc5 i386 1.7.0-3kali1 [77.2 kB]
Fetched 77.2 kB in 0s (141 kB/s)
(Reading database … 289995 files and directories currently installed.)
Unpacking libnfc5:i386 (from …/libnfc5_1.7.0-3kali1_i386.deb) …
dpkg: error processing /var/cache/apt/archives/libnfc5_1.7.0-3kali1_i386.deb (–unpack):
trying to overwrite ‘/lib/udev/rules.d/42-pn53x.rules’, which is also in package libnfc3 1.6.0~svn1469-2kali1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)


dpkg -i –force-overwrite /var/cache/apt/archives/libnfc5_1.7.0-3kali1_i386.deb

apt-get -f install



Thank you D. Lartey for posting a similar solution which helped me resolve this one.

Copyright 2021. All rights reserved.

Posted October 10, 2014 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B