Package: dpkg
Version: 1.17.21
Severity: grave
File: /usr/bin/dpkg-maintscript-helper

Hi,

dpkg-maintscript-helper fails to find the package files when using
dir_to_symlink (and probably vice versa) and upgrading from arch:any
to arch:all at the same time.

The bug manifests in libcyrus-imap-perl24 upgrade from wheezy to
jessie (filled as #769553):

> Preparing to unpack .../libcyrus-imap-perl24_2.4.17+caldav~beta10-7_all.deb 
> ...
> dpkg-query: no packages found matching libcyrus-imap-perl24:all
> dpkg-query: package 'libcyrus-imap-perl24' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'libcyrus-imap-perl24' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'libcyrus-imap-perl24' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'libcyrus-imap-perl24' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-maintscript-helper: error: directory 
> '/usr/share/doc/libcyrus-imap-perl24' contains files not owned by package 
> libcyrus-imap-perl24:all, cannot switch to symlink
> dpkg: error processing archive 
> /var/cache/apt/archives/libcyrus-imap-perl24_2.4.17+caldav~beta10-7_all.deb 
> (--unpack):
> subprocess new pre-installation script returned error exit status 1

But I can reproduce this with any transitional package from
src:cyrus-imapd-2.4 (anything with -2.4 suffix except
cyrus-common-2.4), f.e.:

> Preparing to unpack .../cyrus-clients-2.4_2.4.17+caldav~beta10-7_all.deb ...
> dpkg-query: no packages found matching cyrus-clients-2.4:all
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-query: package 'cyrus-clients-2.4' is not installed
> Use dpkg --info (= dpkg-deb --info) to examine archive files,
> and dpkg --contents (= dpkg-deb --contents) to list their contents.
> dpkg-maintscript-helper: error: directory '/usr/share/doc/cyrus-clients-2.4' 
> contains files not owned by package cyrus-clients-2.4:all, cannot switch to 
> symlink
> dpkg: error processing archive 
> /var/cache/apt/archives/cyrus-clients-2.4_2.4.17+caldav~beta10-7_all.deb 
> (--unpack):
>  subprocess new pre-installation script returned error exit status 1

Cheers,
Ondrej

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-7
ii  libc6        2.19-12
ii  liblzma5     5.1.1alpha+20120614-2
ii  libselinux1  2.3-2
ii  tar          1.27.1-2
ii  zlib1g       1:1.2.8.dfsg-2

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.0.9.3

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to