I tried to install wireshark and get the following error.
bigmac:bin michael$ brew install --cask wireshark
==> Downloading https://2.na.dl.wireshark.org/osx/Wireshark%203.4.8%20Intel%2064.dmg
######################################################################## 100.0%
==> Installing Cask wireshark
==> Running installer for wireshark; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
Password:
installer: Package name is Add Wireshark to the system PATH
installer: Installing at base path /
installer: The install was successful.
==> Running installer for wireshark; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is ChmodBPF
installer: Installing at base path /
installer: The install was successful.
==> Moving App 'Wireshark.app' to '/Applications/Wireshark.app'
==> Backing App 'Wireshark.app' up to '/opt/homebrew/Caskroom/wireshark/3.4.8/Wireshark.app'
==> Removing App '/Applications/Wireshark.app'
==> Purging files for version 3.4.8 of Cask wireshark
Error: It seems there is already a Binary at '/opt/homebrew/bin/editcap'.
bigmac:bin michael$ brew install --cask wireshark
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.
==> Downloading https://2.na.dl.wireshark.org/osx/Wireshark%203.4.8%20Intel%2064.dmg
Already downloaded: /Users/michael/Library/Caches/Homebrew/downloads/59addb8e0abfb4d28dc5f20da91f799cbce428a3dfaf9c205c94fb4edde65f7d--Wireshark 3.4.8 Intel 64.dmg
==> Installing Cask wireshark
==> Running installer for wireshark; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is Add Wireshark to the system PATH
installer: Upgrading at base path /
installer: The upgrade was successful.
==> Running installer for wireshark; your password may be necessary.
Package installers may write to any location; options such as `--appdir` are ignored.
installer: Package name is ChmodBPF
installer: Upgrading at base path /
installer: The upgrade was successful.
==> Moving App 'Wireshark.app' to '/Applications/Wireshark.app'
==> Backing App 'Wireshark.app' up to '/opt/homebrew/Caskroom/wireshark/3.4.8/Wireshark.app'
==> Removing App '/Applications/Wireshark.app'
==> Purging files for version 3.4.8 of Cask wireshark
Error: It seems there is already a Binary at '/opt/homebrew/bin/editcap'.
--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
I tried to install wireshark and get the following error.
Command that failed
brew install --cask wireshark
Output of command with
--verbose --debug
Click to expand