--force.brew update-reset && brew update and retried my command.brew doctor, fixed as many issues as possible and retried my command.When installing wireshark with brew cask install wireshark, the message "Wireshark: Permission Denied" shows up whenever opening a terminal (i. e. a new shell is started). Wireshark itself works as expected (no permission errors, capturing is possible). Wireshark isn't started in ~/.profile or in ~/.zshrc. This error didn't occur with wireshark version < 3.2.0 (also installed via brew cask install. It started to occur after the upgrade to 3.2.0.
There's no failure during installation. The installation is successful (no error messages). However, this error shows up when opening a terminal after wireshark was installed:
Wireshark: Permission Denied
--force --verbose --debugOutput of brew cask --force --verbose --debug install wireshark:
==> Cask::Installer#install
==> Printing caveats
==> Cask::Installer#fetch
==> Downloading
==> Downloading https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg
/usr/bin/curl -q --globoff --show-error --user-agent Homebrew/2.2.1-76-gaf98c15\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.15.2\)\ curl/7.64.1 --location --silent --head --request GET https://1.na.dl.wireshark.org/osx/all-versions/Wireshark\%203.2.0\%20Intel\%2064.dmg
Already downloaded: /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg
==> Checking quarantine support
/usr/bin/xattr
/usr/bin/swift /usr/local/Homebrew/Library/Homebrew/cask/utils/quarantine.swift
==> Quarantine is available.
==> Verifying Gatekeeper status of /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
==> /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg is quarantined
==> Downloaded to -> /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg
==> Verifying SHA-256 checksum for Cask 'wireshark'.
tar tf /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
hdiutil imageinfo -format /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
==> Installing Cask wireshark
==> Cask::Installer#stage
==> Extracting primary container
==> Using container class UnpackStrategy::Dmg for /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-980ikr /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
find . -print0
mkbom -s -i /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/20191220-31859-3juxbp.list -- /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/20191220-31859-8bprjt.bom
ditto --bom /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/20191220-31859-8bprjt.bom -- /private/var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-980ikr/dmg.Y1mReE /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7
diskutil eject /private/var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-980ikr/dmg.Y1mReE
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Add\ Wireshark\ to\ the\ system\ path.pkg /usr/local/Caskroom/wireshark/3.2.0/Add\ Wireshark\ to\ the\ system\ path.pkg
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Uninstall\ ChmodBPF.pkg /usr/local/Caskroom/wireshark/3.2.0/Uninstall\ ChmodBPF.pkg
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Remove\ Wireshark\ from\ the\ system\ path.pkg /usr/local/Caskroom/wireshark/3.2.0/Remove\ Wireshark\ from\ the\ system\ path.pkg
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Read\ me\ first.html /usr/local/Caskroom/wireshark/3.2.0/Read\ me\ first.html
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Wireshark.app/. /usr/local/Caskroom/wireshark/3.2.0/Wireshark.app
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/Install\ ChmodBPF.pkg /usr/local/Caskroom/wireshark/3.2.0/Install\ ChmodBPF.pkg
cp -pR /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7/.background.png /usr/local/Caskroom/wireshark/3.2.0/.background.png
chmod -Rf +w /var/folders/h3/f6r3tzf16z59bgtq7231ty200000gn/T/d20191220-31859-1sn2fg7
==> Verifying Gatekeeper status of /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg
/usr/bin/xattr -p com.apple.quarantine /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
==> /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg is quarantined
==> Propagating quarantine from /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark 3.2.0 Intel 64.dmg to /usr/local/Caskroom/wireshark/3.2.0
/usr/bin/xattr -p com.apple.quarantine /Users/XXXXXXX/Library/Caches/Homebrew/downloads/d0e402a9e8202174b53fa3f39b8d56637021df493cea55974a1cef025290e011--Wireshark\ 3.2.0\ Intel\ 64.dmg
/usr/bin/xargs -0 -- /bin/chmod -h u\+w
/usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;5dfb1f10\;Homebrew\\x20Cask\;516DE71A-BF28-4757-BCF6-CF282C113634
==> Creating metadata directory /usr/local/Caskroom/wireshark/.metadata/3.2.0/20191220071205.311.
==> Creating metadata subdirectory /usr/local/Caskroom/wireshark/.metadata/3.2.0/20191220071205.311/Casks.
==> Installing artifacts
==> 6 artifact/s defined
#<SortedSet: {#<Cask::Artifact::PreflightBlock:0x00007ff2fe95eec8 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @directives={:uninstall_preflight=>#<Proc:0x00007ff2fe95ef40@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:18>}>, #<Cask::Artifact::Uninstall:0x00007ff2fe95ebd0 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @directives={:pkgutil=>"org.wireshark.*", :launchctl=>"org.wireshark.ChmodBPF", :signal=>[]}>, #<Cask::Artifact::Pkg:0x00007ff2fe95fcd8 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0/Install ChmodBPF.pkg>, @stanza_options={}>, #<Cask::Artifact::Pkg:0x00007ff2fe95f4b8 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0/Add Wireshark to the system path.pkg>, @stanza_options={}>, #<Cask::Artifact::App:0x00007ff2fe966218 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @source_string="Wireshark.app", @target_string="", @source=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0/Wireshark.app>, @target=#<Pathname:/Applications/Wireshark.app>>, #<Cask::Artifact::Zap:0x00007ff2fe95e6f8 @cask=#<Cask::Cask:0x00007ff2fe26ce58 @token="wireshark", @sourcefile_path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb>, @tap=#<Tap:0x00007ff2fd84c7c0 @user="Homebrew", @repo="cask", @name="homebrew/cask", @full_name="Homebrew/homebrew-cask", @path=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask>, @alias_table=nil, @alias_reverse_table=nil, @cask_dir=#<Pathname:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks>>, @block=#<Proc:0x00007ff2fe26cc78@/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/wireshark.rb:1>, @caskroom_path=#<Pathname:/usr/local/Caskroom/wireshark>, @metadata_master_container_path=#<Pathname:/usr/local/Caskroom/wireshark/.metadata>, @config=#<Cask::Config:0x00007ff2fe967ac8 @explicit={}, @env={}, @default={:appdir=>#<Pathname:/Applications>, :prefpanedir=>#<Pathname:/Users/XXXXXXX/Library/PreferencePanes>, :qlplugindir=>#<Pathname:/Users/XXXXXXX/Library/QuickLook>, :dictionarydir=>#<Pathname:/Users/XXXXXXX/Library/Dictionaries>, :fontdir=>#<Pathname:/Users/XXXXXXX/Library/Fonts>, :colorpickerdir=>#<Pathname:/Users/XXXXXXX/Library/ColorPickers>, :servicedir=>#<Pathname:/Users/XXXXXXX/Library/Services>, :input_methoddir=>#<Pathname:/Users/XXXXXXX/Library/Input Methods>, :internet_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Internet Plug-Ins>, :audio_unit_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/Components>, :vst_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST>, :vst3_plugindir=>#<Pathname:/Users/XXXXXXX/Library/Audio/Plug-Ins/VST3>, :screen_saverdir=>#<Pathname:/Users/XXXXXXX/Library/Screen Savers>}>, @dsl=#<Cask::DSL:0x00007ff2fe967960 @cask=#<Cask::Cask:0x00007ff2fe26ce58 ...>, @token="wireshark", @version="3.2.0", @sha256="a1f5b86d3ae8a2be38db218d07ad1d123315433292adae71a9756bbc881438ee", @url=#<URL:0x00007ff2fe9675c8 @uri=#<URI::HTTPS https://1.na.dl.wireshark.org/osx/all-versions/Wireshark%203.2.0%20Intel%2064.dmg>, @user_agent=:default, @specs={}>, @appcast=#<Cask::DSL::Appcast:0x00007ff2fe967280 @uri=#<URI::HTTPS https://www.wireshark.org/update/0/Wireshark/0.0.0/macOS/x86-64/en-US/stable.xml>, @parameters={}>, @name=["Wireshark"], @homepage="https://www.wireshark.org/", @auto_updates=true, @conflicts_with={:cask=>#<Set: {"wireshark-chmodbpf"}>}, @depends_on={:macos=>#<MacOSRequirement: "macos" []>}, @artifacts=#<SortedSet: {...}>, @staged_path=#<Pathname:/usr/local/Caskroom/wireshark/3.2.0>, @language=nil>>, @directives={:trash=>"~/Library/Saved Application State/org.wireshark.Wireshark.savedState", :signal=>[]}>}>
==> Installing artifact of class Cask::Artifact::PreflightBlock
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for wireshark; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
/usr/bin/sudo -E -- /usr/bin/env LOGNAME=XXXXXXX USER=XXXXXXX USERNAME=XXXXXXX /usr/sbin/installer -pkg /usr/local/Caskroom/wireshark/3.2.0/Install\ ChmodBPF.pkg -target / -verboseR
Password:
installer: Package name is ChmodBPF
installer: Installing at base path /
installer:PHASE:Installation vorbereiten …
installer:PHASE:Volume vorbereiten …
installer:PHASE:„ChmodBPF“ vorbereiten …
installer:PHASE:Warten, bis andere Installationen abgeschlossen werden …
installer:PHASE:Installation konfigurieren …
installer:STATUS:
installer:%94.130853
installer:PHASE:Aufräumen …
installer:PHASE:Pakete überprüfen …
installer:%97.750000
installer:STATUS:Installationsaktionen ausführen …
installer:STATUS:
installer:PHASE:Installation abschließen …
installer:STATUS:
installer:%100.000000
installer:PHASE:Die Software wurde erfolgreich installiert.
installer: The install was successful.
==> Installing artifact of class Cask::Artifact::Pkg
==> Running installer for wireshark; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
/usr/bin/sudo -E -- /usr/bin/env LOGNAME=XXXXXXX USER=XXXXXXX USERNAME=XXXXXXX /usr/sbin/installer -pkg /usr/local/Caskroom/wireshark/3.2.0/Add\ Wireshark\ to\ the\ system\ path.pkg -target / -verboseR
installer: Package name is Add Wireshark to the system PATH
installer: Installing at base path /
installer:PHASE:Installation vorbereiten …
installer:PHASE:Volume vorbereiten …
installer:PHASE:„Add Wireshark to the system PATH“ vorbereiten …
installer:PHASE:Warten, bis andere Installationen abgeschlossen werden …
installer:PHASE:Installation konfigurieren …
installer:STATUS:
installer:%2.229250
installer:PHASE:Pakete überprüfen …
installer:%97.750000
installer:STATUS:Installationsaktionen ausführen …
installer:STATUS:
installer:PHASE:Installation abschließen …
installer:STATUS:
installer:%100.000000
installer:PHASE:Die Software wurde erfolgreich installiert.
installer: The install was successful.
==> Installing artifact of class Cask::Artifact::App
==> Moving App 'Wireshark.app' to '/Applications/Wireshark.app'.
🍺 wireshark was successfully installed!
brew cask doctor==> Homebrew Version
2.2.1-76-gaf98c15
==> macOS
10.15.2
==> SIP
Enabled
==> Java
12.0.1
==> xattr issues
<NONE>
==> Gatekeeper support
Enabled
==> Homebrew Cask Install Location
<NONE>
==> Homebrew Cask Staging Location
/usr/local/Caskroom
==> Homebrew Cask Taps:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask (3490 casks)
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-fonts (940 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-macho-2.2.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-rspec-1.37.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-performance-1.5.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rubocop-0.78.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unicode-display_width-1.6.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ruby-progressbar-1.10.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-wait-0.0.9/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-retry-0.6.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-its-1.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-mocks-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-expectations-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-core-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rspec-support-3.9.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ronn-0.7.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rdiscount-2.2.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/rdiscount-2.2.0.1
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/rainbow-3.0.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/plist-3.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parser-2.6.5.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel_tests-2.30.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/parallel-1.19.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mustache-1.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mechanize-2.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/webrobots-0.1.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ntlm-http-0.1.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/nokogiri-1.10.7/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/nokogiri-1.10.7
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mini_portile2-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-persistent-3.1.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/net-http-digest_auth-1.4.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-3.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/mime-types-data-3.2019.1009/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/jaro_winkler-1.5.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/jaro_winkler-1.5.4
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/http-cookie-1.0.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/hpricot-0.8.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/hpricot-0.8.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/domain_name-0.5.20190701/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf-0.1.4/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/unf_ext-0.0.7.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/unf_ext-0.0.7.6
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/diff-lcs-1.3/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/coveralls-0.8.23/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thor-1.0.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/term-ansicolor-1.7.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tins-1.22.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-0.16.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/simplecov-html-0.10.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/docile-1.3.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/json-2.3.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/extensions/universal-darwin-19/2.6.0/json-2.3.0
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/connection_pool-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/ast-2.4.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/activesupport-6.0.2.1/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/zeitwerk-2.2.2/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/tzinfo-1.2.5/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/thread_safe-0.3.6/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/minitest-5.13.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/i18n-1.7.0/lib
/usr/local/Homebrew/Library/Homebrew/vendor/bundle/bundler/../ruby/2.6.0/gems/concurrent-ruby-1.1.5/lib
/Library/Ruby/Site/2.6.0
/Library/Ruby/Site/2.6.0/x86_64-darwin19
/Library/Ruby/Site/2.6.0/universal-darwin19
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby/2.6.0/universal-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/x86_64-darwin19
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19
/usr/local/Homebrew/Library/Homebrew
==> Environment Variables
LC_ALL="en_US.UTF-8"
PATH="/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin"
SHELL="/bin/zsh"
brew taphomebrew/cask
homebrew/cask-fonts
homebrew/core
This is the case after installing "Add Wireshark to the system PATH" and seems to be a problem in the upstream package. After installation, these two files are not readable and cause the above error:
-rw------- 1 root wheel 57 Nov 20 18:19 /etc/manpaths.d/Wireshark
-rw------- 1 root wheel 43 Nov 20 18:19 /etc/paths.d/Wireshark
Yes, you're correct, doing a sudo chmod 644 /etc/manpaths.d/Wireshark /etc/paths.d/Wireshark fixes the problem.
Someone please report this upstream.
After uninstall it, the "Wireshark: Permission Denied" still print when open the terminal. if there is a way to delete it when brew uninstall it?
After uninstall it, the "Wireshark: Permission Denied" still print when open the terminal. if there is a way to delete it when brew uninstall it?
Install it again and run the command.
As a note the above upstream ticket was closed as dupe of 16284, which appears to be resolved:
Thanks. This will be fixed in 3.2.1 and is fixed in the most recent builds at https://www.wireshark.org/download/automated/osx/. For 3.2.0, chmod is probably the easiest workaround.
Most helpful comment
Yes, you're correct, doing a
sudo chmod 644 /etc/manpaths.d/Wireshark /etc/paths.d/Wiresharkfixes the problem.