-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
brew uninstall --zap : Using sudo to gain ownership of path #19903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
here is
|
Hi @carlocab, any updates on this? |
I don't think f816a39 broke things here. There is a pre-existing bug with Does rolling back f816a39 actually allow the paths to be trashed correctly, or does it just stop |
@carlocab Yes, after rolling back f816a39, there was no prompt to obtain root permissions, and all files were successfully trashed. In this scenario(uninstall motrix via # Before rolling back f816a39d1fbe1af4e5306ab9b8c940625d450f88
~ ❯ brew rm --zap motrix
==> Implied `brew uninstall --cask motrix`
==> Backing App 'Motrix.app' up to '/opt/homebrew/Caskroom/motrix/1.8.19/Motrix.app'
==> Removing App '/Applications/Motrix.app'
==> Dispatching zap stanza
==> Trashing files:
~/Library/Application Support/Motrix
~/Library/Caches/app.motrix.native
~/Library/Logs/Motrix
~/Library/Preferences/app.motrix.native.plist
~/Library/Saved Application State/app.motrix.native.savedState
==> Using sudo to gain ownership of path '/Users/howe/Library/Application Support/Motrix'
Password:
chown: /Users/howe/Library/Application Support/Motrix: No such file or directory
==> Using sudo to gain ownership of path '/Users/howe/Library/Logs/Motrix'
chown: /Users/howe/Library/Logs/Motrix: No such file or directory
==> Using sudo to gain ownership of path '/Users/howe/Library/Saved Application State/app.motrix.native.savedState'
chown: /Users/howe/Library/Saved Application State/app.motrix.native.savedState: No such file or directory
Warning: The following files could not be trashed, please do so manually:
/Users/howe/Library/Application Support/Motrix
/Users/howe/Library/Logs/Motrix
/Users/howe/Library/Saved Application State/app.motrix.native.savedState
==> Removing all staged versions of Cask 'motrix'
# After rolling back f816a39d1fbe1af4e5306ab9b8c940625d450f88
~ ❯ brew rm --zap motrix
==> Implied `brew uninstall --cask motrix`
==> Backing App 'Motrix.app' up to '/opt/homebrew/Caskroom/motrix/1.8.19/Motrix.app'
==> Removing App '/Applications/Motrix.app'
==> Dispatching zap stanza
==> Trashing files:
~/Library/Application Support/Motrix
~/Library/Caches/app.motrix.native
~/Library/Logs/Motrix
~/Library/Preferences/app.motrix.native.plist
~/Library/Saved Application State/app.motrix.native.savedState
==> Removing all staged versions of Cask 'motrix' |
Weird, ok. Thanks for checking! I've opened #19941 to revert this. |
Uh oh!
There was an error while loading. Please reload this page.
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
uninstall a cask
What happened (include all command output)?
What did you expect to happen?
Before I was prompted to enter my password, Homebrew had already deleted the app’s related files and moved them to the Trash. Subsequently, it attempted to perform operations on those files, but they no longer existed. This seems like a potential issue—could you confirm if this behavior is expected?
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: