
我在 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
任何人請幫助我了解如何解決這個問題。謝謝。