Cannot do anything with port - upgrade, uninstall not possible

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot do anything with port - upgrade, uninstall not possible

Christoph Kukulies
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@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
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
kuku@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
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@Christophs-MBP ~ %     

Reply | Threaded
Open this post in threaded view
|

Re: Cannot do anything with port - upgrade, uninstall not possible

Christopher Jones
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.


Chris

On 7 May 2020, at 9:46 am, Christoph Kukulies <[hidden email]> 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@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
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
kuku@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
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@Christophs-MBP ~ %     



smime.p7s (2K) Download Attachment