Package: dpkg
Version: 1.17.23
Severity: serious
Control: block 774918 by -1

Hi Guillem,

cups-pdf recently switched to dir_to_symlink which explodes for whatever
reason (the cups-pdf bug is #774918):

  Selecting previously unselected package printer-driver-cups-pdf.
  Preparing to unpack .../printer-driver-cups-pdf_2.6.1-14.1_amd64.deb ...
  Unpacking printer-driver-cups-pdf (2.6.1-14.1) ...
  Replacing files in old package cups-pdf (2.6.1-6) ...
  Preparing to unpack .../cups-pdf_2.6.1-14.1_all.deb ...
  dpkg-query: no packages found matching cups-pdf:all
  dpkg-query: package 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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 'cups-pdf' 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/cups-pdf' contains 
files not owned by package cups-pdf:all, cannot switch to symlink
  dpkg: error processing archive 
/var/cache/apt/archives/cups-pdf_2.6.1-14.1_all.deb (--unpack):
   subprocess new pre-installation script returned error exit status 1
  Preparing to unpack .../libreadline5_5.2+dfsg-2_amd64.deb ...
  Unpacking libreadline5:amd64 (5.2+dfsg-2) over (5.2+dfsg-2~deb7u1) ...
  Preparing to unpack .../libpam-runtime_1.1.8-3.1_all.deb ...
  Unpacking libpam-runtime (1.1.8-3.1) over (1.1.3-7.1) ...
  Errors were encountered while processing:
   /var/cache/apt/archives/cups-pdf_2.6.1-14.1_all.deb

At this point we still have these files:

# dpkg -S $(find /usr/share/doc/cups-pdf)
cups-pdf: /usr/share/doc/cups-pdf
cups-pdf: /usr/share/doc/cups-pdf/copyright
cups-pdf: /usr/share/doc/cups-pdf/buildinfo.gz
cups-pdf: /usr/share/doc/cups-pdf/changelog.gz
cups-pdf: /usr/share/doc/cups-pdf/README.gz
cups-pdf: /usr/share/doc/cups-pdf/README.Debian
cups-pdf: /usr/share/doc/cups-pdf/changelog.Debian.gz
cups-pdf: /usr/share/doc/cups-pdf/examples
cups-pdf: /usr/share/doc/cups-pdf/examples/Contents
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/update-module
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/INSTALL-SELinux
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/cups_pdf.te
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/cups_pdf.te_orig
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/ChangeLog
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/README
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv.conf
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1
cups-pdf: 
/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/cups-pdf-dispatch.gz
cups-pdf: 
/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/cups-pdf-dispatch.conf
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/README
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples
cups-pdf: 
/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples/cups-pdf-dispatch-ru.conf.gz
cups-pdf: 
/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples/cups-pdf-dispatch-ldap.conf

and the preinst looks like this:

#!/bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper dir_to_symlink /usr/share/doc/cups-pdf 
/usr/share/doc/printer-driver-cups-pdf -- "$@"
# End automatically added section


Andreas

Attachment: cups-pdf_2.6.1-14.1.log.gz
Description: application/gzip

Reply via email to