我刚刚尝试更新我的 texlive 安装但出现以下错误:
sudo tlmgr update --self
TLDownload::get_file: response error: 500 Can't connect to funnyshare.org:80 (Bad hostname) (for http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5)
TLUtils::download_file: persistent connection ok, but download failed: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
TLUtils::download_file: retrying with wget.
TLUtils::download_file: retry with wget succeeded: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
Unable to download the remote TeX Live database,
but found a local copy so using that.
You may want to try specifying an explicit or different CTAN mirror;
see the information and examples for the -repository option at
http://tug.org/texlive/doc/install-tl.html
(or in the output of install-tl --help).
tlmgr: package repository http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet
tlmgr: saving backups to /usr/local/texlive/2013/tlpkg/backups
tlmgr: no updates for tlmgr present.
tlmgr: no updates available
sudo tlmgr update --all
TLDownload::get_file: response error: 500 Can't connect to funnyshare.org:80 (Bad hostname) (for http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5)
TLUtils::download_file: persistent connection ok, but download failed: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
TLUtils::download_file: retrying with wget.
TLUtils::download_file: retry with wget succeeded: http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.md5
Unable to download the remote TeX Live database,
but found a local copy so using that.
You may want to try specifying an explicit or different CTAN mirror;
see the information and examples for the -repository option at
http://tug.org/texlive/doc/install-tl.html
(or in the output of install-tl --help).
tlmgr: package repository http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet
tlmgr: saving backups to /usr/local/texlive/2013/tlpkg/backups
tlmgr: no updates available
知道我哪里错了以及如何修复它吗?我在 ubuntu 13.10 上运行它。
tlmgr --version
tlmgr revision 31673 (2013-09-16 18:03:22 +0200)
tlmgr using installation: /usr/local/texlive/2013
TeX Live (http://tug.org/texlive) version 2013
答案1
这Bad Hostname
错误是由于活动镜像不可用而引起的,在本例中是http://funnyshare.org/mirrors/ctan/systems/texlive/tlnet
日志中也暗示了这一点:
您可能想要尝试指定一个明确的或不同的 CTAN 镜像;
在这种情况下,可以选择不同的镜像:
sudo tlmgr option repository <insert another mirror name here>
如果默认镜像设置为http://mirror.ctan.org/systems/texlive/tlnet(也可以通过特殊参数调用ctan
)tlmgr
将在每次运行时从活动镜像列表中选择不同的镜像。
正如 @texenthusiast 所指出的,最新镜像列表可以在以下位置找到:ctan.org/镜像和ctan.org/镜像/mirmon