自定义 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

任何人请帮助我了解如何解决这个问题。谢谢。

相关内容