[MacPorts] #72624: port @2.10.99: Error: updating PortIndex for ... ports.tar failed

MacPorts noreply at macports.org
Wed Jun 18 19:48:45 UTC 2025


#72624: port @2.10.99: Error: updating PortIndex for ... ports.tar failed
--------------------------+--------------------
 Reporter:  FaradayLight  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:                |       Port:
--------------------------+--------------------
 I thought I would try testing the beta package after seeing the email, but
 I may have performed the update incorrectly.

 Downloaded MacPorts-2.11.0-beta1-15-Sequoia.pkg and double-clicked to
 manually install it over the existing build.

 The debug output generated by 'selfupdate' reported a permssions issue:


 {{{
 % sudo port -d selfupdate
 Password:
 DEBUG: Copying /Users/<user>/Library/Preferences/com.apple.dt.Xcode.plist
 to /opt/local/var/macports/home/Library/Preferences
 DEBUG: MacPorts sources location:
 /opt/local/var/macports/sources/selfupdate
 --->  Checking for newer releases of MacPorts
 DEBUG: Attempting to fetch version file
 https://raw.githubusercontent.com/macports/macports-
 base/master/config/RELEASE_URL
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
 100    63  100    63    0     0    516      0 --:--:-- --:--:-- --:--:--
 520
 MacPorts base version 2.10.99 installed,
 MacPorts base version 2.10.7 available.
 DEBUG: Rebuilding and reinstalling MacPorts if needed
 --->  MacPorts base is probably master or a release candidate
 --->  Updating the ports tree
 Synchronizing local ports tree from
 rsync://rsync.macports.org/macports/release/tarballs/ports.tar
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after
 --include=/ports.tar.gz --include=/ports.tar.gz.rmd160
 --include=/ports.tar.gz.sig --exclude=*
 rsync://rsync.macports.org/macports/release/tarballs/
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote
 shell-init: error retrieving current directory: getcwd: cannot access
 parent directories: Permission denied
 Willkommen auf dem RSYNC-server auf ftp.fau.de.
 Nicht all unsere Mirror sind per rsync verfuegbar.
 Welcome to the RSYNC daemon on ftp.fau.de.
 Not all of our mirrors are available through rsync.
 Transfer starting: 3 files
 ./

 sent 97 bytes  received 102 bytes  1990000 bytes/sec
 total size is 34737651  speedup is 174560.18
 DEBUG: Attempting to verify signature for
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote/ports.tar.gz
 DEBUG: Invoking /usr/bin/openssl dgst -ripemd160 -verify
 /opt/local/share/macports/macports-pubkey.pem -signature
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote/ports.tar.gz.rmd160
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote/ports.tar.gz
 to verify signature
 DEBUG:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote/ports.tar.gz
 successfully verified with public key /opt/local/share/macports/macports-
 pubkey.pem
 DEBUG: Using bsdtar with HFS+ compression (if valid)
 DEBUG: system: bsdtar --hfsCompression -C
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp
 -xzf
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote/ports.tar.gz
 shell-init: error retrieving current directory: getcwd: cannot access
 parent directories: Permission denied
 DEBUG: system: chmod -R a+r
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/remote
 DEBUG: system: /opt/local/bin/portindex
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 shell-init: error retrieving current directory: getcwd: cannot access
 parent directories: Permission denied
 error getting working directory name: permission denied
     while executing
 "pwd"
     (procedure "parse_args" line 63)
     invoked from within
 "parse_args"
     (file "/opt/local/bin/portindex" line 383)
 Command failed: /opt/local/bin/portindex
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 Exit code: 1
 Error: updating PortIndex for
 rsync://rsync.macports.org/macports/release/tarballs/ports.tar failed

 The ports tree has been updated.

 2 ports are outdated. Run 'port outdated' for details.
 To upgrade your installed ports, you should run
   port upgrade outdated

 }}}

 The permissions on the parent directories look fine and have not been
 altered since previous updates - all of which have installed without
 error.

 Build:

 {{{
 MacPortsVersion:        2.10.99
 XcodeVersion:           16.4
 XcodeBuild:             16F6
 XcodeSDKVersion:        15.5
 XcodeCLTVersion:        16.4.0.0.1.1747106510
 XcodePlatformVersion:   15.5
 ProductName:            macOS
 ProductVersion:         15.5
 BuildVersion:           24F74
 PlatformArchitecture:   arm64e
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/72624>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list