Programing

port selfupdate :“macPorts 소스 : 명령 실행 실패”

lottogame 2020. 10. 28. 07:40
반응형

port selfupdate :“macPorts 소스 : 명령 실행 실패”


selfupdateMacports를 사용 하려고하는데 다음 메시지가 나타납니다.

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing 
MacPorts sources: command execution failed

내 확인했는데 /opt/local/bin/macports디렉토리가 존재하지 않습니다. 대신 /opt/local/var. 그게 문제일까요?

로 실행 -dt하면 다음과 같은 결과가 나타납니다.

[Users/user] > selfupdate
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
--->  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

오류 61은 무엇입니까? 어떻게 고칠 수 있습니까?


최근에 이와 동일한 문제가 발생하여 루트에서 명령을 실행하는 것을 잊었습니다. 다른 사람이 문제가있는 경우 다음과 같이 명령을 실행하십시오.

sudo port selfupdate

나는 방화벽 뒤에 있었다. 다른 네트워크에서 시도했지만 작동했습니다.


없습니다 /opt/local/bin/macports. 필요한 실행 파일은 /opt/local/bin/port입니다. (포트 파일은에 /opt/local/var/...있으며 정확합니다.)

기반 command execution failed:

  • 루트로 실행하는 것을 잊었을 수 있습니다.
  • port다음 프로그램을 만들어 낸다 : rsync, tclsh, openssl, tar, chmod, chown. 이들은 실행 가능하고 PATH? ( /opt/local/bin당신 PATH도 있습니까?)

그래도 도움이되지 않으면 포트를 실행 -dt하여 모든 종류의 디버그 정보를 얻으십시오. 문제를 찾는 데 도움이 될 수 있습니다. 질문에 흥미로운 부분을 추가하십시오.


같은 문제에 직면했지만 나중에이 방법을 사용했습니다.

이동 : $prefix/etc/macports/sources.conf (내 경로는 다음과 같습니다) :

/opt/local/etc/macports/sources.conf 

rsync 항목을 주석 처리하고 다음과 같이 새 항목을 추가합니다.

#rsync://rsync.macports.org/release/tarballs/ports.tar [default]
https://distfiles.macports.org/ports.tar.gz [default]

그 후에 다음을 실행할 수 있습니다.

sudo port -d sync

MacPorts.com 에서도 설명합니다 .


Mavericks 업데이트 : XCode 명령 줄 도구가 설치되었는지 확인하려면 터미널을 열고을 실행 xcode-select –-install한 다음 팝업 창에 나타나는 지침을 따릅니다.

  • 라이센스에 동의

물론 이것은 실행 확인과 같은 다른 팁에 추가됩니다 sudo port selfupdate.


다른 사람이이 문제를 겪고 있고 최근에 XCode를 업데이트 한 경우 내 문제의 근원은 명령 줄 도구가 최신 빌드에서 생략되었다는 것입니다.

XCode를 열고 XCode 환경 설정 패널을 통해 명령 줄 도구를 설치하면 MacPorts에서 발생하는이 오류가 수정되었습니다.


회사에서 rsync를 통해 액세스를 차단하는 경우 http tarball을 사용할 수 있습니다. 여기에 설명

도움이 되었기를 바랍니다.

편집 : 이제 homebrew 를 사용하는 것을 선호합니다.


나는 같은 문제에 직면했다. 주된 문제는 내 네트워크였습니다. NETWORK 포트가 차단 되었기 때문에;

rsync : //rsync.macports.org/release/tarballs/ports.tar

다른 네트워크를 사용해보십시오.


나도 같은 오류가 있었다. 네트워크 연결이 거부 되었기 때문입니다. 대학 / 회사 WiFi 또는 공용 연결을 사용하는 경우 방화벽이 연결을 거부합니다.

-dt의 출력에서 ​​볼 수 있듯이 "rsync : failed to connect to rsync.macports.org : Connection rejectd (61)"

macports 사이트에서 제공되는 해결 방법이 있습니다.

1) svn 사용 .

2) svn도 실패하면 Daily tarball을 사용해 볼 수 있습니다 .

"sudo port -d sync"를 실행하여 변경 사항을 테스트 할 수 있습니다.

Note: If the https fails, you can replace it with http. But doing so is not recommended, as you will be fetching from insecure connection.


for someone who's problem still exists, maybe you've forgot agree the Xcode license:

# sudo xcodebuild license

remember to look through and type 'agree' in the end.


In my case, the problem was internal to Macports! I updated rsync (the one delivered by Apple is old) with Macports and then Macports failed to use it (/opt/local/bin/rsync) but asked instead to use /usr/bin/rsync which does not exist (or has been erased to force using Macports rsync ?). I created a soft link between the two and now it works again.

참고URL : https://stackoverflow.com/questions/11446923/port-selfupdate-macports-sources-command-execution-failed

반응형