<div dir="ltr">Hi, <div>   Macports used to work well on Mac 10.8. After a upgrade to mac 10.9, `sudo port upgrade -u outdated` gives errors complaining privilege (but I do have the `sudo` privilege and it worked well before the mac upgrade) . The port sync is done via svn.  The screenshot and main.log are attached below.   Any help/suggestions are appreciated. Thank. </div>
<div>
<p class="">-----------Screen shot ------------------------------------</p><p class="">685b35881646:~ shiyuang$ sudo port upgrade -u outdated</p>
<p class="">Password:</p>
<p class="">---&gt;  Fetching archive for aquaterm</p>
<p class="">---&gt;  Attempting to fetch aquaterm-1.1.1_0.darwin_13.x86_64.tbz2 from <a href="http://mse.uk.packages.macports.org/sites/packages.macports.org/aquaterm">http://mse.uk.packages.macports.org/sites/packages.macports.org/aquaterm</a></p>

<p class="">---&gt;  Attempting to fetch aquaterm-1.1.1_0.darwin_13.x86_64.tbz2.rmd160 from <a href="http://mse.uk.packages.macports.org/sites/packages.macports.org/aquaterm">http://mse.uk.packages.macports.org/sites/packages.macports.org/aquaterm</a></p>

<p class="">---&gt;  Unable to uninstall aquaterm @1.1.1_0, the following ports depend on it:</p>
<p class="">---&gt;  <span class="">        </span>gnuplot @4.6.5_0+aquaterm+luaterm+pangocairo+wxwidgets+x11</p>
<p class="">Warning: Uninstall forced.  Proceeding despite dependencies.</p>
<p class="">---&gt;  Deactivating aquaterm @1.1.1_0</p>
<p class="">---&gt;  Unable to deactivate aquaterm @1.1.1_0, the following ports depend on it:</p>
<p class="">---&gt;  <span class="">        </span>gnuplot @4.6.5_0+aquaterm+luaterm+pangocairo+wxwidgets+x11</p>
<p class="">Warning: Deactivate forced.  Proceeding despite dependencies.</p>
<p class="">---&gt;  Cleaning aquaterm</p>
<p class="">---&gt;  Uninstalling aquaterm @1.1.1_0</p>
<p class="">---&gt;  Cleaning aquaterm</p>
<p class="">---&gt;  Installing aquaterm @1.1.1_0</p>
<p class="">---&gt;  Activating aquaterm @1.1.1_0</p>
<p class="">---&gt;  Cleaning aquaterm</p>
<p class="">---&gt;  Fetching distfiles for gmp</p>
<p class="">---&gt;  Attempting to fetch gmp-6.0.0a.tar.bz2 from <a href="http://sea.us.distfiles.macports.org/macports/distfiles/gmp">http://sea.us.distfiles.macports.org/macports/distfiles/gmp</a></p>
<p class="">---&gt;  Verifying checksums for gmp</p>
<p class="">---&gt;  Extracting gmp</p>
<p class="">Error: org.macports.extract for port gmp returned: command execution failed</p>
<p class="">Please see the log file for port gmp for details:</p>
<p class="">    /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/main.log</p>
<p class="">Error: Unable to upgrade port: 1</p>
<p class="">To report a bug, follow the instructions in the guide:</p>
<p class="">    <a href="http://guide.macports.org/#project.tickets">http://guide.macports.org/#project.tickets</a></p>
<p class="">685b35881646:~ shiyuang$ Emacs /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/main.log</p>
<p class="">685b35881646:~ shiyuang$ Emacs /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/main.log</p></div><div>---------------- Below: main.log-------------------------------</div>
<div><div>version:1</div><div>:debug:clean gmp has no conflicts</div><div>:debug:main Executing org.macports.main (gmp)</div><div>:debug:main changing euid/egid - current euid: 0 - current egid: 0</div><div>:debug:main egid changed to: 501</div>
<div>:debug:main euid changed to: 502</div><div>:debug:archivefetch archivefetch phase started at Mon May 12 11:40:59 PDT 2014</div><div>:debug:archivefetch Executing org.macports.archivefetch (gmp)</div><div>:debug:archivefetch Privilege de-escalation not attempted as not running as root.</div>
<div>:debug:fetch fetch phase started at Mon May 12 11:40:59 PDT 2014</div><div>:notice:fetch ---&gt;  Fetching distfiles for gmp</div><div>:debug:fetch Can&#39;t run fetch on this port without elevated privileges. Escalating privileges back to root.</div>
<div>:debug:fetch euid changed to: 0. egid changed to: 0.</div><div>:debug:fetch changing euid/egid - current euid: 0 - current egid: 0</div><div>:debug:fetch egid changed to: 501</div><div>:debug:fetch euid changed to: 502</div>
<div>:debug:fetch Executing org.macports.fetch (gmp)</div><div>:info:fetch ---&gt;  gmp-6.0.0a.tar.bz2 doesn&#39;t seem to exist in /opt/local/var/macports/distfiles/gmp</div><div>:notice:fetch ---&gt;  Attempting to fetch gmp-6.0.0a.tar.bz2 from <a href="http://sea.us.distfiles.macports.org/macports/distfiles/gmp">http://sea.us.distfiles.macports.org/macports/distfiles/gmp</a></div>
<div>:debug:fetch Privilege de-escalation not attempted as not running as root.</div><div>:debug:checksum checksum phase started at Mon May 12 11:41:08 PDT 2014</div><div>:notice:checksum ---&gt;  Verifying checksums for gmp</div>
<div>:debug:checksum Executing org.macports.checksum (gmp)</div><div>:info:checksum ---&gt;  Checksumming gmp-6.0.0a.tar.bz2</div><div>:debug:checksum Correct (rmd160) checksum for gmp-6.0.0a.tar.bz2</div><div>:debug:checksum Correct (sha256) checksum for gmp-6.0.0a.tar.bz2</div>
<div>:debug:checksum Privilege de-escalation not attempted as not running as root.</div><div>:debug:extract extract phase started at Mon May 12 11:41:08 PDT 2014</div><div>:notice:extract ---&gt;  Extracting gmp</div><div>
:debug:extract setting option extract.cmd to /usr/bin/bzip2</div><div>:debug:extract Executing org.macports.extract (gmp)</div><div>:info:extract ---&gt;  Extracting gmp-6.0.0a.tar.bz2</div><div>:debug:extract setting option extract.args to &#39;/opt/local/var/macports/distfiles/gmp/gmp-6.0.0a.tar.bz2&#39;</div>
<div>:debug:extract Environment: CPATH=&#39;/opt/local/include&#39; CC_PRINT_OPTIONS_FILE=&#39;/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/work/.CC_PRINT_OPTIONS&#39; LIBRARY_PATH=&#39;/opt/local/lib&#39; CC_PRINT_OPTIONS=&#39;YES&#39; MACOSX_DEPLOYMENT_TARGET=&#39;10.9&#39;</div>
<div>:debug:extract Assembled command: &#39;cd &quot;/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/work&quot; &amp;&amp; /usr/bin/bzip2 -dc &#39;/opt/local/var/macports/distfiles/gmp/gmp-6.0.0a.tar.bz2&#39; | /usr/bin/gnutar --no-same-owner -xf -&#39;</div>
<div>:debug:extract Executing command line:  cd &quot;/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/work&quot; &amp;&amp; /usr/bin/bzip2 -dc &#39;/opt/local/var/macports/distfiles/gmp/gmp-6.0.0a.tar.bz2&#39; | /usr/bin/gnutar --no-same-owner -xf - </div>
<div>:info:extract sh: /usr/bin/gnutar: No such file or directory</div><div>:info:extract </div><div>:info:extract bzip2: I/O or other error, bailing out.  Possible reason follows.</div><div>:info:extract bzip2: Broken pipe</div>
<div>:info:extract <span class="" style="white-space:pre">        </span>Input file = /opt/local/var/macports/distfiles/gmp/gmp-6.0.0a.tar.bz2, output file = (stdout)</div><div>:info:extract Command failed:  cd &quot;/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/work&quot; &amp;&amp; /usr/bin/bzip2 -dc &#39;/opt/local/var/macports/distfiles/gmp/gmp-6.0.0a.tar.bz2&#39; | /usr/bin/gnutar --no-same-owner -xf - </div>
<div>:info:extract Exit code: 127</div><div>:error:extract org.macports.extract for port gmp returned: command execution failed</div><div>:debug:extract Error code: NONE</div><div>:debug:extract Backtrace: command execution failed</div>
<div>    while executing</div><div>&quot;$procedure $targetname&quot;</div><div>:info:extract Warning: targets not executed for gmp: org.macports.install org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot</div>
<div>:notice:extract Please see the log file for port gmp for details:</div><div>    /opt/local/var/macports/logs/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_devel_gmp/gmp/main.log</div></div></div>