Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
Hi! Does really nobody care about this serious bug - it hinders very much testing of upgrades from sarge to etch. Frank Küster [EMAIL PROTECTED] wrote: Package: x11-common Version: 1:7.0.0 Severity: grave After login in a sarge chroot, I installed tetex-bin (probably that can be much minimized to only xfree86-common, but I don't have time for testing) and then changed sources.list to point to sid. In fact it's really simple - just install xfree86-common in a sarge pbuilder chroot, add sid or etch to sources.list, and do the dist-upgrade. dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack): trying to overwrite `/etc/X11/Xsession', which is also in package xfree86-common dpkg-deb: subprocess paste killed by signal (Broken pipe) The message also sounds as if the fix were particularly easy. Regards, Frank -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX)
Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
On Wed, Mar 15, 2006 at 12:17:49PM +0100, Frank Küster wrote: dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack): trying to overwrite `/etc/X11/Xsession', which is also in package xfree86-common dpkg-deb: subprocess paste killed by signal (Broken pipe) The message also sounds as if the fix were particularly easy. Where can we find documentation about moving conffiles between packages? Denis
Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
On Wed, Mar 15, 2006 at 09:27:00PM +0100, Denis Barbier wrote: On Wed, Mar 15, 2006 at 12:17:49PM +0100, Frank Küster wrote: dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack): trying to overwrite `/etc/X11/Xsession', which is also in package xfree86-common dpkg-deb: subprocess paste killed by signal (Broken pipe) The message also sounds as if the fix were particularly easy. Where can we find documentation about moving conffiles between packages? 'Don't.' Basically, you'll have to keep xfree86-common around, not shipping that file, with a postinst that removes the file if modified. Then you have to add a Replaces: xfree86-common, from x11-common. If you don't care about the user always getting a notice that the file has been customised even when it hasn't, don't bother keeping the package around with a postinst to remove the file; just ad the Replaces. signature.asc Description: Digital signature
Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
On Wed, Mar 15, 2006 at 11:07:33PM +0200, Daniel Stone wrote: On Wed, Mar 15, 2006 at 09:27:00PM +0100, Denis Barbier wrote: On Wed, Mar 15, 2006 at 12:17:49PM +0100, Frank Küster wrote: dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack): trying to overwrite `/etc/X11/Xsession', which is also in package xfree86-common dpkg-deb: subprocess paste killed by signal (Broken pipe) The message also sounds as if the fix were particularly easy. Where can we find documentation about moving conffiles between packages? 'Don't.' Basically, you'll have to keep xfree86-common around, not shipping that file, with a postinst that removes the file if modified. Then you have to add a Replaces: xfree86-common, from x11-common. Hmmm, then x11-common Pre-Depends: xfree86-common to make sure that xfree86-common.postinst is run before x11-common is configured, shouldn't it? Or maybe remove the conffile in xfree86-common.preinst? If you don't care about the user always getting a notice that the file has been customised even when it hasn't, don't bother keeping the package around with a postinst to remove the file; just ad the Replaces. Hmmm again, the Replaces does exist, but if the file is not removed, conflict still happens. Anyway if someone has time to investigate, test and provide a patch, that would be very welcome. Denis
Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
On Wed, Mar 15, 2006 at 10:41:39PM +0100, Denis Barbier wrote: On Wed, Mar 15, 2006 at 11:07:33PM +0200, Daniel Stone wrote: On Wed, Mar 15, 2006 at 09:27:00PM +0100, Denis Barbier wrote: Where can we find documentation about moving conffiles between packages? 'Don't.' Basically, you'll have to keep xfree86-common around, not shipping that file, with a postinst that removes the file if modified. Then you have to add a Replaces: xfree86-common, from x11-common. Hmmm, then x11-common Pre-Depends: xfree86-common to make sure that xfree86-common.postinst is run before x11-common is configured, shouldn't it? Or maybe remove the conffile in xfree86-common.preinst? I guess so, yeah. You can look at the xlibs/xkeyboard-config relationship in Ubuntu (source packages xorg and xkeyboard-config, respectively) to see how I sorted it out for the XKB data. If you don't care about the user always getting a notice that the file has been customised even when it hasn't, don't bother keeping the package around with a postinst to remove the file; just ad the Replaces. Hmmm again, the Replaces does exist, but if the file is not removed, conflict still happens. Anyway if someone has time to investigate, test and provide a patch, that would be very welcome. If the file isn't removed, there's no conflict, but dpkg prompts you because it thinks the conffile has changed. signature.asc Description: Digital signature
Bug#354146: x11-common: Cannot upgrade from sarge: file conflict with xfree86-common
Package: x11-common Version: 1:7.0.0 Severity: grave After login in a sarge chroot, I installed tetex-bin (probably that can be much minimized to only xfree86-common, but I don't have time for testing) and then changed sources.list to point to sid. After apt-get update, I get upon apt-get dist-upgrade (everything with DEBIAN_FRONTEND=noninteractive): [...] Unpacking replacement xfree86-common ... dpkg: warning - unable to delete old directory `/etc/X11/Xsession.d': Directory not empty dpkg: warning - unable to delete old directory `/etc/X11/Xresources': Directory not empty Selecting previously deselected package x11-common. Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-4_all.deb) ... dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack): trying to overwrite `/etc/X11/Xsession', which is also in package xfree86-common dpkg-deb: subprocess paste killed by signal (Broken pipe) -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (100, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.15-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages x11-common depends on: ii debconf [debconf-2.0] 1.4.30.13 Debian configuration management sy ii debianutils 2.8.4 Miscellaneous utilities specific t ii lsb-base 3.0-11bpo1 Linux Standard Base 3.0 init scrip -- debconf information: x11-common/experimental_packages: -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX)