-
Notifications
You must be signed in to change notification settings - Fork 270
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
[BUG] Uninstall using sudo always fails the first time #216
Comments
I experienced this same bug. |
@luzlab did the command work the 2nd time you ran it through |
Yes, I had to run the command a 2nd time. |
Same here, didn't manage to reproduce after the first time. Also, moving the app into |
I also have this same issue no matter how many times I use |
I do have the very same issue and can't uninstall anything even on the nth attempt:
|
Same here, pls fix this |
@fellnerse, pull requests welcome! |
If you hint me in the right direction I'd love to help out |
I see the same thing on macOS 12.0.1 on a M1 with version 1.8.5. |
I wonder if the Some possibilities for addressing this:
|
For me it would be enough in a first step that I can remove items from the list that are not installed anymore. Otherwise they end up in my brewfile when dumping my env. |
Using "AppCleaner" worked for me. |
Electron's app installer seems to use deprecated API
This seems to be what Apple's documentation would prefer |
|
The cleanup role has been removed again due to an issue with the MAS command-line utility. Uninstalling apps requires sudo priviledges, but even running the CLI as sudo does not help [^1]. [^1]: mas-cli/mas#216
The cleanup role has been removed again due to an issue with the MAS command-line utility. Uninstalling apps requires sudo priviledges, but even running the CLI as sudo does not help [^1]. [^1]: mas-cli/mas#216
same here with iOS 12.1 Monterey on a M1 > mas list | grep Numbers
409203825 Numbers (12.1)
> mas uninstall 409203825 --dry-run
==> Numbers /Applications/Numbers.app
==> (not removed, dry run)
> sudo mas uninstall 409203825
Password:
Error: Not installed
> sudo mas uninstall 409203825
Password:
Error: Not installed |
Same with Using AppCleaner to uninstall did work though. |
Describe the bug
It's a known limitation that the
uninstall
must be run usingsudo
. However, it always fails with the message "Error: Not installed" the first time the command is run usingsudo
. 2nd time seems to work fine.To Reproduce
Steps to reproduce the behavior:
mas uninstall 883878097 --dry-run
to verify app (macOS Server) is installedsudo mas uninstall 883878097
sudo mas uninstall 883878097
againExpected behavior
The first time the
sudo mas uninstall 883878097
command is ran it should succeed.Actual behavior
sudo mas uninstall 883878097
fails. It must be run a 2nd time.Desktop (please complete the following information):
Additional context
The
uninstall
command was added in 1.5.0 (#191)The text was updated successfully, but these errors were encountered: