Aptly 没有创建具有预期内核版本的镜像

Aptly 没有创建具有预期内核版本的镜像

我正在尝试使用 aptly 创建镜像。我希望此镜像包含特定版本的内核和内核头文件。具体来说,我希望它包含 linux-image-6.2.0-35-generic 和 linux-headers-6.2.0-35-generic。

因此我执行以下操作:

export PACKAGE_FILTER="Name (= linux-image-generic)  | Name (= linux-headers-generic)"

aptly -filter-with-deps -with-udebs -dep-follow-recommends -dep-follow-all-variants -filter="$PACKAGE_FILTER" -architectures=amd64 mirror create jammy-1 http://archive.ubuntu.com/ubuntu/ jammy
aptly -filter-with-deps -with-udebs -dep-follow-recommends -dep-follow-all-variants -filter="$PACKAGE_FILTER" -architectures=amd64 mirror create jammy-updates http://archive.ubuntu.com/ubuntu/ jammy-updates
aptly -filter-with-deps -with-udebs -dep-follow-recommends -dep-follow-all-variants -filter="$PACKAGE_FILTER" -architectures=amd64 mirror create jammy-security http://archive.ubuntu.com/ubuntu/ jammy-security

我对所有新创建的镜像进行了恰当的镜像更新。

所以如果我这么做

aptly mirror show -with-packages=true jammy-1
aptly mirror show -with-packages=true jammy-updates
aptly mirror show -with-packages=true jammy-security

我期望 6.2.0-35 版本会出现在列表中的某个位置。然而,事实并非如此,我得到:

5.15.0-25(用于 jammy-1)5.15.0-87(用于 jammy-updates 和安全)

如果我做:

apt-cache search linux-headers

我收到了很多不同的版本,所以我肯定遗漏了什么。问题是什么?

相关内容