apt-cyg가 다운로드 미러에 연결할 수 없습니다

apt-cyg가 다운로드 미러에 연결할 수 없습니다

apt-cyg가 서버에 연결을 시도할 때마다 응답을 받을 수 없고 연결이 중단됩니다. SSH를 통해 접속했는데 그래픽 인터페이스를 사용하지 않고 다운로드 미러를 어떻게 변경합니까?

답변1

답변

해결책은 매일 방해받지 않는 명령 옵션을 사용한 후에 나옵니다.

$ apt-cyg --help

apt-cyg: Installs and removes Cygwin packages.
  "apt-cyg install <package names>" to install packages
  "apt-cyg remove <package names>" to remove packages
  "apt-cyg update" to update setup.ini
  "apt-cyg show" to show installed packages
  "apt-cyg find <patterns>" to find packages matching patterns
  "apt-cyg search <patterns>" to find packages matching patterns (alias of find)
  "apt-cyg describe <patterns>" to describe packages matching patterns
  "apt-cyg packageof <commands or files>" to locate parent packages
Options:
  --mirror, -m <url> : set mirror
  --cache, -c <dir>  : set cache
  --file, -f <file>  : read package names from file
  --noupdate, -u     : don't update setup.ini from mirror
  --ignore-case, -i  : Ignore case distinctions in <patterns> when finding packages
  --help
  --version

보시다시피 --mirror옵션이 있습니다. 그리고여기Cygwin 미러 목록입니다.

이제 우리는 다음을 할 수 있습니다:

apt-cyg --mirror "mirror site", "미러 사이트"를 선택한 미러 링크로 바꿉니다.

apt-cyg를 어디서 얻느냐에 따라(또는 버전에 따라) --mirror 옵션이 작동할 수도 있습니다.없이앞에 이중 대시가 표시됩니다(표시되는 도움말 정보는 apt-cyg --help다를 수 있음).

관련 정보