Bug#355250: tetex-doc: collides with tetex-doc-nonfree
Package: dpkg
Version: 1.13.16
Severity: important
dpkg seems to ignore the version in "Replaces: foo (<= $version)" when
the Replacing package is first installed, and the replaced one only
afterwards.
"Mario 'BitKoenig' Holbe" <Mario.Holbe@TU-Ilmenau.DE> wrote:
> Package: tetex-doc-nonfree
> Version: 1.0-1
> Severity: important
>
> Hello,
>
> tetex-doc-nonfree contains files which are also in tetex-doc 3.0-15.
>
> Unpacking tetex-doc-nonfree (from .../tetex-doc-nonfree_1.0-1_all.deb) ...
> dpkg: error processing /var/cache/apt/archives/tetex-doc-nonfree_1.0-1_all.deb (--install):
> trying to overwrite `/usr/share/doc/texmf/context/base/ms-cb-en.pdf.gz', which is also in package tetex-doc
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
> /var/cache/apt/archives/tetex-doc-nonfree_1.0-1_all.deb
>
[...]
> I also know the bug would be better suited against tetex-doc 3.0-15,
> however, unfortunately, tetex-doc 3.0-15 is upgradable from 3.0-14 with
> tetex-doc-nonfree 1.0-1 present. I don't know why this is (perhaps some
> bug in dpkg?), but the other way around (installing tetex-doc-nonfree
> 1.0-1 while tetex-doc 3.0-15 is present) fails as shown above, so I file
> the bug against tetex-doc-nonfree.
In fact this seems to be a bug in dpkg. The underlying
tetex-doc-nonfree bug is that it should declare
Replaces: tetex-doc (<= 3.0-15)
but it does only
Replaces: tetex-doc (<= 3.0-14)
This is how it looks like if tetex-doc_3.0-14 and
tetex-doc-nonfree_1.0-1 are installed first, and tetex-doc_3.0-15
afterwards:
# apt-get install tetex-doc
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
libapache2-mod-php4 libapache2-mod-php5
Recommended packages:
tetex-bin dvi2tty xpdf pdf-viewer gv postscript-viewer mozilla-browser www-browser
The following packages will be upgraded:
tetex-doc
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 50.1MB of archives.
After unpacking 4096B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
tetex-doc
Authentication warning overridden.
Get:1 http://localhost sid/main tetex-doc 3.0-15 [50.1MB]
Fetched 50.1MB in 10m39s (78.5kB/s)
(Reading database ... 13169 files and directories currently installed.)
Preparing to replace tetex-doc 3.0-14 (using .../tetex-doc_3.0-15_all.deb) ...
Unpacking replacement tetex-doc ...
Replaced by files in installed package tetex-doc-nonfree ...
Setting up tetex-doc (3.0-15) ...
Note that reproducing this bug in unstable won't work from tomorrow,
because I've just uploaded tetex-doc-nonfree_1.0-2 with a correct
version in Replaces.
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)
Reply to: