Comments (14)
A potentially easier solution is to remove the file from the Caskroom
and then reinstall it.
This will cause Brew to use the most up-to-date uninstall stanza, instead of the one that was present when the installed version was installed.
Silicon Mac
rm -rfi /opt/homebrew/Caskroom/blackhole-2ch/
Intel Mac
rm -rfi /usr/local/Caskroom/blackhole-2ch/
Then reinstall
brew reinstall blackhole-2ch
from homebrew-cask.
I uninstalled the old version by manually modified /opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/20231116152617.059/Casks/blackhole-2ch.rb
at line 18-23 from
system_command "/bin/launchctl",
args: [
"kickstart",
"-kp",
"system/com.apple.audio.coreaudiod",
],
to
system_command "/usr/bin/killall",
args: [
"coreaudiod",
],
from homebrew-cask.
A potentially easier solution is to remove the file from the
Caskroom
and then reinstall it. This will cause Brew to use the most up-to-date uninstall stanza, instead of the one that was present when the installed version was installed.Silicon Mac
rm -rfi /opt/homebrew/Caskroom/blackhole-2ch/
Intel Mac
rm -rfi /usr/local/Caskroom/blackhole-2ch/
Then reinstall
brew reinstall blackhole-2ch
The worked for me if you dont include the "i" in rfi i.e.: rm -rf /opt/homebrew/Caskroom/blackhole-2ch/
Thanks all!
from homebrew-cask.
I uninstalled the old version by manually modified
/opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/20231116152617.059/Casks/blackhole-2ch.rb
at line 18-23 fromsystem_command "/bin/launchctl", args: [ "kickstart", "-kp", "system/com.apple.audio.coreaudiod", ],to
system_command "/usr/bin/killall", args: [ "coreaudiod", ],
Yep this fixed the brew upgrade
command for me.
My file was located at /opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/20230911235106.162/Casks/blackhole-2ch.rb
I assume this will be different for each system.
I recommend doing this in terminal:
- Open terminal
- Type:
nano /opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/
- Press tab until you see
blackhole-2ch.rb
filled out. Which will probably be different if you have the 4 channel
from homebrew-cask.
I uninstalled the old version by manually modified
/opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/20231116152617.059/Casks/blackhole-2ch.rb
at line 18-23 fromsystem_command "/bin/launchctl", args: [ "kickstart", "-kp", "system/com.apple.audio.coreaudiod", ],to
system_command "/usr/bin/killall", args: [ "coreaudiod", ],
bakcground-music
had exactly the same issue, this file can be modified to fix it.
sudo nano /opt/homebrew/Caskroom/background-music/.metadata/0.4.0/20231225152717.155/Casks/background-music.rb
from homebrew-cask.
BlackHole was transfered during the migration from my Intel Mac to the Silicon Mac. It worked after these commands:
rm -rf /usr/local/Caskroom/blackhole-2ch/
Then install again
brew install blackhole-2ch
from homebrew-cask.
I have the same error and found this.
Core Audio - Known Issues
To improve security and stability, using launchctl kickstart -k is no longer permitted for critical system processes. If a process must be forcefully terminated, it is recommended to use kill instead. (123028502)
Solution: With OS X Sonoma 14.4 update there is no rights to relaunch coreaudiod - https://forums.developer.apple.com/forums/thread/748228?answerId=784882022#784882022
sudo killall coreaudiod
from homebrew-cask.
Yes, I patched the Cask files for blackhole-[2|16|64]ch
to account for this after it was raised to our attention last month.
We had a discussion the other day about the solution, and someone was kind enough to write a small patch script - https://github.com/orgs/Homebrew/discussions/5291
from homebrew-cask.
Linking to the relevant issue on the BlackHole repo.
ExistentialAudio/BlackHole#779
from homebrew-cask.
Thank you @klaushardt and @krehel, I solved my problem with removing the uninstall cask script from local file and kill coreaudiod manually.
I didn't search the issue in discussions, sorry for my mistake.
Manual editing is required for all users. Is it correct because there is not any method to update installed cask in local homebrew metadata?
from homebrew-cask.
@emindeniz99 No there isn't, because the uninstall process can often change over time, so we use the version that matches the currently installed version. If you were to remove the cask's directory from the Caskroom, and use brew reinstall
the latest uninstall script would be used instead.
from homebrew-cask.
Thx @kyan001!
I had to modify it as the new recipe states (commit):
system_command "/usr/bin/killall",
args: ["coreaudiod"],
sudo: true,
must_succeed: true
from homebrew-cask.
I was running a second reinstall blackhole-64ch - and it was working.
Thanks and have a nicce day
I followed bevanjkay -> it was working for blackhole-2ch and blackhole-16ch.
But not for: blackhole-64ch:
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/1f1003545f569d4edd1605b305201d122feb66ed/Casks/b/blackhole-64ch.rb
Already downloaded: /Users/bs/Library/Caches/Homebrew/downloads/6f266aa25cea5072a49537567e6d791240b75ee40f5a7b5672f2e987703bb2c8--blackhole-64ch.rb
==> Downloading https://existential.audio/downloads/BlackHole64ch-0.6.0.pkg
Already downloaded: /Users/bs/Library/Caches/Homebrew/downloads/e3d9aac22defb66f385a873b85ae492aea540dc48984702df9c03837a8e525ea--BlackHole64ch-0.6.0.pkg
==> Installing Cask blackhole-64ch
==> Running installer for blackhole-64ch with sudo; the password may be necessary.
installer: Package name is BlackHole: Audio Loopback Driver (64ch) 0.6.0
installer: Upgrading at base path /
installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “BlackHole64ch-0.6.0.pkg”.)
==> Purging files for version 0.6.0 of Cask blackhole-64ch
Error: Failure while executing; /usr/bin/sudo -u root -E LOGNAME=bs USER=bs USERNAME=bs -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/blackhole-64ch/0.6.0/BlackHole64ch-0.6.0.pkg -target /
exited with 1. Here's the output:
installer: Package name is BlackHole: Audio Loopback Driver (64ch) 0.6.0
installer: Upgrading at base path /
installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “BlackHole64ch-0.6.0.pkg”.)
from homebrew-cask.
For intel mac, /usr/local/Caskroom/blackhole-2ch/
instead of /opt/homebrew/Caskroom/blackhole-2ch/
from homebrew-cask.
Related Issues (20)
- 115 has changed its installation method HOT 1
- An error occurred during software installation and cannot be resolved HOT 3
- Missing steelseries-exactmouse-tool from Homebrew/homebrew-cask-drivers HOT 3
- Unexpected method 'appcast' called on Cask winds HOT 9
- 404: prosys-opc-ua-browser HOT 1
- Unexpected method 'appcast' called on Cask near-lock. HOT 1
- brew outdated Error: Unexpected method 'appcast' called on Cask cryptobridge HOT 1
- Unexpected method 'appcast' called on Cask adoptopenjdk11 HOT 1
- zoom 6.0+ fails to install -- invalid path for downloaded package HOT 2
- Unexpected method 'appcast' called on Cask mongodb HOT 1
- Unable to install yandex-cloud-cli cask HOT 4
- Unexpected method 'appcast' called on Cask gfortran HOT 2
- vmware-fusion cask download failed HOT 6
- can't install bartender HOT 2
- [exelban/stats: v2.10.13] Error: SHA256 mismatch (followed all verification steps, error when trying to open PR)
- postman SHA256 mismatch when upgrade to 11.1.0 HOT 10
- github SHA256 Mismatch When Installing Version 3.3.18 HOT 8
- Convert scripts in `developer/bin` to Homebrew commands HOT 4
- Installing cask philips-hue-sync v1.12.0.64 fails with undefined method `rename' for nil HOT 4
- Cask texshop cannot be updated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-cask.