Debian Bug report logs - #9955
dpkg eats available filename if unpack fails

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: Andy Mortimer <andy.mortimer@poboxes.com>

Date: Mon, 19 May 1997 14:33:01 UTC

Severity: wishlist

Found in version 1.4.0.17

Fixed in version dpkg/1.17.11

Done: Guillem Jover <guillem@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>:
Bug#9955; Package dpkg. (full text, mbox, link).


Acknowledgement sent to Andy Mortimer <andy.mortimer@poboxes.com>:
New bug report received and forwarded. Copy sent to Klee Dienes and Ian Jackson <dpkg-maint@chiark.greenend.org.uk>. (full text, mbox, link).


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

From: Andy Mortimer <andy.mortimer@poboxes.com>
To: submit@bugs.debian.org
Subject: dpkg eats available filename if unpack fails
Date: Mon, 19 May 1997 15:13:59 +0100
Package: dpkg
Version: 1.4.0.17

I'm not really sure if this is a bug or not, so do feel free to correct
me! If an error occurs with dpkg --unpack (or in the equivalent stage of
dpkg --install), then all details about the package filenames are removed
from the available database. I couldn't actually find the place in the
source where this happened after a quick look, but I don't really have
the time or the inclination to delve deeply into it; the debugging
output didn't seem to show anything useful, though.

I can see the use of doing this -- if a package doesn't unpack, there's
very little point in trying again -- but this is not always true, for
example the Netscape wrapper package or the teTeX packages, both of which
depend on something in the existing filesystem in order for the preinst
to succeed.

This has been the source of two bug reports against dpkg-mountable (#8054
and #9375, merged), which is why I bring it up. It would be fairly easy
for me to keep local copies of the available files databases, and use
them instead, but this seems rather hacky and suboptimal.

There follows an example of this, in case my description wasn't clear
enough.

Cheers,

&E

-- 
Andy Mortimer, andy.mortimer@poboxes.com
http://www.netforward.com/poboxes/?andy.mortimer
Finger asm21@asm21.emma.cam.ac.uk for PGP public key
--
I found myself alone, alone above a raging sea
That stole the only girl I loved and drowned her deep inside of me.

root@asm21:~# dpkg --print-avail no-unpack
Package: no-unpack
Maintainer: Andy Mortimer <real-asm21@asm21.emma.cam.ac.uk>
Architecture: all
Version: 0.0.1
Filename: local/no-unpack.deb
Size: 1034
MD5sum: 23a13fdd613f7ba5e47863c8de754e75
Description: Package that won't unpack
 For testing purposes only, fairly obviously.

root@asm21:~# dpkg --install /root/debian/local/no-unpack.deb
(Reading database ... 32636 files and directories currently installed.)
Unpacking no-unpack (from .../debian/local/no-unpack.deb) ...
dpkg: error processing /root/debian/local/no-unpack.deb (--install):
 trying to overwrite directory /cdrom' in package base-files with nondirectory
Errors were encountered while processing:
 /root/debian/local/no-unpack.deb

root@asm21:~# dpkg --print-avail no-unpack
Package: no-unpack
Maintainer: Andy Mortimer <real-asm21@asm21.emma.cam.ac.uk>
Architecture: all
Version: 0.0.1
Size: 1034
Description: Package that won't unpack
 For testing purposes only, fairly obviously.


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


Acknowledgement sent to Thomas Hood <jdthood@yahoo.co.uk>:
Extra info received and forwarded to list. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>, dpkg@packages.qa.debian.org. (full text, mbox, link).


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

From: Thomas Hood <jdthood@yahoo.co.uk>
To: control@bugs.debian.org, 9955@bugs.debian.org
Subject: 9955 bug or feature?
Date: 07 Oct 2002 20:41:41 +0200
Is this a bug or a feature?

> If an error occurs with dpkg --unpack (or in the
> equivalent stage of dpkg --install), then all details
> about the package filenames are removed from the
> available database.

If this isn't a bug then this report should be downgraded or closed.

--
Thomas Hood




Severity set to `wishlist'. Request was from Carlos O'Donell <carlos@baldric.uwo.ca> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Guillem Jover <guillem@debian.org>:
You have taken responsibility. (Thu, 14 Aug 2014 11:15:12 GMT) (full text, mbox, link).


Notification sent to Andy Mortimer <andy.mortimer@poboxes.com>:
Bug acknowledged by developer. (Thu, 14 Aug 2014 11:15:12 GMT) (full text, mbox, link).


Message #17 received at 9955-done@bugs.debian.org (full text, mbox, reply):

From: Guillem Jover <guillem@debian.org>
To: Andy Mortimer <andy.mortimer@poboxes.com>, 9955-done@bugs.debian.org
Subject: Re: Bug#9955: dpkg eats available filename if unpack fails
Date: Thu, 14 Aug 2014 13:13:40 +0200
Hi!

On Mon, 1997-05-19 at 15:13:59 +0100, Andy Mortimer wrote:
> Package: dpkg
> Version: 1.4.0.17

> I'm not really sure if this is a bug or not, so do feel free to correct
> me! If an error occurs with dpkg --unpack (or in the equivalent stage of
> dpkg --install), then all details about the package filenames are removed
> from the available database. I couldn't actually find the place in the
> source where this happened after a quick look, but I don't really have
> the time or the inclination to delve deeply into it; the debugging
> output didn't seem to show anything useful, though.
> 
> I can see the use of doing this -- if a package doesn't unpack, there's
> very little point in trying again -- but this is not always true, for
> example the Netscape wrapper package or the teTeX packages, both of which
> depend on something in the existing filesystem in order for the preinst
> to succeed.

This was a bug indeed, but it got fixed as a side-effect in dpkg 1.17.11
which does not write to the available file any longer on unpack. Thus
closing.

Thanks,
Guillem



Marked as fixed in versions dpkg/1.17.11. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Thu, 14 Aug 2014 11:21:04 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 12 Sep 2014 07:33:56 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: Tue Apr 16 19:31:35 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.