macports no indexes found, sync your source indexes

If you’re a Mac Poweruser and not already familiar with macports, this is great package I would highly recommend, especially if you’re a bit of a *nix terminal junkie.

Download and installation is a breeze. Click on the link for the dmg relative to your distro and it’s smooth sailing.

Once it’s installed however, you may run into a bit of a problem if you’re behind a corporate firewall.

sudo port -v selfupdate
[MacPorts] #21034: Warning: No index(es) found! Have you synced your source indexes?

This message is followed by what may seem to be gibberish, but is actually informative logging telling you that rsync is being blocked.

I found numerous blogs and articles with no resolution to this issue, including one of the references below. Never fear! The solution is simple, and even outlined in the macports site.

First, make sure you are a sudo or root user, or you won’t have access to change the files necessary. (I outlined this in this article on my site).

After install make sure you close and reopen any terminal windows you have running.

1) Navigate to /opt/local/etc/macports.
2) sudo vi sources.conf
3) arrow down to the bottom line, bottom left corner, press “i” for insert then “#” key on your keyboard.
4) arrow to the end of the link and press return key on the keyboard
5) enter alternative url for macports tarball (without the quotes) “ [default]”
6) hit esc key on keyboard, then shift+: (colon) and finally “wq” which should exit you from vi and save changes

Voila! That’s it. You should now be able to update successfully. Note down any other errors you may encounter and happy porting. 8)

macports install,
macports alternative tarball sync,
macports configuration files guide,
macports general howto,
Old Nabble Post with some similar user issues,—21034%3A-Warning%3A-No-index(es)-found!-Have-you-synced-your-source-indexes–td25264855.html


About Ronnie Diaz

Ronnie Diaz is a software engineer and tech consultant. Ronnie started his career in front-end and back-end development for companies in ecommerce, service industries and remote education. This work transitioned from traditional desktop client-server applications through early cloud development. Software included human resource management and service technician workflows, online retail e-commerce and electronic ordering and fulfillment, IVR customer relational systems, and video streaming remote learning SCORM web applications. Hands on server experience and software performance optimization led to creation of a startup business focused on collocated data center services and continued experience with video streaming hardware and software. This led to a career in Amazon Prime Video where Ronnie is currently employed, building software and systems which stream live sports and events for millions of viewers around the world.

Posted on April 14, 2011, in Programming & Development and tagged , , , , , , . Bookmark the permalink. 2 Comments.

  1. Thank u!! it worked! i had been looking for this for hours!

  2. For me it (apparently) meant that I needed to run “port sync” after doing an install from source… (not an rsync problem, just a user problem LOL)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: