brew remove (cask) -> the package path specified was invalid #3245
Answered
by
SMillerDev
rafalkrupinski
asked this question in
Casks
-
Hi, % brew remove wireshark
==> Uninstalling Cask wireshark
Password:
Error: Failure while executing; `/usr/bin/sudo -E -- /usr/sbin/installer -pkg /usr/local/Caskroom/wireshark/3.4.8/Uninstall\ ChmodBPF.pkg -target /` exited with 1. Here's the output:
installer: Error - the package path specified was invalid: '/usr/local/Caskroom/wireshark/3.4.8/Uninstall ChmodBPF.pkg'.
% installer -dumplog -pkg /usr/local/Caskroom/wireshark/3.4.8/Uninstall\ ChmodBPF.pkg -target /
May 7 21:05:09 installer[12913] <Critical>: PFPkg: No file found at path: /usr/local/Caskroom/wireshark/3.4.8/Uninstall ChmodBPF.pkg
May 7 21:05:09 installer[12913] <Critical>: PFPackage::packageWithURL - can't instantiate package: /usr/local/Caskroom/wireshark/3.4.8/Uninstall ChmodBPF.pkg
installer: Error - the package path specified was invalid: '/usr/local/Caskroom/wireshark/3.4.8/Uninstall ChmodBPF.pkg'. Not sure what else I can try |
Beta Was this translation helpful? Give feedback.
Answered by
SMillerDev
May 8, 2022
Replies: 2 comments 2 replies
-
Can you check if the file exists? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
rafalkrupinski
-
# fd pkg /opt/homebrew/Caskroom/wireshark/4.0.7/Wireshark.app
ln -s /opt/homebrew/Caskroom/wireshark/4.0.7/Wireshark.app/Contents/Resources/Extras/Remove\ Wireshark\ from\ the\ system\ path.pkg /opt/homebrew/Caskroom/wireshark/4.0.7/
/opt/homebrew/Caskroom/wireshark/4.0.7/
/opt/homebrew/Caskroom/wireshark/4.0.7/Wireshark.app/Contents/Resources/Extras/Uninstall\ ChmodBPF.pkg /opt/homebrew/Caskroom/wireshark/4.0.7/
brew reinstall --cask wireshark |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you check if the file exists?