buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.39k stars 89 forks source link

Error: Failure while executing; `/usr/bin/sudo -E -- /bin/cp -pR #230

Closed zeitchef closed 4 months ago

zeitchef commented 1 year ago

I've been getting this error for a few days on both my machines - when trying to update, seems the old files aren't being purged and the cp command is failing. I'm forced then to uninstall and then reinstall apps manually.

Here's the output when trying to upgrade Raycast, for example:

raycast.txt

yurikoles commented 1 year ago

Have you tried updating with a stock brew commands?

zeitchef commented 1 year ago

Running brew reinstall did produce the same behavior.

vipintom commented 1 year ago

Facing the same issue since last couple of weeks. Have to resort to brew install --cask --force stats to get any of the casks to be upgraded to the latest version. Any help regarding this will be appreciated

ondrejfuhrer commented 1 year ago

Running brew reinstall did produce the same behavior.

If that's a problem with brew reinstall , there is unfortunately not much we can do about it here (as that's exactly what we're using to upgrade). I would suggest reporting that in the brew repo.

mhanel commented 1 year ago

I have the same problem, but brew reinstall --cask --force xyz usually works for me. Still annoying, because it happened for a few apps, and I needed to reinstall all of them.

ondrejfuhrer commented 4 months ago

I'll close this for now as there is not really much we can do.