Selfupdate to MacPorts 2.8.0 Throws Error 'Couldn't change permissions of the MacPorts sources'

Steven Smith steve.t.smith at
Sat Oct 22 12:09:30 UTC 2022

I’m consistently getting this error across multiple boxes when doing a selfupdate to 2.8.0:

> Congratulations, you have successfully upgraded the MacPorts system.
> Error: Couldn't change permissions of the MacPorts sources at /opt/local/var/macports/sources/ to root: child killed: kill signal

Another selfupdate command ignores the issue, but the ownership of base appears to be broken:

> ls -ld /opt/local/var/macports/sources/
> drwxr-xr-x  35 messagebus  polkitd  1120 Oct 22 07:57 /opt/local/var/macports/sources/

More information about the macports-dev mailing list