Package: dpkg
Version: 1.17.27
Severity: normal
Dear Maintainer,
During a dist-upgrade of python2.7 dpkg aborted the installation of the new
package libpython2.7-minimal as it claims a conffile was still owned by the old
package while being moved to the new package. The conffile was locally diverted
by me:
- python2.7-minimal 2.7.3-6 has /etc/python2.7/sitecustomize.py
- With 2.7.4-2 the conffile was moved to the new package
libpython2.7-minimal_2.7.9-2
- dpkg aborts because of:
> Unpacking libpython2.7-minimal:amd64 (from
> libpython2.7-minimal_2.7.9-2_amd64.deb) ...
> dpkg: error processing libpython2.7-minimal_2.7.9-2_amd64.deb (--install):
> trying to overwrite '/etc/python2.7/sitecustomize.py', which is also in
> package python2.7-minimal 2.7.9-2
$ apt-cache show libpython2.7-minimal
Package: libpython2.7-minimal
Replaces: libpython2.7-stdlib (<< 2.7.8-7), python2.7 (<< 2.7.4-2),
python2.7-minimal (<< 2.7.3-10)
$ dpkg -s python2.7-minimal
Package: python2.7-minimal
Version: 2.7.9-2
Config-Version: 2.7.3-6.7.201608291252
$ dpkg-query -W -f
'${Package}\n${Version}\n${Config-Version}\n${Conffiles}\n\n' python2.7-minimal
libpython2.7-minimal
libpython2.7-minimal
python2.7-minimal
2.7.9-2
2.7.3-6.7.201608291252
/etc/python2.7/sitecustomize.py d6b276695157bde06a56ba1b2bc53670 obsolete
# dpkg-divert --list /etc/python2.7/sitecustomize.py
local diversion of /etc/python2.7/sitecustomize.py to
/etc/python2.7/sitecustomize.py.debian
If I undo my local divert, the new package can be installed without problems:
Maybe related:
#363524 Problem diverting conffile
#595112 dpkg-maintscript-helper: new helper for moving a conffile between
packages
#672945 dpkg should support moving a conffile between packages
As the conffile is moved from python2.7-minimal to libpython2.7-minimal,
python2.7-minimal does not use "dpkg-maintscript-helper rm_conffile".
Yes, I know <https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html>:
> Do not attempt to divert a conffile, as dpkg does not handle it well.
I would have expected dpkg-divert to not having such subtile side effects.
-- System Information:
Debian Release: 8.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (90, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dpkg depends on:
ii libbz2-1.0 1.0.6-7+b3
ii libc6 2.19-18+deb8u4
ii liblzma5 5.1.1alpha+20120614-2+b3
ii libselinux1 2.3-2
ii tar 1.27.1-2+b1
ii zlib1g 1:1.2.8.dfsg-2+b1
dpkg recommends no packages.
Versions of packages dpkg suggests:
ii apt 1.0.9.8.3
-- no debconf information