Homebrew-core: Constant errors about missing android-sdk formula

Created on 30 Mar 2017  Â·  10Comments  Â·  Source: Homebrew/homebrew-core

Hey,

Every time I call brew uninstall [--force] $any-formulae it ends up with error saying that No available formula with the name "android-sdk".

$ brew uninstall dwarf-fortress 
Error: No available formula with the name "android-sdk" 

$ brew uninstall ffmpeg
Error: No available formula with the name "android-sdk"

$ brew uninstall git
Error: No available formula with the name "android-sdk" 

The same error shows up when I call brew doctor

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libKnittensModel.dylib

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  android-platform-tools
  emacs
  emacs-plus
  minimal-racket

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
Error: No available formula with the name "android-sdk" 
$ brew config
HOMEBREW_VERSION: 1.1.11-183-gc69e4ee2f
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: c69e4ee2f6b7cd01d1e0731ce214d26607d1427d
Last commit: 15 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d9544b7aa381c5bfda78d5df4bc7416a59c2d847
Core tap last commit: 32 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_102, 1.8.0_92, 1.8.0_60
macOS: 10.12.3-x86_64
Xcode: 8.2.1
CLT: N/A
X11: 2.7.11 => /opt/X11

Issue template says to include brew gist-logs of relevant formula, but it's missing 😸

In case you need more info, let me know.

Most helpful comment

All 10 comments

Thanks for the report. CC @alyssais

@d12frosted Can I see you brew list output?

Sure,

$ brew list
ack         ffmpeg          harfbuzz        libpng          ncdu            sdl2
alac            fish            haskell-stack       librsvg         nettle          sdl2_image
android-ndk     fontconfig      heroku          libsodium       ngrok           shared-mime-info
android-platform-tools  fortune         heroku-toolbelt     libssh2         node            shellcheck
ant         freetype        hub         libtasn1        ntfs-3g         sqlite
apr         gd          hunspell        libtiff         offlineimap     subversion
apr-util        gdbm            icu4c           libtool         openssl         swig
aspell          gdk-pixbuf      imagemagick     libunistring        ossp-uuid       terminal-notifier
autoconf        gettext         imagemagick@6       libusb          p11-kit         texi2html
automake        giflib          ios-sim         libusb-compat       pandoc          texinfo
berkeley-db     gifsicle        ispell          libuv           pango           the_silver_searcher
boost           git         isync           libvo-aacenc        pcre            thefuck
boost-python        git-lfs         john-jumbo      libvorbis       pcre2           transmission
cairo           glew            jpeg            libxml2         pinentry        tree
carthage        glib            jpegoptim       lua         pinentry-mac        unrar
cmake           glslang         keychain        luajit          pixman          webp
coreutils       gmime           lame            lynx            pkg-config      weechat
cppunit         gmp         languagetool        macvim          pngquant        wget
cscope          gnu-typist      ledger          markdown        pstree          x264
dash            gnupg           libassuan       mercurial       pth         xapian
dirmngr         gnupg2          libcroco        midnight-commander  purescript      xctool
dotnet          gnuplot         libevent        minimal-racket      python          xvid
doxygen         gnutls          libffi          mongodb         python3         xz
dwarf-fortress      gobject-introspection   libgcrypt       mono            readline        yasm
emacs           gource          libgpg-error        mpfr            ripgrep         zeromq
emacs-mac       gpg-agent       libksba         mplayer         s-lang
emacs-plus      graphviz        libogg          mu          scons

But note that I have done following terrible actions. So that list doesn't contain android-sdk anymore.

[07:46:49] /u/l/H/L/T/h/homebrew-core|master✓
λ git reset --hard af9cd86400b3b113b90d6ad734569f72b09f203a
HEAD is now at af9cd8640 write-good: add 0.10.0 bottle.

[07:46:57] /u/l/H/L/T/h/homebrew-core|master✓
λ brew uninstall --force android-sdk
Error: Refusing to uninstall /usr/local/Cellar/android-sdk/24.4.1_1
because it is required by android-ndk, which is currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies android-sdk

<1> [07:47:03] /u/l/H/L/T/h/homebrew-core|master✓
λ brew uninstall --ignore-dependencies android-sdk
Uninstalling /usr/local/Cellar/android-sdk/24.4.1_1... (1,966 files, 453.0MB)

<1> [07:47:27] /u/l/H/L/T/h/homebrew-core|master✓
λ git reset --hard origin/master
HEAD is now at 4ba359d6b zsh: use xz tarball (#11804)

Literally, I tried to go back to the version of core before the move of android-sdk to cask and uninstalling from that point. But now it doesn't look like a good idea.

@d12frosted Can you try to brew update and see if https://github.com/Homebrew/homebrew-core/pull/11809 being merged fixes anything for you? It may well not in which case I'll try and work on another fix too. Thanks!

Thanks for the quick actions!

Unfortunately, it seems like it didn't fix my issue.

[12:10:02] ~
λ brew update
Updated 2 taps (caskroom/cask, homebrew/core).
==> Updated Formulae
crystax-ndk                                          fdroidserver                                         [email protected]
==> Deleted Formulae
fb-adb
  ~> duration: 14540 ms                                                                                                                                       

[12:10:20] ~
λ brew uninstall android-sdk
Error: No such keg: /usr/local/Cellar/android-sdk

<1> [12:10:28] ~
λ brew uninstall --force emacs-plus 
Error: No available formula with the name "android-sdk" 

<1> [12:11:38] ~
λ brew config
HOMEBREW_VERSION: 1.1.11-183-gc69e4ee2f
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: c69e4ee2f6b7cd01d1e0731ce214d26607d1427d
Last commit: 19 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3a6aad0919595274f8bc8ff58484eefc2214c964
Core tap last commit: 5 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.12.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_102, 1.8.0_92, 1.8.0_60
macOS: 10.12.3-x86_64
Xcode: 8.2.1
CLT: N/A
X11: 2.7.11 => /opt/X11

But at least it shows different message when I try to uninstall android-sdk 😸

Can you try brew uninstall android-sdk --debug and brew doctor --debug and paste the output? Thanks!

Sure, here is the output.

Awww, yeah! Now I can drop my addiction 😸

[10:32:54] ~
λ brew uninstall --force dwarf-fortress 
Uninstalling dwarf-fortress... (1,128 files, 143.8MB)

Thanks a lot for fixing my issue. Now I can properly use brew 😸

@d12frosted Glad it's working!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sstadick picture sstadick  Â·  4Comments

faraazkhan picture faraazkhan  Â·  3Comments

oli-laban picture oli-laban  Â·  3Comments

BluePawDev picture BluePawDev  Â·  3Comments

bantl23 picture bantl23  Â·  3Comments