Closed edrozenberg closed 3 years ago
I'm having the same problem with homebrew/cask/docker
I think this may have been caused by https://github.com/Homebrew/brew/pull/10046
I can’t reproduce this on a clean Mojave VM on 2.6.2-123-ga065dbc
.
Running into this with zoom
on Big Sur 11.1 (20C69)
It looks like it's hanging because the sudo
is expecting user input (the password), and it's not prompting. I suspect that this is because of the change in https://github.com/Homebrew/brew/pull/10046 from using safe_system
to exec
. As a workaround, I was able to run sudo -s
to set the sudo timestamp, and I was able to run the uninstall (in my case, an upgrade). @vitorgalvao I think you should be able to repro if your VM is configured to prompt for a password with sudo, and you run sudo -k
before running the uninstall.
This appears to cause issues with any invocation of sudo
where a password is required. FYI @reitermarkus
@jabenninghoff Confirmed, great insight! The workaround to cache the sudo password before any cask (re)(un)install worked great for me. I used sudo sh
[enter my password] exit;
[some cask commands] successfully.
Was able to reproduce as well.
Same issue in Big Sur 11.1 when I want to upgrade docker and bartender with brew cu
. But when I press Ctrl+C for the stop command it's prompting 'Password: '.
when I want to upgrade docker and bartender with
brew cu
.
cu
isn’t an official command, thus it’s unsupported.
I’ll ask anyone who wants to comment further to not do it unless you have useful information to add. That means no “this happens to me too” or “same issue”, because those muddle the conversation and make it hard for us to find the relevant posts. If you have nothing to add but want us know you’re also seeing the issue, 👍 the top post (though that’s also unnecessary, as the problem is confirmed).
General troubleshooting steps
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
cask uninstall/reinstall gets stuck at the launchctl removal stage for unknown reason. When it gets to this launchctl removal stage, it just does not proceed.
Same issue with various casks that involve removal of launchctl svcs (for ex.
airfoil
,macupdater
, etc)Same issue on both machines I tried,
Mojave 10.14.6 (18G7016)
Issue appears recently introduced (maybe today).
Command that failed
Output of command with
--verbose --debug
Output of
brew doctor --verbose
Output of
brew tap