[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removing file??



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


> dpkg: error processing archive 
> /var/cache/apt/archives/codeblocks-dev_20.03-3.1+
> b1_amd64.deb (--unpack):
>   trying to overwrite '/usr/include/codeblocks/Alignment.h', which 
is 
> also in pac
> kage codeblocks-headers 20.03
> dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
> Errors were encountered while processing:
>   /var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)

This can occur when you have upgraded a Debian system from one major 
version to another "in place", that is, without wiping and 
reinstalling.

Once you've gotten it to the point where this is the only error left, 
you can fix it by using a sledgehammer:

# 
dpkg -i --force-overwrite /var/cache/apt/archives/codeblocks-dev_20.03-3.1+b1_amd64.deb

What this does is tell the Debian package installer to do the 
overwrite. When dpkg is run as an "automatic" process it won't do it 
because such a conflict can cause serious problems if it occurs 
within a Debian version, but not _between_ Debian versions.

Or when I was running Sid for several years.

Then run your usual package manager process again to finish anything 
this error was preventing.

In my experience this kind of thing has only happened _between_ Debian 
major versions, and as such forcing the overwrite has not caused any 
problems that I could discern.

That it happens so rarely and only in such extreme circumstances is a 
testament to the quality of the Debian package maintainers and their 
attention to detail.

Curt-

- -- 
You may my glories and my state dispose,
But not my griefs; still am I king of those.
 --- William Shakespeare, "Richard II"

-----BEGIN PGP SIGNATURE-----

iHUEAREIAB0WIQTaYVhJsIalt8scIDa2T1fo1pHhqQUCY246EwAKCRC2T1fo1pHh
qVn2AQDV/gJz0f19Uw+TfMOWPQWwxuqiVYh7frnnWnCSvBPs4gEAy4o6E0/K7DAf
QUlWBoo5DPui+tlBeeIL0uLFqNj6lcQ=
=abMp
-----END PGP SIGNATURE-----


Reply to: