Closed sbirkmyre closed 4 months ago
Can you post the output of:
cat /var/log/install.log | grep -F "$(date +%F)"
Sure, please see the following.
2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: @(#)PROGRAM:Install PROJECT:Install-1000 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: @(#)PROGRAM:Installer PROJECT:Installer-1118 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Hardware: MacBookPro11,5 @ 2.50 GHz (x 8), 16384 MB RAM 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Running OS Build: macOS 12.7.5 (21H1222) 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: USER=sbirkmyre 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: __CFBundleIdentifier=com.apple.installer 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: COMMAND_MODE=unix2003 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: LOGNAME=sbirkmyre 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.jplzkX7Tj5/Listeners 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: SHELL=/bin/bash 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: HOME=/Users/sbirkmyre 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:2 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: TMPDIR=/var/folders/zk/s0pk1mx934lbj74cpcnm3grh0000gn/T/ 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: XPC_SERVICE_NAME=application.com.apple.installer.1152921500312164925.1152921500312164930 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Env: XPC_FLAGS=0x0 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Homebrew Installation Log 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Opened from: /Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Product archive /Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg trustLevel=350 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: External component packages (1) trustLevel=350 2024-07-02 17:44:32+12 Shauns-MacBook-Pro Installer[5562]: Could not load resource readme: (null) 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: ================================================================================ 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: User picked Standard Install 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Choices selected for installation: 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Install: "" 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Install: "(null)" 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Homebrew-4.3.7.pkg#Homebrew.pkg : sh.brew.homebrew : 4.3.7 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: ================================================================================ 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: It took 0.00 seconds to summarize the package selections. 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg#Homebrew.pkg 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Set authorization level to root for session 2024-07-02 17:44:38+12 Shauns-MacBook-Pro Installer[5562]: Authorization is being checked, waiting until authorization arrives. 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Administrator authorization granted. 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Packages have been authorized for installation. 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Will use PK session 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Using authorization level of root for IFPKInstallElement 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Starting installation: 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Configuring volume "Macintosh HD" 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Preparing disk for local booted install. 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Free space on "Macintosh HD": 163.84 GB (163839594496 bytes). 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Create temporary directory "/var/folders/zk/s0pk1mx934lbj74cpcnm3grh0000gn/T//Install.55626GfS2J" 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: IFPKInstallElement (1 packages) 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: Current Path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Adding client PKInstallDaemonClient pid=5562, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) 2024-07-02 17:44:43+12 Shauns-MacBook-Pro Installer[5562]: PackageKit: Enqueuing install with framework-specified quality of service (utility) 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Set reponsibility for install to 5562 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: ----- Begin install ----- 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: request=PKInstallRequest <1 packages, destination=/> 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: packages=( 2024-07-02 17:44:43+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Extracting file:///Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg#Homebrew.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/A69614B9-188A-4828-9BC2-BD66A11F1772.activeSandbox/Root/opt/homebrew, uid=0) 2024-07-02 17:44:45+12 Shauns-MacBook-Pro installd[2775]: PackageKit: prevent user idle system sleep 2024-07-02 17:44:45+12 Shauns-MacBook-Pro installd[2775]: PackageKit: suspending backupd 2024-07-02 17:44:45+12 Shauns-MacBook-Pro installd[2775]: PackageKit (package_script_service): Preparing to execute script "./preinstall" in /private/tmp/PKInstallSandbox.bng14z/Scripts/sh.brew.homebrew.qT0cLP 2024-07-02 17:44:45+12 Shauns-MacBook-Pro package_script_service[2788]: PackageKit: Executing script "preinstall" in /tmp/PKInstallSandbox.bng14z/Scripts/sh.brew.homebrew.qT0cLP 2024-07-02 17:44:45+12 Shauns-MacBook-Pro package_script_service[2788]: Set responsibility to pid: 5562, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer 2024-07-02 17:44:45+12 Shauns-MacBook-Pro install_monitor[5567]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr 2024-07-02 17:44:45+12 Shauns-MacBook-Pro package_script_service[2788]: Responsibility set back to self. 2024-07-02 17:44:45+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/A69614B9-188A-4828-9BC2-BD66A11F1772.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/A69614B9-188A-4828-9BC2-BD66A11F1772.activeSandbox 2024-07-02 17:44:45+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/A69614B9-188A-4828-9BC2-BD66A11F1772.activeSandbox/Root (1 items) to / 2024-07-02 17:44:46+12 Shauns-MacBook-Pro installd[2775]: PackageKit (package_script_service): Preparing to execute script "./postinstall" in /private/tmp/PKInstallSandbox.bng14z/Scripts/sh.brew.homebrew.qT0cLP 2024-07-02 17:44:46+12 Shauns-MacBook-Pro package_script_service[2788]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.bng14z/Scripts/sh.brew.homebrew.qT0cLP 2024-07-02 17:44:46+12 Shauns-MacBook-Pro package_script_service[2788]: Set responsibility to pid: 5562, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer 2024-07-02 17:44:47+12 Shauns-MacBook-Pro package_script_service[2788]: ./postinstall: HEAD is now at 43eaeca50f Merge pull request #17546 from Homebrew/ww/gh-bootstrap-fix 2024-07-02 17:44:47+12 Shauns-MacBook-Pro package_script_service[2788]: ./postinstall: Switched to branch 'master' 2024-07-02 17:44:47+12 Shauns-MacBook-Pro package_script_service[2788]: ./postinstall: mv: rename /opt/homebrew to /usr/local/Homebrew/homebrew: Directory not empty 2024-07-02 17:44:47+12 Shauns-MacBook-Pro package_script_service[2788]: Responsibility set back to self. 2024-07-02 17:44:47+12 Shauns-MacBook-Pro install_monitor[5567]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: releasing backupd 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: allow user idle system sleep 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Homebrew-4.3.7.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg#Homebrew.pkg, PKInstallPackageIdentifier=sh.brew.homebrew, NSLocalizedDescription=An error occurred while running scripts from the package “Homebrew-4.3.7.pkg”.} { 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Cleared responsibility for install from 5562. 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Cleared permissions on Installer.app 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Running idle tasks 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Done with sandbox removals 2024-07-02 17:44:47+12 Shauns-MacBook-Pro Installer[5562]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Homebrew-4.3.7.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/sbirkmyre/Downloads/Homebrew-4.3.7.pkg#Homebrew.pkg, PKInstallPackageIdentifier=sh.brew.homebrew, NSLocalizedDescription=An error occurred while running scripts from the package “Homebrew-4.3.7.pkg”.} 2024-07-02 17:44:47+12 Shauns-MacBook-Pro installd[2775]: PackageKit: Removing client PKInstallDaemonClient pid=5562, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer) 2024-07-02 17:44:48+12 Shauns-MacBook-Pro Installer[5562]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. 2024-07-02 17:44:48+12 Shauns-MacBook-Pro Installer[5562]: IFDInstallController 2AE5280 state = 8 2024-07-02 17:44:48+12 Shauns-MacBook-Pro Installer[5562]: Displaying 'Install Failed' UI. 2024-07-02 17:44:48+12 Shauns-MacBook-Pro Installer[5562]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'. 2024-07-02 17:44:50+12 Shauns-MacBook-Pro Installer[5562]: Package Removal: User opted to keep package. Shauns-MacBook-Pro:~ sbirkmyre$
The directory structure of your /usr/local/Homebrew
looks weird, as there exists a homebrew
subdirectory there. Can you remove /usr/local/Homebrew
and try the installer again?
Yep that's fixed it. Got the success message with next steps, etc. Thanks for your help!
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
Install Homebrew as I'm looking to work my way through the Ruby Course on the Odin Project. Using a mid 2015 MacBook Pro running MacOS 12.7.5 (Monterey).
What happened (include all command output)?
When running the installer, I end up at the Summary step with the message.
"The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."
What did you expect to happen?
I expected the installation to complete without any issues.
Step-by-step reproduction instructions (by running
brew
commands)