title: Homebrew installer hangs while installing CommandLineTools on macOS Catalina
body: <p>I'm trying to install Homebrew onto an Intel MacBookPro (macOS Catalina), but while running <code>/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</code>
  in Terminal, it seems to hang while installing CommandLineTools (the specific line it hangs on is <code>==&gt; /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress</code>).</p>
  <p>I already have a full install of Xcode 11 on this machine (which from what I have heard installs Xcode CommandLineTools).</p>
  <p>After navigating to /tmp, I found that it did successfully run <code>touch</code> and create the file described in the command it ran, but never wrote anything to it.</p>
  <p>I waited for about an hour with no avail. Here is the log:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>==&gt; Checking for `sudo` access (which may request your password)...
  Password:
  ==&gt; This script will install:
  /usr/local/bin/brew
  /usr/local/share/doc/homebrew
  /usr/local/share/man/man1/brew.1
  /usr/local/share/zsh/site-functions/_brew
  /usr/local/etc/bash_completion.d/brew
  /usr/local/Homebrew
  ==&gt; The following existing directories will be made group writable:
  /usr/local/bin
  /usr/local/lib
  ==&gt; The following existing directories will have their owner set to (redacted for privacy):
  /usr/local/bin
  /usr/local/lib
  ==&gt; The following existing directories will have their group set to admin:
  /usr/local/bin
  /usr/local/lib
  ==&gt; The following new directories will be created:
  /usr/local/etc
  /usr/local/include
  /usr/local/sbin
  /usr/local/share
  /usr/local/var
  /usr/local/opt
  /usr/local/share/zsh
  /usr/local/share/zsh/site-functions
  /usr/local/var/homebrew
  /usr/local/var/homebrew/linked
  /usr/local/Cellar
  /usr/local/Caskroom
  /usr/local/Frameworks
  ==&gt; The Xcode Command Line Tools will be installed.
  
  Press RETURN to continue or any other key to abort:
  ==&gt; /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/lib
  ==&gt; /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/lib
  ==&gt; /usr/bin/sudo /usr/sbin/chown (redacted for privacy) /usr/local/bin /usr/local/lib
  ==&gt; /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/lib
  ==&gt; /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
  ==&gt; /usr/bin/sudo /bin/chmod ug=rwx /usr/local/etc /usr/local/include /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
  ==&gt; /usr/bin/sudo /bin/chmod go-w /usr/local/share/zsh /usr/local/share/zsh/site-functions
  ==&gt; /usr/bin/sudo /usr/sbin/chown (redacted for privacy) /usr/local/etc /usr/local/include /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
  ==&gt; /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks
  ==&gt; /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew
  ==&gt; /usr/bin/sudo /usr/sbin/chown -R (redacted for privacy):admin /usr/local/Homebrew
  ==&gt; /usr/bin/sudo /bin/mkdir -p /Users/(redacted for privacy)/Library/Caches/Homebrew
  ==&gt; /usr/bin/sudo /bin/chmod g+rwx /Users/(redacted for privacy)/Library/Caches/Homebrew
  ==&gt; /usr/bin/sudo /usr/sbin/chown -R (redacted for privacy) /Users/(redacted for privacy)/Library/Caches/Homebrew
  ==&gt; Searching online for the Command Line Tools
  ==&gt; /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress</code></pre>
  </div>
  </div>
  </p>