I am trying to upgrade my kubectl, but it is showing me the below error.
$ brew upgrade kubectl
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask)
==> Pouring kubernetes-cli-1.17.3.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
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-cliTo list all files that would be deleted:
brew link --overwrite --dry-run kubernetes-cli