Package: ksh
Version: 93u+20120801-2
Severity: normal

There's something wrong with the update-alternatives handling in the
postinst.  You can see this failure consistently on a stretch system
by purging and reinstalling the package.  The first install always
fails, but it will correct itself with a 'dpkg --configure -a'
afterwards.

The problem does not occur in Jessie, nor does it occur in upgrades
from the Jessie version to the Stretch version.

A log of an attempted install follows:


# apt-get install ksh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  ksh
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 0 B/876 kB of archives.
After this operation, 3,314 kB of additional disk space will be used.
Selecting previously unselected package ksh.
(Reading database ... 316301 files and directories currently installed.)
Preparing to unpack .../ksh_93u+20120801-2_amd64.deb ...
Unpacking ksh (93u+20120801-2) ...
Setting up ksh (93u+20120801-2) ...
update-alternatives: using /bin/ksh93 to provide /bin/ksh (ksh) in auto mode
update-alternatives: error: unable to install '/usr/bin/ksh.dpkg-tmp' as 
'/usr/bin/ksh': No such file or directory
dpkg: error processing package ksh (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
  ksh
E: Sub-process /usr/bin/dpkg returned an error code (1)

# dpkg --configure -a
Setting up ksh (93u+20120801-2) ...
update-alternatives: warning: forcing reinstallation of alternative /bin/ksh93 
because link group ksh is broken


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ksh depends on:
ii  binfmt-support  2.1.6-2
ii  libc6           2.24-8

ksh recommends no packages.

ksh suggests no packages.

-- no debconf information

Reply via email to