Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew install multipass Installation failed #3518

Open
White957 opened this issue May 2, 2024 · 4 comments
Open

brew install multipass Installation failed #3518

White957 opened this issue May 2, 2024 · 4 comments
Assignees
Labels
bug needs triage Issue needs to be triaged question

Comments

@White957
Copy link

White957 commented May 2, 2024

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 White957 added bug needs triage Issue needs to be triaged labels May 2, 2024
@White957
Copy link
Author

White957 commented May 2, 2024

Security settings have been attempted to allow and restart the system

@townsend2010 townsend2010 self-assigned this May 2, 2024
@townsend2010
Copy link
Collaborator

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
Copy link
Author

White957 commented May 3, 2024

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

@White957
Copy link
Author

White957 commented May 5, 2024

@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:in run!'
/opt/homebrew/Library/Homebrew/system_command.rb:40:in run' /opt/homebrew/Library/Homebrew/system_command.rb:44:in run!'
/opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:63:in block in run_installer' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:76:in with_choices_file'
/opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:56:in run_installer' /opt/homebrew/Library/Homebrew/cask/artifact/pkg.rb:32:in install_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:249:in block in install_artifacts' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:12:in each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:12:in each' /opt/homebrew/Library/Homebrew/cask/installer.rb:242:in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Issue needs to be triaged question
Projects
None yet
Development

No branches or pull requests

2 participants