"directory not empty", "no such file or directory" errors on upgrade

Michael Sierchio kudzu at tenebras.com
Thu Mar 12 20:02:02 UTC 2020


Some quick observations – rmdir will fail if a directory is not empty, and
rm -rf will fail if a file has the schg flag set.  A possible brute force
solution to this is

> chflags -R 0 <dir>
> rm -rf <dir>



On Thu, Mar 12, 2020 at 12:53 PM Kevin P. Neal <kpn at neutralgood.org> wrote:

> On Thu, Mar 12, 2020 at 02:09:33PM -0500, Valeri Galtsev wrote:
> >
> >
> > On 2020-03-12 14:03, Gary Aitken wrote:
> > > Upgrading from 11.2-RELEASE to 11.3-RELEASE
> > >
> > > The final invoke of freebsd-update install completed with the following
> > > messages:
> > >
> > > ///usr/src/sys/pc98/include/acpica_machdep.h  no such file or directory
> > > rmdir: ///usr/src/contrib/ofed/usr.lib        directory not empty
> > > rmdir: ///usr/src/contrib/ofed/usr.bin        directory not empty
> > > rmdir:
> ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer
> > > directory not empty
> > > rmdir:
> ///usr/src/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/AddressSanitizer
> > > directory not empty
> >
> > I would unmount filesystem and run fsck on it first.
>
> And add the "-f" flag to fsck.
> --
> "A method for inducing cats to exercise consists of directing a beam of
> invisible light produced by a hand-held laser apparatus onto the floor ...
> in the vicinity of the cat, then moving the laser ... in an irregular way
> fascinating to cats,..." -- US patent 5443036, "Method of exercising a cat"
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


-- 

"Well," Brahmā said, "even after ten thousand explanations, a fool is no
wiser, but an intelligent person requires only two thousand five hundred."

- The Mahābhārata


More information about the freebsd-questions mailing list