Opened 3 weeks ago

Last modified 3 weeks ago

#70809 new defect

Installer stuck on Running Package Scripts on macOS Sonoma 14.7

Reported by: markawonge (MarKA) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description (last modified by jmroot (Joshua Root))

After I downloaded and ran MacPorts-2.10.1-14-Sonoma.pkg, the installer got stuck on the "Running Package Scripts..." screen.

Installer log:

Sep 20 00:05:42 KwandeiMac Installer[1338]: @(#)PROGRAM:Install  PROJECT:Install-1000
Sep 20 00:05:42 KwandeiMac Installer[1338]: @(#)PROGRAM:Installer  PROJECT:Installer-1210
Sep 20 00:05:42 KwandeiMac Installer[1338]: Hardware: iMac19,1 @ 3.60 GHz (x 16), 32768 MB RAM
Sep 20 00:05:42 KwandeiMac Installer[1338]: Running OS Build: macOS 14.7 (23H124)
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: USER=kwan
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: COMMAND_MODE=unix2003
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: __CFBundleIdentifier=com.apple.installer
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: LOGNAME=kwan
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.gEAArXPA2D/Listeners
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: HOME=/Users/kwan
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: SHELL=/bin/zsh
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: TMPDIR=/var/folders/8r/yrtxksfd6wvdrbm8m089nlxc0000gn/T/
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x19:0x34
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: XPC_SERVICE_NAME=application.com.apple.installer.1152921500312120621.1152921500312120626
Sep 20 00:05:42 KwandeiMac Installer[1338]: Env: XPC_FLAGS=0x0
Sep 20 00:05:42 KwandeiMac Installer[1338]: MacPorts  Installation Log
Sep 20 00:05:42 KwandeiMac Installer[1338]: Opened from: /Users/kwan/Downloads/MacPorts-2.10.1-14-Sonoma.pkg
Sep 20 00:05:42 KwandeiMac Installer[1338]: Failed to load specified background image
Sep 20 00:05:42 KwandeiMac Installer[1338]: Product archive /Users/kwan/Downloads/MacPorts-2.10.1-14-Sonoma.pkg trustLevel=350
Sep 20 00:05:42 KwandeiMac Installer[1338]: External component packages (1) trustLevel=350
Sep 20 00:05:47 KwandeiMac Installer[1338]: ================================================================================
Sep 20 00:05:47 KwandeiMac Installer[1338]: User picked Standard Install
Sep 20 00:05:47 KwandeiMac Installer[1338]: Choices selected for installation:
Sep 20 00:05:47 KwandeiMac Installer[1338]: 	安装: "MacPorts"
Sep 20 00:05:47 KwandeiMac Installer[1338]: 	安装: "(null)"
Sep 20 00:05:47 KwandeiMac Installer[1338]: 		MacPorts-2.10.1-14-Sonoma.pkg#MacPorts-2.10.1-component.pkg : org.macports.MacPorts : 0.2.10.1.0.0.0.0.0
Sep 20 00:05:47 KwandeiMac Installer[1338]: ================================================================================
Sep 20 00:05:47 KwandeiMac Installer[1338]: It took 0.00 seconds to summarize the package selections.
Sep 20 00:05:47 KwandeiMac Installer[1338]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
Sep 20 00:05:47 KwandeiMac Installer[1338]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Users/kwan/Downloads/MacPorts-2.10.1-14-Sonoma.pkg#MacPorts-2.10.1-component.pkg
Sep 20 00:05:47 KwandeiMac Installer[1338]: Set authorization level to root for session
Sep 20 00:05:47 KwandeiMac Installer[1338]: Authorization is being checked, waiting until authorization arrives.
Sep 20 00:05:50 KwandeiMac Installer[1338]: Administrator authorization granted.
Sep 20 00:05:50 KwandeiMac Installer[1338]: Packages have been authorized for installation.
Sep 20 00:05:50 KwandeiMac Installer[1338]: Will use PK session
Sep 20 00:05:50 KwandeiMac Installer[1338]: Using authorization level of root for IFPKInstallElement
Sep 20 00:05:50 KwandeiMac Installer[1338]: Starting installation:
Sep 20 00:05:50 KwandeiMac Installer[1338]: Configuring volume "Macintosh"
Sep 20 00:05:50 KwandeiMac Installer[1338]: Preparing disk for local booted install.
Sep 20 00:05:50 KwandeiMac Installer[1338]: Free space on "Macintosh": 252.78 GB (252778729472 bytes).
Sep 20 00:05:50 KwandeiMac Installer[1338]: Create temporary directory "/var/folders/8r/yrtxksfd6wvdrbm8m089nlxc0000gn/T//Install.1338xjZFm8"
Sep 20 00:05:50 KwandeiMac Installer[1338]: IFPKInstallElement (1 packages)
Sep 20 00:05:50 KwandeiMac Installer[1338]: Current Path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Adding client PKInstallDaemonClient pid=1338, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
Sep 20 00:05:50 KwandeiMac Installer[1338]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Set reponsibility for install to 1338
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Hosted team responsibility for install set to team:(QTA3A3B7F3)
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: ----- Begin install -----
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: packages=(
	    "PKLeopardPackage <id=org.macports.MacPorts, version=0.2.10.1.0.0.0.0.0, url=file:///Users/kwan/Downloads/MacPorts-2.10.1-14-Sonoma.pkg#MacPorts-2.10.1-component.pkg>"
	)
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/6F93B989-C212-4B46-8BC4-AB9D8FD2AD65.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/722A7864-95EB-4C7C-A3F2-FC2033F2BD39.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/77A3F199-3ADC-431A-91DA-4A45D629B92F.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/D6E1CE6C-C8FA-4597-9D46-A05E060383FF.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/91AA7E3C-C8C6-4AB9-B25D-0D21723EB7AC.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Skipping stale sandbox at path /Library/InstallerSandboxes/.PKInstallSandboxManager/C85D208D-E7CD-4934-9207-E137E366D7EE.activeSandbox
Sep 20 00:05:50 KwandeiMac installd[983]: PackageKit: Extracting file:///Users/kwan/Downloads/MacPorts-2.10.1-14-Sonoma.pkg#MacPorts-2.10.1-component.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/B9F2D1D5-DD15-4B95-BDD9-1523BEE59B8D.activeSandbox/Root, uid=0)
Sep 20 00:05:51 KwandeiMac installd[983]: PackageKit: prevent user idle system sleep
Sep 20 00:05:51 KwandeiMac installd[983]: PackageKit: suspending backupd
Sep 20 00:05:51 KwandeiMac installd[983]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/B9F2D1D5-DD15-4B95-BDD9-1523BEE59B8D.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/B9F2D1D5-DD15-4B95-BDD9-1523BEE59B8D.activeSandbox
Sep 20 00:05:51 KwandeiMac install_monitor[1349]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
Sep 20 00:05:51 KwandeiMac installd[983]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/B9F2D1D5-DD15-4B95-BDD9-1523BEE59B8D.activeSandbox/Root (1 items) to /
Sep 20 00:05:51 KwandeiMac installd[983]: PackageKit (package_script_service): Preparing to execute script "./postinstall" in /private/tmp/PKInstallSandbox.ehBEbS/Scripts/org.macports.MacPorts.EL5p6Q
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: PackageKit: Preparing to execute script "postinstall" in /tmp/PKInstallSandbox.ehBEbS/Scripts/org.macports.MacPorts.EL5p6Q
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: Set responsibility to pid: 1338, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: Hosted team responsibility for script set to team:(QTA3A3B7F3)
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.ehBEbS/Scripts/org.macports.MacPorts.EL5p6Q
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: ./postinstall: The MacPorts Project, postflight script version 2.7: checking the shell environment for user "kwan".
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: ./postinstall: Removing old man pages...
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: ./postinstall: Done.
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: ./postinstall: Detected the zsh shell.
Sep 20 00:05:51 KwandeiMac package_script_service[1351]: ./postinstall: Your shell already has the right PATH environment variable for use with MacPorts!
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: Your shell already has the right DISPLAY environment variable for use with MacPorts!
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: Adding [default] tag to sources.conf if needed...
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: Updating port image format...
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: No ports installed to convert.
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: Synchronizing the MacPorts installation with the project's rsync server...
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall: --->  Checking for newer releases of MacPorts
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Sep 20 00:05:52 KwandeiMac package_script_service[1351]: ./postinstall:                                  Dload  Upload   Total   Spent    Left  Speed
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: 
	  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
	100    63  100    63    0     0    124      0 --:--:-- --:--:-- --:--:--   124
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: MacPorts base version 2.10.1 installed,
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: MacPorts base version 2.10.1 available.
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: --->  MacPorts base is already the latest version
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: --->  Updating the ports tree
Sep 20 00:05:53 KwandeiMac package_script_service[1351]: ./postinstall: Synchronizing local ports tree from rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz
Sep 20 00:05:55 KwandeiMac package_script_service[1351]: ./postinstall: Willkommen auf dem RSYNC-server auf ftp.fau.de.
Sep 20 00:05:55 KwandeiMac package_script_service[1351]: ./postinstall: Nicht all unsere Mirror sind per rsync verfuegbar.
Sep 20 00:05:55 KwandeiMac package_script_service[1351]: ./postinstall: Welcome to the RSYNC daemon on ftp.fau.de.
Sep 20 00:05:55 KwandeiMac package_script_service[1351]: ./postinstall: Not all of our mirrors are available through rsync.
Sep 20 00:05:56 KwandeiMac package_script_service[1351]: ./postinstall: receiving file list ... done
Sep 20 00:05:57 KwandeiMac package_script_service[1351]: ./postinstall: ./
Sep 20 00:05:58 KwandeiMac package_script_service[1351]: ./postinstall: ports.tar.gz

Change History (5)

comment:1 Changed 3 weeks ago by markawonge (MarKA)

Description: modified (diff)

comment:2 Changed 3 weeks ago by jmroot (Joshua Root)

Description: modified (diff)

How long was it stuck for?

comment:3 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

At this point in the installation MacPorts is downloading the ports tree via rsync. If your network connection to the rsync server is slow, this can take some time. The primary rsync server is in Germany. You can configure MacPorts to use a closer mirror server; see wiki:Mirrors.

comment:4 Changed 3 weeks ago by markawonge (MarKA)

Thank you for your reply. Could you please let me know how to change the rsync source during the installation using the installer? Thank you!

comment:5 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

If you already have /opt/local/etc/macports/sources.conf, the installer will use what's in it, so you can populate it with your preferred value from wiki:Mirrors.

In the post-installation script, the installer is essentially just running sudo port selfupdate, so if you already have MacPorts installed, but the installer did not complete the post-installation step, you can run sudo port selfupdate manually to complete it. Or you can re-run the installer package if you prefer.

Note: See TracTickets for help on using tickets.