Cannot do anything with port - upgrade, uninstall not possible

Christopher Jones jonesc at hep.phy.cam.ac.uk
Thu May 7 08:58:30 UTC 2020


Hi,

Thats because you starting following the instructions *after* upgrading, not before.

You need to reinstall macports over the top of your current installation, to update to the binary to that for your current system, then try again.

https://www.macports.org/install.php <https://www.macports.org/install.php>

Chris

> On 7 May 2020, at 9:46 am, Christoph Kukulies <kuku at kukulies.org> wrote:
> 
> Following the instructions of migrating macports is a dead end to me right now.
> 
> all attempts to uninstall or do anything woth the port command ends with that:
> 
> kuku at Christophs-MBP ~ % port -qv installed >myports.txt
> Error: Current platform "darwin 19" does not match expected platform "darwin 18"
> Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration <https://trac.macports.org/wiki/Migration>
> Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
> kuku at Christophs-MBP ~ % sudo port -fp uninstall installed
> Password:
> Error: Current platform "darwin 19" does not match expected platform "darwin 18"
> Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration <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
> kuku at Christophs-MBP ~ %     
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200507/3a1286d0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20200507/3a1286d0/attachment.bin>


More information about the macports-users mailing list