Debian Bug report logs - #17381
dpkg: please add --force-overwrite-inexistant-files and default to it ;)

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: <tbittih@pal.xgw.fi>

Date: Thu, 22 Jan 1998 15:33:09 UTC

Severity: normal

Tags: fixed

Merged with 19218, 19991, 20250, 21812

Found in versions 1.4.0.20, 1.4.0.21

Fixed in version dpkg/1.9.7

Done: Adam Heath <adam@lapdoog.doogie.brainfood.com>

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#17381; Package dpkg. (full text, mbox, link).


Acknowledgement sent to <tbittih@pal.xgw.fi>:
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: <tbittih@pal.xgw.fi>
To: submit@bugs.debian.org
Subject: dpkg: please add --force-overwrite-inexistant-files and default to it ;)
Date: Thu, 22 Jan 1998 17:29:03 +0200 (EET)
Package: dpkg
Version: 1.4.0.20

Just an example of what kinda problems the [subject] might cure:

dpkg --force-overwrite -iGROEB /var/lib/dpkg/methods/ftp/debian/dists/unstable/main/binary-i386/devel/libc6-dev_2.0.6-2.deb
(Reading database ... 69977 files and directories currently installed.)
Preparing to replace libc6-dev 2.0.5c-0.1 (using .../devel/libc6-dev_2.0.6-2.deb) ...
Unpacking replacement libc6-dev ...
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite /usr/include/linux', which is also in package joystick
Setting up libc6-dev (2.0.6-2) ...

... maybe dpkg should default to --force-overwrite-inexistant-files ;)
[libc6's preinst rm -rf's that dir - gonna bug it too;)]

-- System Information
Debian Release: 1.3
Kernel Version: Linux bx1 2.1.75 #92-bx1-exp Tue Dec 23 09:39:45 EET 1997 i586 unknown

Versions of the packages dpkg depends on:
libc6	Version: 2.0.6-2
libg++272	Version: 2.7.2.8-0.1
ncurses3.4	Version: 1.9.9g-7


Severity set to `important'. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (full text, mbox, link).


Merged 17381 19218 19991 20250 21812. Request was from Santiago Vila <sanvila@unex.es> to control@bugs.debian.org. (full text, mbox, link).


Acknowledgement sent to Santiago Vila <sanvila@unex.es>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #12 received at 17381-quiet@bugs.debian.org (full text, mbox, reply):

From: Santiago Vila <sanvila@unex.es>
To: control@bugs.debian.org
Cc: Debian Developers <debian-devel@lists.debian.org>
Subject: dpkg bug when "overwriting" directories.
Date: Tue, 09 Jun 1998 17:32:04 GMT
severity 20250 important
severity 17381 important
severity 19218 important
severity 19991 important
severity 21812 important
merge 20250 17381 19218 19991 21812
thanks

(What follows is described already by Florian Hinzmann in Bug #21812)

To reproduce this error, I have created two packages "foo" and "bar".
[ See  http://master.debian.org/~sanvila/foobar  for details ].
Both packages contain an empty directory called /usr/doc/foobar.
By doing this:

dpkg -i foo_1_all.deb
rmdir /usr/doc/foobar
dpkg -i bar_1_all.deb

the following is obtained:

[...]
dpkg: error processing bar_1_all.deb (--install):
 trying to overwrite `/usr/doc/foobar', which is also in package foo


Some people rm -rf /usr/doc to save space, and I think this should not
make dpkg to be confused.


Well, the bug seems to be in dpkg/archives.c, around line 350, but I'm
not sure. Has somebody a fix for this? Ian?

Thanks.


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Severity set to `normal'. Request was from James Troup <james@nocrew.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Wichert Akkerman <wichert@cistron.nl>:
You have taken responsibility. (full text, mbox, link).


Notification sent to <tbittih@pal.xgw.fi>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Wichert Akkerman <wichert@cistron.nl>
To: 19991-done@bugs.debian.org
Subject: Re: Bug#19991: exim: Overwrite conflicts with slrn -- /etc/ppp/
Date: Mon, 25 Dec 2000 17:03:11 +0100
File overlaps are not a dpkg bug, but dpkg making sure that packages
don't break eachother.

Wichert.




Bug reopened, originator not changed. Request was from Adam Heath <adam@doogie.org> to control@bugs.debian.org. (full text, mbox, link).


Tags added: fixed Request was from Adam Heath <doogie@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Adam Heath <adam@lapdoog.doogie.brainfood.com>:
You have taken responsibility. (full text, mbox, link).


Notification sent to <tbittih@pal.xgw.fi>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Adam Heath <adam@lapdoog.doogie.brainfood.com>
To: <17381-done@bugs.debian.org>, <97831-done@bugs.debian.org>, <98273-done@bugs.debian.org>, <98578-done@bugs.debian.org>, <98828-done@bugs.debian.org>, <98831-done@bugs.debian.org>
Subject: dpkg_1.9.7_i386.changes INSTALLED (fwd)
Date: Mon, 28 May 2001 11:01:05 -0500 (CDT)

---------- Forwarded message ----------
Date: Mon, 28 May 2001 20:35:47 -0400
From: Debian Installer <installer@ftp-master.debian.org>
To: Adam Heath <doogie@debian.org>, Wichert Akkerman <wakkerma@debian.org>
Subject: dpkg_1.9.7_i386.changes INSTALLED


Installing:
dpkg_1.9.7_i386.deb
  to pool/main/d/dpkg/dpkg_1.9.7_i386.deb
dpkg-dev_1.9.7_all.deb
  to pool/main/d/dpkg/dpkg-dev_1.9.7_all.deb
dpkg_1.9.7.tar.gz
  to pool/main/d/dpkg/dpkg_1.9.7.tar.gz
dpkg-1.9.7.tar.gz byhand
dpkg_1.9.7.dsc
  to pool/main/d/dpkg/dpkg_1.9.7.dsc
dpkg-doc_1.9.7_all.deb
  to pool/main/d/dpkg/dpkg-doc_1.9.7_all.deb
dpkg-1.9.7_i386.nondebbin.tar.gz byhand
Changes: dpkg (1.9.7) unstable; urgency=low
 .
  * If a new file doesn't exist on disk, but is a going to be installed as
    a directory, then don't error out.  Closes: Bug#17381.
  * Update japanese manpages.  Closes: Bug#97831.
  * Update it.po.  Closes: Bug#98273.
  * Fix bad cleanup in dpkg-divert.  Closes: Bug#98578,#98828,#98831.
Announcing to debian-devel-changes@lists.debian.org
Setting bugs to severity fixed: 17381 97831 98273 98578 98828 98831


Thank you for your contribution to Debian.





Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Mar 28 16:56:06 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.