Package: imagemagick-doc Version: 8:6.9.6.6+dfsg-1 Severity: serious User: debian...@lists.debian.org Usertags: piuparts
Hi, during a test with piuparts I noticed your package fails to upgrade from 'wheezy' to 'jessie' to 'stretch'. It installed fine in 'wheezy', and upgraded to 'jessie' successfully, but then the upgrade to 'stretch' failed. >From the attached log (scroll to the bottom...): Preparing to unpack .../imagemagick-doc_8%3a6.9.6.6+dfsg-1_all.deb ... dpkg-maintscript-helper: error: directory '/usr/share/doc/imagemagick-doc' contains files not owned by package imagemagick-doc:all, cannot switch to symlink dpkg: error processing archive /var/cache/apt/archives/imagemagick-doc_8%3a6.9.6.6+dfsg-1_all.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Let's see what we have there: # ls -la /usr/share/doc/imagemagick-doc total 176 drwxr-xr-x 4 root root 220 Dec 6 22:15 . drwxr-xr-x 117 root root 2500 Dec 6 22:16 .. -rw-r--r-- 1 root root 991 Aug 16 12:13 NEWS.Debian.gz -rw-r--r-- 1 root root 31950 Aug 16 12:13 changelog.Debian.gz -rw-r--r-- 1 root root 77347 Oct 25 2014 changelog.gz -rw-r--r-- 1 root root 42835 Aug 16 12:13 copyright drwxr-xr-x 3 root root 1040 Dec 6 22:15 images lrwxrwxrwx 1 root root 21 Apr 7 2016 images.dpkg-backup -> ../imagemagick/images -rw-r--r-- 1 root root 18947 Aug 25 12:05 index.html drwxr-xr-x 5 root root 1340 Dec 6 22:15 www lrwxrwxrwx 1 root root 18 Apr 7 2016 www.dpkg-backup -> ../imagemagick/www # dpkg -S /usr/share/doc/imagemagick-doc/* imagemagick-doc: /usr/share/doc/imagemagick-doc/NEWS.Debian.gz imagemagick-doc: /usr/share/doc/imagemagick-doc/changelog.Debian.gz imagemagick-doc: /usr/share/doc/imagemagick-doc/changelog.gz imagemagick-doc: /usr/share/doc/imagemagick-doc/copyright imagemagick-doc: /usr/share/doc/imagemagick-doc/images dpkg-query: no path found matching pattern /usr/share/doc/imagemagick-doc/images.dpkg-backup imagemagick-doc: /usr/share/doc/imagemagick-doc/index.html imagemagick-doc: /usr/share/doc/imagemagick-doc/www dpkg-query: no path found matching pattern /usr/share/doc/imagemagick-doc/www.dpkg-backup So it's probably the .dpkg-backup files left from the wheezy->jessie upgrade that are now causing problems. cheers, Andreas
imagemagick-doc_8:6.9.6.6+dfsg-1.log.gz
Description: application/gzip