I have been getting occasional errors when installing certain packages 
that use "rm -rf."  For instance, the netpbm package from the current 
unstable distribution will always error out when it tries:
rm -rf /sw/src/root-netpbm-9.24-3/sw/share/man/man1

I get "Directory not empty" errors.  This makes no sense!  With the -r 
option, rm should be clearing the subdirectories and files as well.  
When I clear the debian package and source files, the error will always 
occur at the same spot.  In other words, "rm- rf" works fine multiple 
times until it reaches "/sw/src/root-netpbm-9.24-3/sw/share/man/man1."   
I added the following line above it to get around this error:
rm -f /sw/src/root-netpbm-9.24-3/sw/share/man/man1/*

I thought it could be disk corruption, so I ran disk utility.  No 
errors.  I booted into single-user mode and ran fsck -y.  No errors.  I 
booted up with Disk Warrior 2.1 and optimized the drive.  It found a 
couple errors, which it repaired.  The next run showed no errors.  
However, the problem persists.

I als tried switching fink between sudo and su modes to no avail.  I did 
a "ls -lo" on the directory to check for locked flags and such, but all 
were clear.  Here is where it gets screwy: If I do it manually, the 
directory gets deleted using "rm -rf" just fine.  I know that other 
people have NOT had this problem with this package, so something must be 
screwy with my system.  But, why is it on this specific directory?  I 
had the same problem with the docbook package as well.  Other packages 
have installed fine.

One last thing I need to check.  I noticed that my shell is using rm 
from /sw/bin/rm.  I'm guessing this is from fileutils.  If so, is it 
safe to get rid of it, so that my shell uses the old rm again.  Has 
anyone else who installed fileutils have this problem?

----
James Sorenson
[EMAIL PROTECTED]
"I love deadlines. I love the whooshing sound they make as they fly by."
- Douglas Adams


_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to