title: selfupdate macports not working
body: <p>suddently macports is not working though it use too, am getting the below error </p>
  
  <pre><code>Mos-MacBook-Pro:Projects mo$ sudo port -d selfupdate
  Warning: port definitions are more than two weeks old, consider using selfupdate
  ---&gt;  Updating the ports tree
  DEBUG: Synchronizing ports tree(s)
  Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
  DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
  
  @ERROR: chdir failed
  rsync error: error starting client-server protocol (code 5) at /SourceCache/rsync/rsync-42/rsync/main.c(1398) [receiver=2.6.9]
  shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 5
  Error: Synchronization of the local ports tree failed doing rsync
  DEBUG: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
      while executing
  "macports::selfupdate [array get global_options] base_updated"
  Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
  </code></pre>
  
  <p>the macports use to work few months ago, but since i upgraded to lion it stopped. I don't know if it is related to the upgrade or not, today i tried to troubleshoot it but got no where. I thought of reinstalling but i cannot find the dmg for lion on their site (broken link).</p>