Can't remove file

Hello,

During a package upgrade yesterday there were some messages on the console about bad inodes. I ran fsck with journal and the errors persisted. Then I ran fsck without journal and responded 'y' when prompted to take action. Continuing the upgrade today I am blocked because of a file that cannot be removed:

Code:
[1/1] Fetching mpich-4.2.3.pkg: 100%   12 MiB   3.2MB/s    00:04  
Checking integrity... done (0 conflicting)
[1/4] Installing hwloc2-2.11.2...
[1/4] Extracting hwloc2-2.11.2: 100%
pkg: Fail to rename /usr/local/bin/.pkgtemp.hwloc-annotate.W7tnZ4F00q86 -> /usr/local/bin/hwloc-annotate:Operation not permitted

When I attempt to remove the offending file manually, and responding 'y' I see:

Code:
sudo rm /usr/local/bin/hwloc-annotate           
override rw------- root/wheel sappnd,sunlnk,snapshot,nodump,offline,sparse for /usr/local/bin/hwloc-annotate? y
rm: /usr/local/bin/hwloc-annotate: Operation not permitted

I have not seen this before and have no idea how to proceed.

Any help will be greatly appreciated.

Thanks,
sprock
 
Back
Top