On Wednesday 24 November 2004 09:02, Michael Ben-Nes wrote:
> Hello
>
> in the middle of upgrading postgres the whole proccess died asking me to
> run apt-get -f install

This happens once in a while. No need to be especially alarmed.

>
> the result of the action is here:
>
> apt-get -f install
[...]
> dpkg: error processing
> /var/cache/apt/archives/libkrb5-dev_1.2.4-5woody6_i386.deb (--unpack):
>  trying to overwrite `/usr/include/com_err.h', which is also in package
> comerr-dev

The purists have answered the "right" answers. Here is my quick-and-dirty 
method.
The error is that 2 packages have the same file (/usr/include/com_err.h). But 
since you don't really care much about this file (i.e. it probably doesn't 
really matter which of the versions stay on your system, they might even both 
have the same version of the file) my solution is to do:
dpkg -i 
--force-overwrite /var/cache/apt/archives/libkrb5-dev_1.2.4-5woody6_i386.deb

This will manually install the package, forcing an overwrite of the offending 
file. After that, run 
apt-get -f install
again, and repeat for any such errors that happen. Voila! the system is 
installed and you spent less than 10 seconds on it.

I've been doing this for 2 years (happens to me once every few months) and 
haven't seen any downsides. But again- this is the 'quick and dirty' and not 
necessarily the "right" answer.

-- 

- Aviram

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to