エラーを引き起こすカスタム Nexus apt リポジトリの設定

エラーを引き起こすカスタム Nexus apt リポジトリの設定

Sonatype nexusでホストされているaptリポジトリが設定されており、それを自分のローカルDebianコンピュータで設定しようとしています。

/etc/apt/sources.list.d/cust-repository.list文書:

deb [trusted=yes] https://nexusrepourl.org/repository/apt/ bullseye main

apt-getアップデートを実行しようとすると、次のエラーが発生します。

Err:7 https://nexusrepourl.org/repository/apt bullseye/main amd64 Packages
  404  dists/bullseye/main/binary-amd64/Packages.xz [IP: xx.xx.xx.xxx 443]
Ign:8 https://nexusrepourl.org/repository/apt bullseye/main all Packages
Ign:9 https://nexusrepourl.org/repository/apt bullseye/main Translation-en
Reading package lists... Done
E: Failed to fetch https://nexusrepourl.org/repository/apt/dists/bullseye/main/binary-amd64/Packages  404  dists/bullseye/main/binary-amd64/Packages.xz [IP: xx.xx.xx.xxx 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

/var/lib/apt/lists/から公式文書に記載されているすべてのファイルを削除しました。https://help.sonatype.com/en/apt-repositories.html

誰もがこの問題を解決する方法を理解するのに役立ちます。ありがとうございます。

ベストアンサー1

おすすめ記事