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

Re: Can't upgrade gcc-3.3 (Device or resource busy)



Michael Marsh <michael.a.marsh@gmail.com> writes:

> On 15 Jan 2005 20:48:09 -0500, vedm <mlist@rogers.com> wrote:
> > >>>>> "Michael" == Michael Marsh <michael.a.marsh@gmail.com> writes:
> >     Michael> What does "lsof /usr/lib/gcc-lib/i486-linux/3.3.5/specs"
> >     Michael> tell you?
> > This command doesn't show anything, no output at all.
> 
> OK, so it's not being held open by any process, at least not one that
> shows up in lsof.  How about less?  Can you view the file?  Also, what
> do you get for the following:
> 
> $ ls -l /usr/lib/gcc-lib/i486-linux/3.3.5/specs 
> $ lsattr /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> 
> I see:
> -rw-r--r--  1 root root 3896 Jan  8 09:47
> /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> ----------------- /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> 

I get the same output:

#> ls -l /usr/lib/gcc-lib/i486-linux/3.3.5/specs 
-rw-r--r--  1 root root 3896 Jan 15 20:26 /usr/lib/gcc-lib/i486-linux/3.3.5/specs

#> lsattr /usr/lib/gcc-lib/i486-linux/3.3.5/specs
----------------- /usr/lib/gcc-lib/i486-linux/3.3.5/specs

I can read the file, open it with vi and save it back (that's why the
date is 15 Jan). I can not move it, remove it, or overwrite it by moving
another file to that name. In all cases I get the same message. For
example:

#> cp specs specs1
#> mv specs1 specs
mv: cannot move `specs1' to `specs': Device or resource busy

--
vedm



Reply to: