[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#25398: marked as done (dpkg dies if /usr/local/bin is a symlink)

Your message dated Wed, 5 Aug 1998 14:36:53 +0100 (BST)
with message-id <13768.24565.625892.350672@chiark.greenend.org.uk>
and subject line Bug#25398: dpkg dies if /usr/local/bin is a symlink
has caused the attached bug report 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 I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 4 Aug 1998 22:46:44 +0000
Received: (qmail 14476 invoked from network); 4 Aug 1998 22:46:43 -0000
Received: from scooter.o.i.net (mail@
  by debian.novare.net with SMTP; 4 Aug 1998 22:46:43 -0000
Received: from csmall by scooter.o.i.net with local (Exim 1.92 #1 (Debian))
	id 0z3pqp-0004MY-00; Wed, 5 Aug 1998 08:46:39 +1000
Subject: dpkg dies if /usr/local/bin is a symlink
To: submit@bugs.debian.org
Date: Wed, 5 Aug 1998 08:46:39 +1000 (EST)
X-Mailer: ELM [version 2.4ME+ PL43 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2043      
Message-Id: <[🔎] E0z3pqp-0004MY-00@scooter.o.i.net>
From: Craig Small <csmall@scooter.o.i.net>

Package: dpkg

This is a problem that I helped fix on the #debian irc channel, 
while we got the user up and going, it is probably something that
shouldn't happen.

If /usr/local/bin is a symlink like
lrwxrwxrwx   1 root     root           20 Aug  1 12:50 bin -> /usr/lib/oss/soundon

Then dpkg dies with "not a directory".
dpkg (subprocess): failed to exec dpkg-split to see if it's part of a multiparter: Not a directory
dpkg: error processing apt_0.1.5.deb (--install):
subprocess dpkg-split returned error exit status 2
D000010: ensure_pathname_nonexisting `/var/lib/dpkg/reassemble.deb'
Errors were encountered while processing:

This happens with dpkg-split (which is called by dpkg -i blah.deb)
and dpkg-deb -I blah.deb

An strace (grepping for directory) of dpkg-deb -I gives:
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
stat("/tmp/00335aaa", 0xbffffbb0)       = -1 ENOENT (No such file or directory)
[pid   336] execve("/usr/local/sbin/rm", ["rm", "-rf", "/tmp/00335aaa"], [/* 16 vars */]) = -1 ENOENT (No such file or directory)
[pid   336] execve("/usr/local/bin/rm", ["rm", "-rf", "/tmp/00335aaa"], [/* 16 vars */]) = -1 ENOTDIR (Not a directory)

OK, so the problem looks like you do your execve, if it ENOENT you
keep going, but if it is ENOTDIR then you die.  I suspect this may
not be what you want to happen.

The user's path was

The quick fix was to cd /usr/local ; rm bin ; mkdir bin, that worked.

  - Craig

Craig Small VK2XLZ, PGP: AD 8D D8 63 6E BF C3 C7  47 41 B1 A2 1F 46 EC 90
|@work: csmall@scooter.o.i.net,            @play: vk2xlz@vk2xlz.ampr.org|
|@home: csmall@small.dropbear.id.au,           @debian:csmall@debian.org|
|@web: http://www.triode.net.au/~csmall             @spam:root@localhost| 

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

Reply to: