title: port selfupdate: "macPorts sources: command execution failed"
body: <p>I am trying to <code>selfupdate</code> my Macports, but I am getting the following message:</p>
  
  <pre><code>Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing 
  MacPorts sources: command execution failed
  </code></pre>
  
  <p>I checked my <code>/opt/local/bin/macports</code> and the directory does not exist. Instead, it is in <code>/opt/local/var</code>. Could that be the issue?</p>
  
  <p>Running with <code>-dt</code>, I get the following:</p>
  
  <pre><code>[Users/user] &gt; selfupdate
  DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
  ---&gt;  Updating MacPorts base sources using rsync
  rsync: failed to connect to rsync.macports.org: Connection refused (61)
  rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
  Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/base/ /opt/local/var/macports/sources/rsync.macports.org/release/base
  Exit code: 10
  DEBUG: Error synchronizing MacPorts sources: command execution failed
      while executing
  "macports::selfupdate [array get global_options] base_updated"
  Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
  </code></pre>
  
  <p>What is error 61? Any ideas how I can fix that?</p>