每次apt-cyg尝试连接到其服务器时,它都无法获得响应并陷入与服务器的连接。由于我通过SSH到达那里,如何在不使用图形界面的情况下更改下载镜像?
回答
该解决方案是使用每天不被打扰的命令选项之后产生的。
$ 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
可能会有所不同)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句