APTリポジトリのデバッグ

APTリポジトリのデバッグ

私はAPTリポジトリを次の場所に設定しました。ソースフォージsource.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

これに対する回答が回答されました。

また、カールはリダイレクトに従います。これを確認するには、次の手順を実行します-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

おすすめ記事