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

Bug#531280: fails to install, trying to overwrite other packages files

tag 531280 + patch

On Sun, May 31, 2009 at 11:28:57AM +0200, Holger Levsen wrote:
> From the attached log (scroll to the bottom...):
>   Unpacking stardic-common (from .../stardic-common_1.3.1-5_all.deb) ...
>   dpkg: error 
> processing /var/cache/apt/archives/stardic-common_1.3.1-5_all.deb (--unpack):
>    trying to overwrite `/usr/share/stardic/exitmask.xbm', which is also in 
> package stardic
>   dpkg-deb: subprocess paste killed by signal (Broken pipe)
>   Preparing to replace stardic 1.3.1-4.2 
> (using .../stardic_1.3.1-5_amd64.deb) ...
>   Unpacking replacement stardic ...
>   Errors were encountered while processing:
>    /var/cache/apt/archives/stardic-common_1.3.1-5_all.deb
>   E: Sub-process /usr/bin/dpkg returned an error code (1)
> stardic-common alone installs fine, so I file this bug against stardic.

stardic has been split up in stardic and stardic-common starting with
version 1.3.1-5, but the latter does not declare the necessary relations
to the stardic package before the split.  The attached patch addresses
this problem.

Michael Schutte <michi@uiae.at>
diff -u stardic-1.3.1/debian/control stardic-1.3.1/debian/control
--- stardic-1.3.1/debian/control
+++ stardic-1.3.1/debian/control
@@ -7,6 +7,8 @@
 Package: stardic-common
 Architecture: all
+Conflicts: stardic (<< 1.3.1-5)
+Replaces: stardic (<< 1.3.1-5)
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: stardic (= ${binary:Version})
 Description: common files for the English-Chinese dictionary stardic

Attachment: signature.asc
Description: Digital signature

Reply to: