调试 APT 存储库

调试 APT 存储库

我已经在以下位置设置了 APT 存储库来源锻造并添加了一个sources.list

deb https://sourceforge.net/projects/zotero-deb/files/repo/bionic bionic main

当我尝试运行时sudo apt update出现错误:

Ign:21 https://sourceforge.net/projects/zotero-deb/files/repo/bionic bionic InRelease
Err:24 https://sourceforge.net/projects/zotero-deb/files/repo/bionic bionic Release
  Redirection from https to 'http://downloads.sourceforge.net/mirrorproblem?failedmirror=netix.dl.sourceforge.net' is forbidden [IP: 87.121.121.2 443]
Reading package lists... Done
E: The repository 'https://sourceforge.net/projects/zotero-deb/files/repo/bionic bionic Release' does not have a Release file.

curl -L https://sourceforge.net/projects/zotero-deb/files/repo/bionic/dists/bionic/main/binary-amd64/Release

确实显示了发布文件。如何查看apt尝试访问的内容以便调试此问题?

答案1

这已作为回应得到答复。

此外,curl 遵循重定向。要看到他们尝试-v

例如对我来说:

$ curl -v -L https://sourceforge.net/projects/zotero-deb/files/repo/bionic/dists/bionic/main/binary-amd64/Release |& grep Location
< Location: https://sourceforge.net/projects/zotero-deb/files/repo/bionic/dists/bionic/main/binary-amd64/Release/
< Location: https://sourceforge.net/projects/zotero-deb/files/repo/bionic/dists/bionic/main/binary-amd64/Release/download
< Location: https://downloads.sourceforge.net/project/zotero-deb/repo/bionic/dists/bionic/main/binary-amd64/Release?r=&ts=1539817154&use_mirror=vorboss
< Location: https://vorboss.dl.sourceforge.net/project/zotero-deb/repo/bionic/dists/bionic/main/binary-amd64/Release

相关内容