tlrc: Cannot update cache

  1. Install winget install tldr-pages.tlrc
  2. tldr --update Get error :
info: downloading 'tldr.sha256sums'... FAILED
error: https://github.com/tldr-pages/tldr/releases/latest/download/tldr.sha256sums: Connection Failed: tls connection init failed: 远程主机强迫关闭了一个现有的连接。 (os error 10054)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I installed tlrc using cargo install tlrc, but encountered an error when trying to update the cache with tldr -u:

tldr -u
info: downloading 'tldr.sha256sums'... FAILED
error: io: Peer disconnected

I’ve configured a proxy for accessing GitHub and confirmed it’s set correctly:

$ env | grep proxy
http_proxy=http://127.0.0.1:7890
https_proxy=http://127.0.0.1:7890
ftp_proxy=http:/127.0.0.1:7890
no_proxy=localhost,127.0.0.1

When I manually test the URL using curl, it works fine:

curl -L https://github.com/tldr-pages/tldr/releases/latest/download/tldr.sha256sums

So the proxy appears to be working. Is there a way to make tlrc respect the system proxy settings, or is there a recommended workaround to successfully update the cache?

I’ve encountered the same issue in MacOS as well, the tldr was installed by brew install --HEAD tlrc

@marslo could you try upgrading with brew upgrade --fetch-HEAD tlrc? 6e8ee38b4e52698fb75e8c7bc28aac4dfaacaa4c should hopefully fix this.