Your message dated Tue, 14 Jul 2020 21:53:59 -0400
with message-id <[email protected]>
and subject line Could not reproduce
has caused the Debian Bug report #852500,
regarding ksh: First install of ksh fails on Stretch due to update-alternatives
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
852500: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852500
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 93u+20120801-3.1
thanks
Thanks for the report.
I was not able to reproduce the issue on Stretch.
Having said that, there's been a number of improvements for alternatives
support in recent versions that may work better. Let us know if you run
into any issues still on that and we can take a look. I will close this
bug in the meantime.
Anuradha
--- End Message ---