SREとはのブログ

日々の作業メモ

kubernetes-cli インストール失敗? 

メモ

>
[23:02:56] tm@tm-22 /Users/tm (0)
> brew install kubernetes-cli
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and caskroom/fonts).
==> New Formulae
mmctl                                                                                                                   wasmer
==> Updated Formulae
ghq ✔             bandwhich         composer          fastlane          gmic              gupnp             kawa              lxc               ncview            pandoc-crossref   rke               snappy            triton
starship ✔        bibtexconv        contentful-cli    fastmod           gmt               haproxy           kepubify          micronaut         nebula            pcl               ruby-build        solr              typescript
alp               blis              cppunit           firebase-cli      gmt@5             homebank          kubernetes-cli    mill              netcdf            pdal              sbt               sourcekitten      vnstat
angular-cli       broot             csvq              flow              gnu-sed           jetty             libde265          minio             netlify-cli       plantuml          serverless        spdlog            vtk
ansible           byobu             deno              flyway            gradle            jfrog-cli-go      libphonenumber    mongo-c-driver    nnn               pnetcdf           sile              swagger-codegen   vulkan-headers
ask-cli           byteman           dependency-check  frugal            grafana           jpeg              libsecret         mono              nss               pspg              sk                swiftformat       wabt
aws-cdk           calicoctl         devspace          gatsby-cli        grakn             just              libsigc++         mpd               okteto            pyinvoke          skaffold          terraform-docs    whistle
aws-sdk-cpp       cimg              ensmallen         gcab              groovy            kakoune           libtensorflow     msitools          opam              q                 sn0int            terrahub          wireshark
balena-cli        clojure           exploitdb         gdal              gssdp             kapacitor         libtorch          nco               openjdk           qmmp              snapcraft         topgrade          youtube-dl
==> Deleted Formulae
lastfmfpclient

==> Downloading https://homebrew.bintray.com/bottles/kubernetes-cli-1.17.1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/1e/1e4c23a9bd4954cc3427fe59965b923a62ab4bbfbd0808a24be7fb64e0da9dca?__gda__=exp=1579443322~hmac=33681be54916758613db2329c0cfd4fcdf9a09eb0e931b21f7f1068970816775&response-content-disposition=
######################################################################## 100.0%
==> Pouring kubernetes-cli-1.17.1.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/kubectl
Target /usr/local/bin/kubectl
already exists. You may want to remove it:
  rm '/usr/local/bin/kubectl'

To force the link and overwrite all conflicting files:
  brew link --overwrite kubernetes-cli

To list all files that would be deleted:
  brew link --overwrite --dry-run kubernetes-cli

Possible conflicting files are:
/usr/local/bin/kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/kubernetes-cli/1.17.1: 235 files, 49MB
[23:03:26] tm@tm-22 /Users/tm (1)
>
[23:03:35] tm@tm-22 /Users/tm (1)
> brew install kubernetes-cli
Warning: kubernetes-cli 1.17.1 is already installed, it's just not linked
You can use `brew link kubernetes-cli` to link this version.
[23:04:26] tm@tm-22 /Users/tm (0)
> brew link kubernetes-cli
Linking /usr/local/Cellar/kubernetes-cli/1.17.1...
Error: Could not symlink bin/kubectl
Target /usr/local/bin/kubectl
already exists. You may want to remove it:
  rm '/usr/local/bin/kubectl'

To force the link and overwrite all conflicting files:
  brew link --overwrite kubernetes-cli

To list all files that would be deleted:
  brew link --overwrite --dry-run kubernetes-cli
[23:04:40] tm@tm-22 /Users/tm (1)
> brew link --overwrite --dry-run kubernetes-cli
Would remove:
/usr/local/bin/kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
[23:04:42] tm@tm-22 /Users/tm (0)
> brew link kubernetes-cli
Linking /usr/local/Cellar/kubernetes-cli/1.17.1...
Error: Could not symlink bin/kubectl
Target /usr/local/bin/kubectl
already exists. You may want to remove it:
  rm '/usr/local/bin/kubectl'

To force the link and overwrite all conflicting files:
  brew link --overwrite kubernetes-cli

To list all files that would be deleted:
  brew link --overwrite --dry-run kubernetes-cli
[23:05:16] tm@tm-22 /Users/tm (1)
> rm '/usr/local/bin/kubectl'
[23:05:25] tm@tm-22 /Users/tm (0)
>  brew link --overwrite --dry-run kubernetes-cli
Would remove:
[23:05:27] tm@tm-22 /Users/tm (0)
>
[23:05:28] tm@tm-22 /Users/tm (0)
> brew link kubernetes-cli
Linking /usr/local/Cellar/kubernetes-cli/1.17.1... 230 symlinks created
[23:05:32] tm@tm-22 /Users/tm (0)
> brew cask install hyperswitch
Warning: Cask 'hyperswitch' is already installed.

To re-install hyperswitch, run:
  brew cask reinstall hyperswitch
[23:05:41] tm@tm-22 /Users/tm (0)
> defaults write com.apple.finder AppleShow^C
[23:06:06] tm@tm-22 /Users/tm (0)
> brew install kubernetes-cli
Warning: kubernetes-cli 1.17.1 is already installed and up-to-date
To reinstall 1.17.1, run `brew reinstall kubernetes-cli`
[23:06:09] tm@tm-22 /Users/tm (0)
> > brew install kubernetes-cli
  Updating Homebrew...
  ==> ^C
[23:06:27] tm@tm-22 /Users/tm (0)
>