On Mon, Nov 01, 2010 at 11:36:44AM -0500, Jonathan Nieder 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
> 
> [...]
> 
> Could you try that strace command and see how dpkg-divert is called?

Here is it:

11850 execve("/usr/sbin/dpkg-reconfigure", ["dpkg-reconfigure", "dash"], [/* 17 
vars */]) = 0
11851 execve("/usr/local/sbin/locale", ["locale", "charmap"], [/* 17 vars */]) 
= -1 ENOENT (No such file or directory)
11851 execve("/usr/local/bin/locale", ["locale", "charmap"], [/* 17 vars */]) = 
-1 ENOENT (No such file or directory)
11851 execve("/usr/sbin/locale", ["locale", "charmap"], [/* 17 vars */]) = -1 
ENOENT (No such file or directory)
11851 execve("/usr/bin/locale", ["locale", "charmap"], [/* 17 vars */]) = 0
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11852 execve("/bin/sh", ["sh", "-c", "stty -a 2>/dev/null"], [/* 17 vars */]) = 0
11853 execve("/bin/stty", ["stty", "-a"], [/* 16 vars */]) = 0
11852 --- SIGCHLD (Child exited) @ 0 (0) ---
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11854 execve("/bin/sh", ["sh", "-c", "stty -a 2>/dev/null"], [/* 17 vars */]) = 0
11855 execve("/bin/stty", ["stty", "-a"], [/* 16 vars */]) = 0
11854 --- SIGCHLD (Child exited) @ 0 (0) ---
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11856 execve("/usr/local/sbin/dpkg", ["dpkg", "--status", "dash"], [/* 18 vars 
*/]) = -1 ENOENT (No such file or directory)
11856 execve("/usr/local/bin/dpkg", ["dpkg", "--status", "dash"], [/* 18 vars 
*/]) = -1 ENOENT (No such file or directory)
11856 execve("/usr/sbin/dpkg", ["dpkg", "--status", "dash"], [/* 18 vars */]) = 
-1 ENOENT (No such file or directory)
11856 execve("/usr/bin/dpkg", ["dpkg", "--status", "dash"], [/* 18 vars */]) = 0
11856 execve("/usr/local/sbin/dpkg-query", ["dpkg-query", "--status", "--", 
"dash"], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
11856 execve("/usr/local/bin/dpkg-query", ["dpkg-query", "--status", "--", 
"dash"], [/* 18 vars */]) = -1 ENOENT (No such file or directory)
11856 execve("/usr/sbin/dpkg-query", ["dpkg-query", "--status", "--", "dash"], 
[/* 18 vars */]) = -1 ENOENT (No such file or directory)
11856 execve("/usr/bin/dpkg-query", ["dpkg-query", "--status", "--", "dash"], 
[/* 18 vars */]) = 0
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11857 execve("/var/lib/dpkg/info/dash.prerm", ["/var/lib/dpkg/info/dash.prerm", 
"upgrade", "0.5.5.1-6"], [/* 18 vars */]) = 0
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11858 execve("/var/lib/dpkg/info/dash.config", 
["/var/lib/dpkg/info/dash.config", "reconfigure", "0.5.5.1-6"], [/* 19 vars 
*/]) = 0
11859 execve("/usr/bin/locale", ["/usr/bin/locale", "charmap"], [/* 19 vars 
*/]) = 0
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11860 execve("/usr/local/sbin/whiptail", ["whiptail", "--backtitle", "Package 
configuration", "--title", "Configuring dash", "--output-fd", "11", 
"--defaultno", "--yesno", "--", "The system shell is the default "..., "12", 
"77"], [/* 19 vars */]) = -1 ENOENT (No such file or directory)
11860 execve("/usr/local/bin/whiptail", ["whiptail", "--backtitle", "Package 
configuration", "--title", "Configuring dash", "--output-fd", "11", 
"--defaultno", "--yesno", "--", "The system shell is the default "..., "12", 
"77"], [/* 19 vars */]) = -1 ENOENT (No such file or directory)
11860 execve("/usr/sbin/whiptail", ["whiptail", "--backtitle", "Package 
configuration", "--title", "Configuring dash", "--output-fd", "11", 
"--defaultno", "--yesno", "--", "The system shell is the default "..., "12", 
"77"], [/* 19 vars */]) = -1 ENOENT (No such file or directory)
11860 execve("/usr/bin/whiptail", ["whiptail", "--backtitle", "Package 
configuration", "--title", "Configuring dash", "--output-fd", "11", 
"--defaultno", "--yesno", "--", "The system shell is the default "..., "12", 
"77"], [/* 19 vars */]) = 0
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11850 --- SIGCHLD (Child exited) @ 0 (0) ---
11861 execve("/var/lib/dpkg/info/dash.postinst", 
["/var/lib/dpkg/info/dash.postinst", "configure", "0.5.5.1-6"], [/* 19 vars 
*/]) = 0
11862 execve("/usr/bin/dpkg", ["dpkg", "--compare-versions", "0.5.5.1-6", "lt", 
"0.4.18"], [/* 19 vars */]) = 0
11861 --- SIGCHLD (Child exited) @ 0 (0) ---
11863 execve("/usr/sbin/dpkg-divert", ["dpkg-divert", "--listpackage", 
"/bin/sh"], [/* 19 vars */]) = 0
11861 --- SIGCHLD (Child exited) @ 0 (0) ---
11864 execve("/usr/sbin/dpkg-divert", ["dpkg-divert", "--truename", "/bin/sh"], 
[/* 19 vars */]) = 0
11861 --- SIGCHLD (Child exited) @ 0 (0) ---
11865 execve("/usr/sbin/dpkg-divert", ["dpkg-divert", "--package", "dash", 
"--remove", "/bin/sh"], [/* 19 vars */]) = 0
11861 --- SIGCHLD (Child exited) @ 0 (0) ---
11850 --- SIGCHLD (Child exited) @ 0 (0) ---

                Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | a...@deuxchevaux.org  (Mail)
 X   See http://www.asciiribbon.org/              | a...@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to