selfupdate for Macports, install packages via macports -


` macports selfupdate failing on mac os 10.9.5 installed xcode(6.2) , commandline tools.i have tried 2 versions of macports, 2.3.0 , 2.3.3. $ port -v macports 2.3.0

1. error rsync fails connect sources on macports.org. have firewall turned off on mac machine though. looking https://rsync.macports.org/release/tarballs/base.tar  on browser, path not exist. may sources not available rsync sync them local system. please advise on how perform port selfupdate.  $ sudo /usr/bin/port -v selfupdate --->  updating macports base sources using rsync rsync: failed connect rsync.macports.org: connection refused (61) rsync error: error in socket io (code 10) @ /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/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs exit code: 10 error: error synchronizing macports sources: command execution failed report bug, follow instructions in guide: http://guide.macports.org/#project.tickets error: /usr/bin/port: port selfupdate failed: error synchronizing macports sources: command execution failed  2. packages not found using port command $ sudo port -v install samba3 error: port samba3 not found  in advance.` 

rsync isn't http, opening url using http not give same result, because http server @ rsync.macports.org not serve file requested.

your question faq @ http://trac.macports.org/wiki/faq#selfupdatefails:

what do if port selfupdate doesn't work or rsync server refuses connections?

first try sudo port -d selfupdate errors display. if connection rsync server fails may blocked firewall or other network control software.

some firewalls, such peerguardian, block connections corporate ip addresses way prevent software "phoning home" , violating privacy. our main rsync server hosted apple inc. self updating requires rsync connection download files, blocked. in order work around this, need temporarily disable or white-list rsync.macports.org. alternative use another mirror not hosted apple.

the black list entry of apple inc's subnet, 17.0.0.0/8. disable or create white-list exception rsync.macports.org. peerguardian filter network connections if not actively running application. possible disable peerguardian before running selfupdate command typing following command in terminal, make sure stop processes associated peerguardian before doing this.

sudo kextunload -b xxx.qnation.peerguardian

if run littlesnitch, create rule rsync (/usr/bin/rsync) allows connections server hostname rsync.macports.org, port 873 (rsync), protocol 6 (tcp). make sure rule enabled.

if getting through firewall not possibility, there other methods can use bit more manual:


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -