Errors upon uninstalling MacPorts on El Capitan
<p>I have a mac which I purchased having Mavericks installed and now upgradedEl Capitan. I had installed MacPorts earlier and now I want to uninstall, but I am getting this error.</p>

<pre><code> &gt; sudo port -fp uninstall installed

  Error: Current platform "darwin 15" does not match expected platform "darwin 13"

  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
</code></pre>

<p>The uninstallation instruction on the migration page of macports also leads to the same error. It would be great if anyone can explain the error.</p>