这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #216949
dpkg: Add a way to run shell maintscript with -x

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Juliusz Chroboczek <jch@pps.jussieu.fr>

Date: Tue, 21 Oct 2003 20:33:05 UTC

Severity: wishlist

Merged with 1000964

Found in versions 1.10.10, dpkg/1.20.9

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Development <debian-dpkg@lists.debian.org>:
Bug#216949; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Juliusz Chroboczek <jch@pps.jussieu.fr>:
New Bug report received and forwarded. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Juliusz Chroboczek <jch@pps.jussieu.fr>
To: submit@bugs.debian.org
Subject: How do you debug a postinst problem
Date: 21 Oct 2003 22:23:14 +0200
Package: dpkg
Version: 1.10.10
Severity: wishlist

There does not seem to be any way to find out what the problem is when
dpkg reports that ``the postinstallation script returned an error code
of 1''.  This is not a theoretical issue -- I've been unable to provide
useful report for bug 216944.

I suggest providing an option to run all shell scripts with -x.  Of
course, you'll need to check whether they are actually #!/bin/sh or
#!/bin/bash scripts.

Thanks,

                                        Juliusz Chroboczek




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Development <debian-dpkg@lists.debian.org>:
Bug#216949; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Andrew Suffield <asuffield@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>. (full text, mbox, link).


Message #10 received at 216949@bugs.debian.org (full text, mbox, reply):

From: Andrew Suffield <asuffield@debian.org>
To: Juliusz Chroboczek <jch@pps.jussieu.fr>, 216949@bugs.debian.org
Subject: Re: Bug#216949: How do you debug a postinst problem
Date: Wed, 22 Oct 2003 06:02:21 +0100
[Message part 1 (text/plain, inline)]
On Tue, Oct 21, 2003 at 10:23:14PM +0200, Juliusz Chroboczek wrote:
> There does not seem to be any way to find out what the problem is when
> dpkg reports that ``the postinstallation script returned an error code
> of 1''.  This is not a theoretical issue -- I've been unable to provide
> useful report for bug 216944.

postinst is easy. Edit /var/lib/dpkg/info/foo.postinst and then run it.

preinst is the tricky one, you have to apply dpkg-deb to unpack the
thing first.

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |
[signature.asc (application/pgp-signature, inline)]

Changed Bug title to 'dpkg: Add a way to run shell maintscript with -x' from 'How do you debug a postinst problem'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:05 GMT) (full text, mbox, link).


Marked as found in versions dpkg/1.20.9. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:06 GMT) (full text, mbox, link).


Merged 216949 1000964 Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Fri, 14 Oct 2022 22:33:07 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 Jul 27 16:13:22 2025; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.