Long story short, I downloaded a file as a replacement for an app that no longer works on Catalina (macOS 10.15). This file is locked, and I cannot chmod it to let me unlock it. Even sudo fails. enter image description here Terminal

I need to delete this file. How can I delete it? It doesn't seem I can...

  • This page may help you find a solution. – IconDaemon Jul 30 '19 at 0:49
  • Thanks @IconDaemon, but that didn't work, and neither did this. Are there any other ways you know of? – JBDouble05 Jul 30 '19 at 2:18

I managed to figure out the problem.

First I used ls -laO which showed the flags for all files. It turns out that both schg and uchg had been set on the files. To override those, I did:

sudo chflags nouchg /Applications/Karabiner-Elements.app
sudo chflags noschg /Applications/Karabiner-Elements.app

This unlocked both flags, and allowed me to delete the files.

Thank you all for your help.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .