Bug#538822: dash: fails to install overwriting files from bash
clone 538822 -1 retitle -1 dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' notfound -1 dash/0.5.5.1-2.2 kthxbye Hi, Jonathan Nieder wrote: Axel Beckert wrote: 20/0/0 r...@acromantula:pts/3 23:05:57 [~] # dpkg-reconfigure dash Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' 21/0/0 r...@acromantula:pts/3 23:06:10 [~] # [...] 26/0/0 r...@acromantula:pts/3 23:06:46 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' 27/2/0 r...@acromantula:pts/3 23:06:51 [~] # Please file a new bug. Well, then let's clone the current one to have all context including possible relations to other bugs. Regards, Axel -- ,''`. | Axel Beckert a...@debian.org, http://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE `-| 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#538822: dash: fails to install overwriting files from bash
Processing commands for cont...@bugs.debian.org: clone 538822 -1 Bug#538822: dash fails to upgrade if /bin/sh is locally diverted Bug 538822 cloned as bug 602062. retitle -1 dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' Bug #602062 [dash] dash fails to upgrade if /bin/sh is locally diverted Changed Bug title to 'dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash'' from 'dash fails to upgrade if /bin/sh is locally diverted' notfound -1 dash/0.5.5.1-2.2 Bug #602062 [dash] dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' Bug No longer marked as found in versions dash/0.5.5.1-2.2. kthxbye Stopping processing here. Please contact me if you need assistance. -- 602062: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602062 538822: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538822 -1: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=-1 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#602062: Bug#538822: dash: fails to install overwriting files from bash
Axel Beckert wrote: clone 538822 -1 retitle -1 dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' Okay. Jonathan Nieder wrote: Axel Beckert wrote: 20/0/0 r...@acromantula:pts/3 23:05:57 [~] # dpkg-reconfigure dash Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' 21/0/0 r...@acromantula:pts/3 23:06:10 [~] # [...] 26/0/0 r...@acromantula:pts/3 23:06:46 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' 27/2/0 r...@acromantula:pts/3 23:06:51 [~] # Odd. Could you provide the output of dpkg-divert --list /bin/sh /usr/share/man/man1/sh.1.gz readlink /bin/sh debconf-show dash ? Have you resolved the problem locally, or does dpkg-reconfigure dash still give the same message? Thanks again, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#602062: Bug#538822: dash: fails to install overwriting files from bash
Hi Jonathan, Jonathan Nieder wrote: 20/0/0 r...@acromantula:pts/3 23:05:57 [~] # dpkg-reconfigure dash Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' 21/0/0 r...@acromantula:pts/3 23:06:10 [~] # [...] 26/0/0 r...@acromantula:pts/3 23:06:46 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' 27/2/0 r...@acromantula:pts/3 23:06:51 [~] # Odd. Could you provide the output of dpkg-divert --list /bin/sh /usr/share/man/man1/sh.1.gz 1/0/0 r...@acromantula:pts/3 17:06:44 [~] # dpkg-divert --list /bin/sh /usr/share/man/man1/sh.1.gz diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash diversion of /bin/sh to /bin/sh.distrib by bash readlink /bin/sh 2/0/0 r...@acromantula:pts/3 17:07:04 [~] # readlink /bin/sh bash debconf-show dash 3/0/0 r...@acromantula:pts/3 17:07:59 [~] # debconf-show dash * dash/sh: false Have you resolved the problem locally, or does dpkg-reconfigure dash still give the same message? I still have bash as /bin/sh on that system and trying to reconfigure dash to be /bin/sh again, still causes this problem: 4/0/0 r...@acromantula:pts/3 17:08:08 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' HTH. Regards, Axel -- ,''`. | Axel Beckert a...@debian.org, http://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE `-| 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#602062: Bug#538822: dash: fails to install overwriting files from bash
Axel Beckert wrote: I still have bash as /bin/sh on that system and trying to reconfigure dash to be /bin/sh again, still causes this problem: 4/0/0 r...@acromantula:pts/3 17:08:08 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' Based on strace -f -o log -e execve dpkg-reconfigure dash it seems like dpkg-reconfigure calls prerm upgrade version config reconfigure version postinst configure version dash.prerm doesn't do anything on upgrade. dash.config puts up the deconf prompt. The relevant part of dash.postinst looks like: diverter=$(dpkg-divert --listpackage $dfile) truename=$(dpkg-divert --truename $dfile) case $1 in true) if [ $diverter != dash ]; then # Let dpkg-divert error out; we are not taking # over the diversion, unless we added it # ourselves on behalf of bash. if [ $diverter = bash ]; then dpkg-divert --package bash --remove $dfile else dpkg-divert --package dash --remove $dfile # Make sure we die: echo This should never be reached exit 1 fi which would be trying to remove a diversion by bash in your case, I'd think. Could you try that strace command and see how dpkg-divert is called? Mystified, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#602062: Bug#538822: dash: fails to install overwriting files from bash
severity 582554 serious forcemerge 582554 602062 quit Axel Beckert wrote: clone 538822 -1 retitle -1 dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' http://bugs.debian.org/582554 describes a similar problem. Thanks, that was very helpful. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#538822: dash: fails to install overwriting files from bash
Processing commands for cont...@bugs.debian.org: severity 582554 serious Bug #582554 {Done: Mehdi Dogguy me...@dogguy.org} [dash] dash: cannot be dpkg-reconfigured because of broken diversion Severity set to 'serious' from 'important' forcemerge 582554 602062 Bug#582554: dash: cannot be dpkg-reconfigured because of broken diversion Bug#602062: dash: dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' Forcibly Merged 582554 602062. quit Stopping processing here. Please contact me if you need assistance. -- 602062: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602062 582554: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582554 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
unmerge 538822 retitle 538822 dash fails to upgrade if /bin/sh is locally diverted quit Hi, Axel Beckert wrote: 20/0/0 r...@acromantula:pts/3 23:05:57 [~] # dpkg-reconfigure dash Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' 21/0/0 r...@acromantula:pts/3 23:06:10 [~] # [...] 26/0/0 r...@acromantula:pts/3 23:06:46 [~] # dpkg-reconfigure dash dpkg-divert: mismatch on package when removing `diversion of /bin/sh by dash' found `diversion of /bin/sh to /bin/sh.distrib by bash' 27/2/0 r...@acromantula:pts/3 23:06:51 [~] # Please file a new bug. Thanks, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Processed: Re: Bug#538822: dash: fails to install overwriting files from bash
Processing commands for cont...@bugs.debian.org: unmerge 538822 Bug#538822: dash: fails to install overwriting files from bash Bug#540512: dash upgrade breaks mksh-as-/bin/sh Disconnected #538822 from all other report(s). retitle 538822 dash fails to upgrade if /bin/sh is locally diverted Bug #538822 [dash] dash: fails to install overwriting files from bash Changed Bug title to 'dash fails to upgrade if /bin/sh is locally diverted' from 'dash: fails to install overwriting files from bash' quit Stopping processing here. Please contact me if you need assistance. -- 538822: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538822 540512: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540512 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi, while beeing hit once more by this bug and reading through the bug log which is discussing the alternatives system: I hope you are aware that dash is actually not using the alternatives system but rather is shipping a symlink ln -s dash /bin/sh As I wrote in my private workaround (see above in the bug log) this symlink is the problem. Kind regards Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Package: dash Version: 0.5.5.1-2 Severity: grave Justification: renders package unusable Upgrading dash fails: (Reading database ... 181192 files and directories currently installed.) Preparing to replace dash 0.5.5.1-2 (using .../dash_0.5.5.1-2.2_amd64.deb) ... Adding `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Unpacking replacement dash ... dpkg: error processing /var/cache/apt/archives/dash_0.5.5.1-2.2_amd64.deb (--unpack): trying to overwrite `/bin/sh', which is also in package bash Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Processing triggers for man-db ... Processing triggers for menu ... Errors were encountered while processing: /var/cache/apt/archives/dash_0.5.5.1-2.2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: If I understand this correctly bash should release the files and dash should conflict with the current version of bash. In any case this is not a smooth upgrade. Helmut -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28.7 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages dash depends on: ii libc6 2.9-20 GNU C Library: Shared libraries dash recommends no packages. dash suggests no packages. -- debconf information: * dash/sh: false -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi, On Monday 27 July 2009 12:21:40 you wrote: Package: dash Version: 0.5.5.1-2 Severity: grave Justification: renders package unusable Upgrading dash fails: (Reading database ... 181192 files and directories currently installed.) Preparing to replace dash 0.5.5.1-2 (using .../dash_0.5.5.1-2.2_amd64.deb) ... Adding `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Unpacking replacement dash ... dpkg: error processing /var/cache/apt/archives/dash_0.5.5.1-2.2_amd64.deb (--unpack): trying to overwrite `/bin/sh', which is also in package bash Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' Processing triggers for man-db ... Processing triggers for menu ... Errors were encountered while processing: /var/cache/apt/archives/dash_0.5.5.1-2.2_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: If I understand this correctly bash should release the files and dash should conflict with the current version of bash. In any case this is not a smooth upgrade. Could you please provide the output of $ dpkg-divert --list /bin/sh, and readlink -f /bin/sh? We tested many scenarios and we didn't find any failure, so this must be something that should not be common. Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi, On Tue, Jul 28, 2009 at 01:14:26AM +0200, Raphael Geissert wrote: Could you please provide the output of $ dpkg-divert --list /bin/sh, and readlink -f /bin/sh? $ dpkg-divert --list /bin/sh local diversion of /bin/sh to /bin/sh.distrib $ readlink -f /bin/sh /bin/dash $ We tested many scenarios and we didn't find any failure, so this must be something that should not be common. I'm one of those users who started early with using dash as /bin/sh. Maybe it is connected to early code making dash available as /bin/sh? Helmut -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi, On Tuesday 28 July 2009 01:28:55 Helmut Grohne wrote: Hi, On Tue, Jul 28, 2009 at 01:14:26AM +0200, Raphael Geissert wrote: Could you please provide the output of $ dpkg-divert --list /bin/sh, and readlink -f /bin/sh? $ dpkg-divert --list /bin/sh local diversion of /bin/sh to /bin/sh.distrib And /bin/sh.distrib points to dash? :-/ $ readlink -f /bin/sh /bin/dash $ We tested many scenarios and we didn't find any failure, so this must be something that should not be common. I'm one of those users who started early with using dash as /bin/sh. Maybe it is connected to early code making dash available as /bin/sh? I'm not quite sure, I'll take a look at this tomorrow. But unless dash used to use something other than dpkg-divert to modify the link, I can't immediately think of an scenario where that would happen. Of course, it might be that I'm just too sleepy and am missing something :) Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi Raphael, On Tue, Jul 28, 2009 at 01:41:01AM +0200, Raphael Geissert wrote: And /bin/sh.distrib points to dash? :-/ No: $ readlink -f /bin/sh.distrib /bin/bash $ You probably also want to know my bash version. It is 3.2-6. I'm not quite sure, I'll take a look at this tomorrow. But unless dash used to use something other than dpkg-divert to modify the link, I can't immediately think of an scenario where that would happen. Of course, it might be that I'm just too sleepy and am missing something :) Thanks for investigating. If you need anything else, please ask. Unfortunately I haven't actively worked with diversions yet. Helmut -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
On Tuesday 28 July 2009 01:48:14 Helmut Grohne wrote: Hi Raphael, On Tue, Jul 28, 2009 at 01:41:01AM +0200, Raphael Geissert wrote: And /bin/sh.distrib points to dash? :-/ No: $ readlink -f /bin/sh.distrib /bin/bash $ Ah, right; I really need to get some sleep, the diversion looks fine. Although either you added it manually (did you?) or dash used to use local diversions (instead of setting the package name on the call to dpkg-divert). Do you remember more or less since when you started using dash as /bin/sh? You probably also want to know my bash version. It is 3.2-6. I'm not quite sure, I'll take a look at this tomorrow. But unless dash used to use something other than dpkg-divert to modify the link, I can't immediately think of an scenario where that would happen. Of course, it might be that I'm just too sleepy and am missing something :) Thanks for investigating. If you need anything else, please ask. Unfortunately I haven't actively worked with diversions yet. Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#538822: dash: fails to install overwriting files from bash
Hi Raphael, On Tue, Jul 28, 2009 at 02:09:36AM +0200, Raphael Geissert wrote: Ah, right; I really need to get some sleep, the diversion looks fine. Although either you added it manually (did you?) or dash used to use local diversions (instead of setting the package name on the call to dpkg-divert). I'm quite sure I did not manually change diversions for /bin/sh. If I remember correctly I once had to change it back using dpkg-reconfigure dash after something set it to bash. Do you remember more or less since when you started using dash as /bin/sh? Not really. I seem to have installed dash 0.5.4-12 on Aug 26 2008, but I have probably been using it longer. It's just long ago. I think it was some rumors about dash speeding up the boot process that made me switch. Could it be that this was some debconf talk? Helmut -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org