sudo port selfupdate fails

Ryan Schmidt ryandesign at
Mon Sep 5 18:01:30 PDT 2011

On Sep 5, 2011, at 19:59, Johannes Ruscheinski wrote:

>>> Creating port index in /opt/mports/trunk/dports
>>> Failed to parse file archivers/arj/Portfile: invalid command name
>>> "get_canonical_archflags"
>>> Any idea what might be wrong and how to fix it?
>> This is normal, unfortunately, for users upgrading from MacPorts 1.x now. get_canonical_archs, installs_libs, and others, are new commands only MacPorts 2 understands. We should not have been trying to rebuild the port index when upgrading the MaCPorts version. We've already fixed this for the future, but unfortunately can't do anything about it for users upgrading from 1.x. Despite all these errors, you should now have MacPorts 2 installed, and simply running selfupdate again should rebuild the port index correctly with MacPorts 2.
> I did interrupt this before it was done.  I assume it should be fine
> just doing it again (twice?).  Am I correct?

Yes, I believe that should be fine.

More information about the macports-users mailing list