apt 镜像未提供特定的软件包版本

apt 镜像未提供特定的软件包版本

我有一个私人镜像设置,主要用于保存旧版本的软件包。最近我遇到了一个问题,我想要安装的软件包的特定版本无法通过 apt 获得,即使它存在于我的存储库中。例如:

[client-vm01]# apt-cache policy base-files
base-files:
  Installed: 12ubuntu4.4
  Candidate: 12ubuntu4.6
  Version table:
     12ubuntu4.6 500
        500 http://repo.private/ubuntu jammy-updates/main amd64 Packages
 *** 12ubuntu4.4 100
        100 /var/lib/dpkg/status
     12ubuntu4 500
        500 http://repo.private/ubuntu jammy/main amd64 Packages
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package base-files is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  motd-news-config

E: Version '12ubuntu4.5' for 'base-files' was not found 

base-files-12ubuntu4.5 存在于私人存储库中,我可以通过 curl 下载它,但 apt 看不到此版本。

[repo-server] # find . -name "base-files*"
./pool/main/b/base-files/base-files_12ubuntu4.6_amd64.deb
./pool/main/b/base-files/base-files_12ubuntu4.4_amd64.deb
./pool/main/b/base-files/base-files_12ubuntu4_amd64.deb
./pool/main/b/base-files/base-files_12ubuntu4.5_amd64.deb

这是由于缺少 repo 元数据还是其他原因?我该如何修复?

相关内容