Opened 2 years ago

Closed 2 years ago

#66032 closed defect (duplicate)

MacPorts 2.8.0 errors on upgrade

Reported by: lukaso (Lukas Oberhuber) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.8.0
Keywords: Cc: breiter (Brian Reiter)
Port:

Description

$ sudo port -v selfupdate

failed with:

Congratulations, you have successfully upgraded the MacPorts system.

Installing the "mpstats" port will enable submission of anonymous information about your system and installed ports to our database for statistical purposes: <https://ports.macports.org/>

Error: Couldn't change permissions of the MacPorts sources at /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base to root: child killed: kill signal
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: /opt/local/bin/port: port selfupdate failed: Couldn't change permissions of the MacPorts sources at /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base to root: child killed: kill signal

On running it a second time, there was no error (but not sure if the problem was fixed).

Attachments (1)

upgrade.log (698.3 KB) - added by lukaso (Lukas Oberhuber) 2 years ago.
Copy of the log of calling sudo port -v selfupdate

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by lukaso (Lukas Oberhuber)

Attachment: upgrade.log added

Copy of the log of calling sudo port -v selfupdate

comment:1 Changed 2 years ago by breiter (Brian Reiter)

Cc: breiter added

comment:2 Changed 2 years ago by gmpalter (Gary Palter)

I saw the same error on the first selfupdate but the second worked without complaint.

I wonder if this is a problem with the group, not owner, of /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base and .../ports. On my machine after the selfupdate, the group ID is 505 but, on my system, the group ID for macports is 501.

I corrected the group on those directories using "sudo chgrp -R macports".

I then did another selfupdate and the group ID was change to 505.

Finally, I changed the group ID back to macports and tried running the installer instead. After I did, the group ID had been changed back to 505.

For the record, there is no group with ID 505 on my system.

comment:3 Changed 2 years ago by breiter (Brian Reiter)

Same. My macports group has gid 501 and those directories have gid 505 -- which is unbound on my system.

comment:4 Changed 2 years ago by neilt (Neil Tiffin)

I have this problem also. 2nd attempt seems to be working.

macOS 12.6 (21G115)

comment:5 Changed 2 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.