Dash diversion issue and workaround
Dominique Dumont <[email protected]>
| Newsgroups | gmane.linux.debian.devel.embedded |
|---|---|
| Message-ID | <[email protected]> |
Hello I have some issues configuring dash and bash in a multistrap'ed ARM chroot. I get the following error: # dpkg --configure dash Setting up dash (0.5.5.1-7.4em1) ... No diversion 'diversion of /bin/sh by dash', none removed. This should never be reached dpkg: error processing dash (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: dash Following this hint mentioned in [1], I first attempted to work around this issue by running: # /var/lib/dpkg/info/dash.preinst Adding 'diversion of /bin/sh to /bin/sh.distrib by dash' /bin/ln: creating symbolic link `/usr/share/man/man1/sh.1.gz.tmp': No such file or directory Since dash package was stripped of its doc when moved into emdebian, this is not too much of a surprise. I've manually created /usr/share/man/man1, but the configuration was still a big mess. I've started over and resolved this issue by creating the man directory *before* trying to run dpkg --configure -a. Then the configuration almost work: # dpkg --configure -a [...] Configuring dash ---------------- The system shell is the default command interpreter for shell scripts. Using dash as the system shell will improve the system's overall performance. It does not alter the shell presented to interactive users. Use dash as the default system shell (/bin/sh)? y No diversion 'diversion of /bin/sh by dash', none removed. This should never be reached dpkg: error processing dash (--configure): subprocess installed post-installation script returned error exit status 1 [...] Errors were encountered while processing: dash bash # /var/lib/dpkg/info/dash.preinst Adding 'diversion of /bin/sh to /bin/sh.distrib by dash' Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' # dpkg --configure -a Setting up dash (0.5.5.1-7.4em1) ... Setting up bash (4.1-3em1) ... update-alternatives: error: alternative path /usr/share/man/man7/bash- builtins.7.gz doesn't exist. I guess that not running postint scripts with multistrap is fine, but not running preinst scripts can still be an issue. HTH [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546528#21
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABAgAGBQJOy600AAoJEMMfT9lJqytsN5UP/1fEY3p1/gl3FXa6G5m14Pg8 EzkKIvXZOa2ynkl6TLnQX7v2t64Qm3exhdQNkcViHizJfFk7vll69joc/xCdrGtn ZnXKcS9HP1eq+IJRHE8XrgJeOJgIlvf7HqK5iYh57QgZkXyZz0gysEkqlpUPGJRd 2yVr8YQFKbQUelQxhv0a0jtF97ig81eHkJmCI3xYu/vS6r6UD25Q5rB9fm/dn3zz 8tJUbgQ47f9cu77wgPI7po0bnqM1hQkFo/ZiBY9Sq3ibO5f7phx1kTgOGGiVQXWF RLc1IwE75bYAz74/Ej5u/y5QUuDmFKlnz0S0ESi6NKqs4qI4evaPxWjN0M9ePA+z 516MTNNxyMIYJFnCrU5QtDgfYewBSrUnr7t9z1vypFEAGi4HWl/CO1M+J0cDRpxv Aj95pJutV3XZdPC+QxcdaoMN0Gc4c+Q9Fwe+u27jqJZzies7odtQCTnoYMi75HXf VhAkLQbCaxOTGJv5TD/EufbhimQ81gCJi9vd/1lUrLSyJauTVJWqO3gfOmlpueSt bTDtr0SqAd0xdDsObguhOVEtAKtBqXeSr0w+ORgMI6SSvj4zSRPrVSQ7zqz8Xlx2 bICwA26ZqRAYlfVhihlKtLJ31wEiGE7m1Rgep1mQ+iza/wF6eXvOC57oUmvHle0n J93DZBQQeue6N8gnJmBg =DCg7 -----END PGP SIGNATURE-----