This usually means you need to update your MacPorts install. Try downloading a 
new installer for your OS and seeing if that helps. 

> On Nov 3, 2024, at 19:38, list_email--- via macports-users 
> <[email protected]> wrote:
> 
> I have an M1 on which I recently upgraed the os from 12 Monterey to 14 
> Sonoma. I don’t have Xcode installed but I do have the latest (Sonoma) 
> version of Command Line Tools; I think it’s 16.1.
> 
> I need to upgrade macports.
> 
> I have followed the instructions at https://trac.macports.org/wiki/Migration.
> 
> When I type either
> 
> sudo port migrate
> or
> sudo port selfupdate
> 
> I get
> 
> Error: Current platform "darwin 23" does not match expected platform "darwin 
> 21"
> Error: If you upgraded your OS, please follow the migration instructions: 
> https://trac.macports.org/wiki/Migration
> OS platform mismatch
>    while executing
> "mportinit ui_options global_options global_variations"
> Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform 
> mismatch
> 
> which instructs me to follow instructions at 
> https://trac.macports.org/wiki/Migration.
> 
> How do I break out of this loop?
> 
> Jerry

Reply via email to