Giter VIP home page Giter VIP logo

Comments (14)

bevanjkay avatar bevanjkay commented on May 27, 2024 75

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.

kyan001 avatar kyan001 commented on May 27, 2024 31

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.

elvinos avatar elvinos commented on May 27, 2024 17

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.

iambenmitchell avatar iambenmitchell commented on May 27, 2024 9

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",
                   ],

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:

  1. Open terminal
  2. Type: nano /opt/homebrew/Caskroom/blackhole-2ch/.metadata/0.5.0/
  3. Press tab until you see blackhole-2ch.rb filled out. Which will probably be different if you have the 4 channel

from homebrew-cask.

dobladov avatar dobladov commented on May 27, 2024 8

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",
                   ],

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.

pattespatte avatar pattespatte commented on May 27, 2024 6

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.

klaushardt avatar klaushardt commented on May 27, 2024 4

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.

krehel avatar krehel commented on May 27, 2024 3

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.

devinroth avatar devinroth commented on May 27, 2024 2

Linking to the relevant issue on the BlackHole repo.

ExistentialAudio/BlackHole#779

from homebrew-cask.

emindeniz99 avatar emindeniz99 commented on May 27, 2024

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.

bevanjkay avatar bevanjkay commented on May 27, 2024

@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.

JavierCane avatar JavierCane commented on May 27, 2024

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.

BrentSqAR avatar BrentSqAR commented on May 27, 2024

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.

Constantin1489 avatar Constantin1489 commented on May 27, 2024

For intel mac, /usr/local/Caskroom/blackhole-2ch/ instead of /opt/homebrew/Caskroom/blackhole-2ch/

from homebrew-cask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.