Closed machsix closed 1 year ago
After some debugging, I found the error is the following
Request 1:GET /arch4edu/x86_64/visual-studio-code-bin-1.72.2-1-x86_64.pkg.tar.zst HTTP/1.1
Host: mirrors.tuna.tsinghua.edu.cn
User-Agent: Go-http-client/1.1
Accept-Encoding: identity
unable to download url http://mirrors.tuna.tsinghua.edu.cn/arch4edu/x86_64/visual-studio-code-bin-1.72.2-1-x86_64.pkg.tar.zst, status code is 403
If I run a curl with the same header, I got this.
The sever thinks "Go-client" as a mobile device and triggers a 403 error
I create a PR https://github.com/anatol/pacoloco/pull/53
pacolo.yml
/etc/pacman.conf
Issue:
When I run
sudo pacman -Sw visual-studio-code-bin
, I got the errorerror: failed retrieving file 'visual-studio-code-bin-1.72.2-1-x86_64.pkg.tar.zst' from 10.1.0.2:9129 : The requested URL returned error: 404
. If I runcurl http://10.1.0.2:9129/repo/arch4edu/x86_64
, I can get a correct list of packages. The journal shows