canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.51k stars 632 forks source link

brew install multipass Installation failed #3518

Closed White957 closed 3 days ago

White957 commented 2 months ago

brew install multipass ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/afbc122fa14873307ac0b448134d70e9c0bff771/Casks/m/multipass.rb Already downloaded: /Users/bob/Library/Caches/Homebrew/downloads/3b9a7919d1ae7f28a5c0a6d1a7fddd9dd202c86043d477f3e76e0de72a98f0b9--multipass.rb Warning: Cannot verify integrity of '3b9a7919d1ae7f28a5c0a6d1a7fddd9dd202c86043d477f3e76e0de72a98f0b9--multipass.rb'. No checksum was provided. For your reference, the checksum is: sha256 "be45d9153cddf7cb5156ed3ab2dd40108787a972db92638a18e067d53b990d82" ==> Downloading https://github.com/canonical/multipass/releases/download/v1.13.1/multipass-1.13.1+mac-Darwin.pkg Already downloaded: /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> Installing Cask multipass ==> Running installer for multipass with sudo; the password may be necessary. Password: installer: Package name is multipass installer: Installing at base path / installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“multipass-1.13.1+mac-Darwin.pkg”的脚本时出错。) ==> Purging files for version 1.13.1 of Cask multipass Error: Failure while executing; /usr/bin/sudo -u root -E LOGNAME=bob USER=bob USERNAME=bob -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/multipass/1.13.1/multipass-1.13.1+mac-Darwin.pkg -target / exited with 1. Here's the output: installer: Package name is multipass installer: Installing at base path / installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“multipass-1.13.1+mac-Darwin.pkg”的脚本时出错。)

White957 commented 2 months ago

Security settings have been attempted to allow and restart the system

townsend2010 commented 2 months ago

Hi @White957!

It doesn't look like there is much detail as to why this failed. Have you tried installing with the installer directly? You can find the installer at https://github.com/canonical/multipass/releases/download/v1.13.1/multipass-1.13.1+mac-Darwin.pkg.

White957 commented 2 months ago

Yes, I have tried but also failed The same result is achieved on both computers with M1 processors

White957 commented 2 months ago

@townsend2010 This is the installation information displayed under debug. Can you identify any issues?

brew install --debug multipass /opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading multipass /opt/homebrew/Library/Homebrew/brew.rb (Formulary::NullLoader): loading multipass /opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading multipass ==> Cask::Installer#install ==> Printing caveats ==> Cask::Installer#fetch ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/0366e46578dee6b5f92d6a6a0d2ccab15b15fe84/Casks/m/multipass.rb /usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.20\ (Macintosh\;\ arm64\ Mac\ OS\ X\ 14.4.1)\ curl/8.4.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://raw.githubusercontent.com/Homebrew/homebrew-cask/0366e46578dee6b5f92d6a6a0d2ccab15b15fe84/Casks/m/multipass.rb Already downloaded: /Users/bob/Library/Caches/Homebrew/downloads/06bea999e951d3f66da8820fabcc7d710fe0af4286343f86bc0b64797e203b7a--multipass.rb ==> Downloading https://github.com/canonical/multipass/releases/download/v1.13.1/multipass-1.13.1+mac-Darwin.pkg /usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.2.20\ (Macintosh\;\ arm64\ Mac\ OS\ X\ 14.4.1)\ curl/8.4.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://github.com/canonical/multipass/releases/download/v1.13.1/multipass-1.13.1+mac-Darwin.pkg Already downloaded: /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> Checking quarantine support /usr/bin/env /usr/bin/xattr -h /usr/bin/env /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -target arm64-apple-macosx14 /opt/homebrew/Library/Homebrew/cask/utils/quarantine.swift ==> Quarantine is available. ==> Verifying Gatekeeper status of /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg /usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg is quarantined /usr/bin/env hdiutil imageinfo -format /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> Installing Cask multipass ==> Cask::Installer#stage ==> Extracting primary container ==> Using container class UnpackStrategy::Pkg for /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> Verifying Gatekeeper status of /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg /usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg ==> /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg is quarantined ==> Propagating quarantine from /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg to /opt/homebrew/Caskroom/multipass/1.13.1 /usr/bin/env /usr/bin/xattr -p com.apple.quarantine /Users/bob/Library/Caches/Homebrew/downloads/2d5e02353cda04cfc9432e2bd851b8701e3880602961bd905d5742ef577d9af5--multipass-1.13.1+mac-Darwin.pkg /usr/bin/env /usr/bin/xargs -0 -- /bin/chmod -h u+w /usr/bin/env /usr/bin/xargs -0 -- /usr/bin/xattr -w com.apple.quarantine 0181\;6634809d\;Homebrew\x20Cask\;D2E4AF01-53C7-45F6-8C6B-D251F4ED5333 ==> Creating metadata directory: /opt/homebrew/Caskroom/multipass/.metadata/1.13.1/20240505023934.735 ==> Creating metadata subdirectory: /opt/homebrew/Caskroom/multipass/.metadata/1.13.1/20240505023934.735/Casks ==> Installing artifacts ==> Installing artifact of class Cask::Artifact::Pkg ==> Running installer for multipass with sudo; the password may be necessary. /usr/bin/sudo -u root -E LOGNAME=bob USER=bob USERNAME=bob -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/multipass/1.13.1/multipass-1.13.1+mac-Darwin.pkg -target / installer: Package name is multipass installer: Installing at base path / installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“multipass-1.13.1+mac-Darwin.pkg”的脚本时出错。) ==> Purging files for version 1.13.1 of Cask multipass Error: Failure while executing; /usr/bin/sudo -u root -E LOGNAME=bob USER=bob USERNAME=bob -- /usr/sbin/installer -pkg /opt/homebrew/Caskroom/multipass/1.13.1/multipass-1.13.1+mac-Darwin.pkg -target / exited with 1. Here's the output: installer: Package name is multipass installer: Installing at base path / installer: The install failed. (安装器遇到了一个错误,导致安装失败。请联系软件生产企业以获得帮助。 运行软件包“multipass-1.13.1+mac-Darwin.pkg”的脚本时出错。) /opt/homebrew/Library/Homebrew/system_command.rb:352:in assert_success!' /opt/homebrew/Library/Homebrew/system_command.rb:75:inrun!' /opt/homebrew/Library/Homebrew/system_command.rb:40:in run' /opt/homebrew/Library/Homebrew/system_command.rb:44:inrun!' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:63:in block in run_installer' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:76:inwith_choices_file' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:56:in run_installer' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:32:ininstall_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:249:in block in install_artifacts' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:12:ineach' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:12:in each' /opt/homebrew/Library/Homebrew/cask/installer.rb:242:ininstall_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:inblock in run' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:inrun' /opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

ricab commented 3 days ago

It is unclear why the install failed and whether the problem extends to installing directly with our package. Please note that the brew recipe is outside of our control, so if the issue only happens there, that would be a problem to report to them.