Debian Bug report logs -
#888180
dash upgrade fails, resulting in /bin/sh linking to nonexisting dash binary
Reported by: Adrian Bunk <bunk@debian.org>
Date: Tue, 23 Jan 2018 19:57:02 UTC
Severity: critical
Tags: patch
Merged with 888221
Found in version dash/0.5.8-2.6
Fixed in version dash/0.5.8-2.7
Done: Andrew Shadura <andrewsh@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#888180; Package dash.
(Tue, 23 Jan 2018 19:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Adrian Bunk <bunk@debian.org>:
New Bug report received and forwarded. Copy sent to Gerrit Pape <pape@smarden.org>.
(Tue, 23 Jan 2018 19:57:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dash
Version: 0.5.8-2.6
Severity: critical
Preparing to unpack .../dash_0.5.8-2.6_amd64.deb ...
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'
Unpacking dash (0.5.8-2.6) over (0.5.8-2.5) ...
dpkg: error: error executing hook 'if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkg-config-dpkghook; then /usr/share/pkg-config-dpkghook update; fi', exit code 32512
E: Sub-process /usr/bin/dpkg returned an error code (2)
E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
E: Sub-process returned an error code
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#888180; Package dash.
(Tue, 23 Jan 2018 20:09:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Adrian Bunk <bunk@debian.org>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>.
(Tue, 23 Jan 2018 20:09:06 GMT) (full text, mbox, link).
Message #10 received at 888180@bugs.debian.org (full text, mbox, reply):
Control: retitle -1 dash upgrade fails, resulting in /bin/sh linking to nonexisting dash binary
The symlink is actually still there, /bin/dash is missing at that point:
$ ls -la /bin/sh /bin/dash
ls: cannot access '/bin/dash': No such file or directory
lrwxrwxrwx 1 root root 4 Jan 23 19:53 /bin/sh -> dash
$
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Changed Bug title to 'dash upgrade fails, resulting in /bin/sh linking to nonexisting dash binary' from 'dash upgrade fails, resulting in no /bin/sh symlink'.
Request was from Adrian Bunk <bunk@debian.org>
to 888180-submit@bugs.debian.org.
(Tue, 23 Jan 2018 20:09:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#888180; Package dash.
(Tue, 23 Jan 2018 20:57:03 GMT) (full text, mbox, link).
Acknowledgement sent
to James Cowgill <jcowgill@debian.org>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>.
(Tue, 23 Jan 2018 20:57:03 GMT) (full text, mbox, link).
Message #17 received at 888180@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Control: tags -1 patch
On 23/01/18 20:04, Adrian Bunk wrote:
> Control: retitle -1 dash upgrade fails, resulting in /bin/sh linking to nonexisting dash binary
>
> The symlink is actually still there, /bin/dash is missing at that point:
>
> $ ls -la /bin/sh /bin/dash
> ls: cannot access '/bin/dash': No such file or directory
> lrwxrwxrwx 1 root root 4 Jan 23 19:53 /bin/sh -> dash
> $
$ dpkg -L dash
/.
/usr
/usr/bin
/usr/bin/dash
The attached patch works in a quick test.
James
[dash.debdiff (text/plain, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Added tag(s) patch.
Request was from James Cowgill <jcowgill@debian.org>
to 888180-submit@bugs.debian.org.
(Tue, 23 Jan 2018 20:57:03 GMT) (full text, mbox, link).
Reply sent
to Andrew Shadura <andrewsh@debian.org>:
You have taken responsibility.
(Tue, 23 Jan 2018 22:09:03 GMT) (full text, mbox, link).
Notification sent
to Adrian Bunk <bunk@debian.org>:
Bug acknowledged by developer.
(Tue, 23 Jan 2018 22:09:03 GMT) (full text, mbox, link).
Message #24 received at 888180-close@bugs.debian.org (full text, mbox, reply):
Source: dash
Source-Version: 0.5.8-2.7
We believe that the bug you reported is fixed in the latest version of
dash, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 888180@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andrew Shadura <andrewsh@debian.org> (supplier of updated dash package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 23 Jan 2018 22:51:37 +0100
Source: dash
Binary: dash ash
Architecture: source
Version: 0.5.8-2.7
Distribution: unstable
Urgency: medium
Maintainer: Gerrit Pape <pape@smarden.org>
Changed-By: Andrew Shadura <andrewsh@debian.org>
Description:
ash - compatibility package for dash
dash - POSIX-compliant shell
Closes: 888180
Changes:
dash (0.5.8-2.7) unstable; urgency=medium
.
[ James Cowgill ]
* Non-maintainer upload.
* Move dash from /usr/bin to /bin. (Closes: #888180)
Checksums-Sha1:
53f4d8787e7f602001f06cfa4f6dd48e94bb4069 1565 dash_0.5.8-2.7.dsc
5fbe4642bba9009535fbcc956aba3cd3dbac0670 43168 dash_0.5.8-2.7.debian.tar.xz
Checksums-Sha256:
0e5cdd2055a3044e8051f6410a610d5af3854d052b2392bd966474206535a6ba 1565 dash_0.5.8-2.7.dsc
324d5040503acca5bbac140a6821310f4e4299fb6ee83504c1a687b16ef5cf34 43168 dash_0.5.8-2.7.debian.tar.xz
Files:
4d26ac03fd4b10fc7bec09722369e774 1565 shells optional dash_0.5.8-2.7.dsc
8b1258d14bdc2fb41de6958b954934f6 43168 shells optional dash_0.5.8-2.7.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJaZ661AAoJEJ1bI/kYT6UUousH/jhNYK+DhDn1vXz5kaVR3Usz
gODlVKf4rkca/lVEQq9xXgeo7SnFxjyQ4uR7LMfd2FL2Ubfj0Osu0XtMkGdTpEyh
AluHXdi+CqYZAh0+a7clk2UNrfIVIDqtVCnjFnzMiXCRji9qawlHg7fc5inRDTBo
Zznxejx10JcIjUFXGN1rnuSB10GVpFSc34lfsVs9MVEzvh+QcOeERf9pB5d2kIxz
Zt0n1G5MdqlsIh1bKzAanGs/L1v5mTYRTlJtUpf4Ib9doSiv1wdp3abwd5sM2ZaJ
+QgiRTEYCcjPFLzrTCHah6x7+GA2dzSXgm3IdcVSdqTx2HzbyNKdCH9frqGCnwc=
=Yl/A
-----END PGP SIGNATURE-----
Merged 888180 888221
Request was from Axel Beckert <abe@debian.org>
to control@bugs.debian.org.
(Wed, 24 Jan 2018 00:54:07 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Thu, 22 Feb 2018 07:25:54 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 14 01:09:04 2024;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.