Package: dpkg Version: 1.15.3.1 Severity: wishlist When testing builds of multiple-binary packages, I often do something like 'dpkg -iO *.deb' to upgrade all the ones I have installed. Normally I do this in a clean temporary directory so there's only one version available, but sometimes I forget, and end up with something like this happening:
$ sudo dpkg -iO *.deb dpkg: warning: downgrading grub-common from 1.96+20090725-1ubuntu3 to 1.96+20080228-1. (Reading database ... 386705 files and directories currently installed.) Preparing to replace grub-common 1.96+20090725-1ubuntu3 (using grub-common_1.96+20080228-1_i386.deb) ... Unpacking replacement grub-common ... Preparing to replace grub-common 1.96+20080228-1 (using grub-common_1.96+20090725-1ubuntu2_i386.deb) ... Unpacking replacement grub-common ... Preparing to replace grub-common 1.96+20090725-1ubuntu2 (using grub-common_1.96+20090725-1ubuntu3_i386.deb) ... Unpacking replacement grub-common ... Skipping deselected package grub-coreboot. Skipping deselected package grub-coreboot. Skipping deselected package grub-efi-amd64. Skipping deselected package grub-efi-amd64. Skipping deselected package grub-efi-ia32. Skipping deselected package grub-efi-ia32. Skipping deselected package grub-efi. Skipping deselected package grub-efi. Skipping deselected package grub-efi. Skipping deselected package grub-firmware-qemu. Skipping deselected package grub-firmware-qemu. Skipping deselected package grub-ieee1275. Skipping deselected package grub-ieee1275. Skipping deselected package grub-ieee1275. Skipping deselected package grub-linuxbios. Skipping deselected package grub-linuxbios. Skipping deselected package grub-linuxbios. dpkg: warning: downgrading grub-pc from 1.96+20090725-1ubuntu3 to 1.96+20080228-1. Preparing to replace grub-pc 1.96+20090725-1ubuntu3 (using grub-pc_1.96+20080228-1_i386.deb) ... Unpacking replacement grub-pc ... dpkg: error processing grub-pc_1.96+20080228-1_i386.deb (--install): trying to overwrite `/usr/sbin/grub-mkdevicemap', which is also in package grub-common dpkg-deb: subprocess paste killed by signal (Broken pipe) dpkg: warning: downgrading grub-pc from 1.96+20090725-1ubuntu3 to 1.96+20090725-1ubuntu2. Preparing to replace grub-pc 1.96+20090725-1ubuntu3 (using grub-pc_1.96+20090725-1ubuntu2_i386.deb) ... Unpacking replacement grub-pc ... Preparing to replace grub-pc 1.96+20090725-1ubuntu2 (using grub-pc_1.96+20090725-1ubuntu3_i386.deb) ... Unpacking replacement grub-pc ... Skipping deselected package grub-rescue-pc. Skipping deselected package grub-rescue-pc. Skipping deselected package grub-rescue-pc. Skipping deselected package grub2. Skipping deselected package grub2. Skipping deselected package grub2. More than one copy of package grub-common has been unpacked in this run ! Only configuring it once. More than one copy of package grub-common has been unpacked in this run ! Only configuring it once. More than one copy of package grub-pc has been unpacked in this run ! Only configuring it once. Setting up grub-common (1.96+20090725-1ubuntu3) ... Installing new version of config file /etc/grub.d/00_header ... Processing triggers for man-db ... Setting up grub-pc (1.96+20090725-1ubuntu3) ... Replacing config file /etc/default/grub with new version ^Cdpkg: error processing grub-pc (--install): subprocess installed post-installation script killed by signal (Interrupt) ^C I think that if dpkg is asked to unpack multiple versions of the same package (modulo multiarch), it could usefully simply skip all but the highest version. (Yes, I know that either -G or -GE, depending on the circumstances, will have a sort of similar effect. I still think this is a useful request even given that; if I don't have the package installed right now and do 'dpkg -i *.deb', I don't see any reason why it shouldn't just use the newest version rather than having some random effects based on directory entry ordering.) Thanks, -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org