“apt-cache show”输出中返回的“+deb10u1”和“+deb10u2”包有什么区别?

Shu*_*eng 0 debian apt package-management

搜索libldap2-devusing apt-cache show,以下包的信息将在输出中返回:2.4.47+dfsg-3+deb10u12.4.47+dfsg-3+deb10u2

当我使用 Debian 10 (buster) 时,+deb10u1和发行版之间有什么区别+deb10u2,为什么两者都作为 输出的一部分返回?apt-cache show

root@docker-desktop:/opt/sds# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Run Code Online (Sandbox Code Playgroud)

apt-cache show:

root@docker-desktop:/opt/sds# apt-cache show 'libldap2-dev'
Package: libldap2-dev
Source: openldap
Version: 2.4.47+dfsg-3+deb10u2
Installed-Size: 1426
Maintainer: Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Architecture: amd64
Replaces: libopenldap-dev
Provides: libldap-dev
Depends: libldap-2.4-2 (= 2.4.47+dfsg-3+deb10u2)
Conflicts: libldap-dev, libopenldap-dev
Description: OpenLDAP development libraries
Description-md5: 2359036e8e1bd2b4b5d49233c1509ecf
Multi-Arch: same
Homepage: http://www.openldap.org/
Tag: devel::lang:c, devel::library, implemented-in::c, protocol::ldap,
 role::devel-lib
Section: libdevel
Priority: optional
Filename: pool/main/o/openldap/libldap2-dev_2.4.47+dfsg-3+deb10u2_amd64.deb
Size: 331412
MD5sum: 779e367a1dd51c51d16ba6884542efe2
SHA256: 89885f64100e37ddcfa60bf757a0403a109cc31e515ceeb8b1c3d4750a17d33f

Package: libldap2-dev
Source: openldap
Version: 2.4.47+dfsg-3+deb10u1
Installed-Size: 1426
Maintainer: Debian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Architecture: amd64
Replaces: libopenldap-dev
Provides: libldap-dev
Depends: libldap-2.4-2 (= 2.4.47+dfsg-3+deb10u1)
Conflicts: libldap-dev, libopenldap-dev
Description: OpenLDAP development libraries
Description-md5: 2359036e8e1bd2b4b5d49233c1509ecf
Multi-Arch: same
Homepage: http://www.openldap.org/
Tag: devel::lang:c, devel::library, implemented-in::c, protocol::ldap,
 role::devel-lib
Section: libdevel
Priority: optional
Filename: pool/main/o/openldap/libldap2-dev_2.4.47+dfsg-3+deb10u1_amd64.deb
Size: 331352
MD5sum: ea1492ecff7835d68e43c6fa2cc27d44
SHA256: 38c6f564d2077b8843ac47420e2ea93c3aac437336f51d52515be036becbedbc
Run Code Online (Sandbox Code Playgroud)

Ste*_*itt 6

+deb10u1是 Debian 10 中软件包的第一次更新(Debian 10 发布后),+deb10u2是第二次。您可以在变更日志中看到两者之间的差异:

\n
\n
openldap (2.4.47+dfsg-3+deb10u2) buster-security; urgency=high\n\n  * Fix slapd to limit depth of nested expressions in search filters\n    (ITS#9202) (CVE-2020-12243)\n
Run Code Online (Sandbox Code Playgroud)\n
\n

您可以在 中看到这两个版本apt show,因为当您上次运行 时,这两个版本在主存储库(在上一个点发布之后)和安全更新中的apt update不同存储库 \xe2\x80\x94 中都可用。默认情况下会更喜欢更高版本。u1u2apt

\n

目前,最新的 Debian 10 系统显示u2在主存储库和u3安全更新中。

\n

apt-cache show具有更新的记录格式,将在字段中显示每个列出版本的来源APT-Sources;您可以通过使用apt show而不是apt-cache show或设置APT::Cache::Show::Version配置设置来获取该信息:

\n
apt-cache -o APT::Cache::Show::Version=2 show libldap2-dev\napt show -a libldap2-dev\n
Run Code Online (Sandbox Code Playgroud)\n

apt show -a此处使用是因为apt show默认仅显示候选版本。)

\n

解压版本号可能有助于+deb10更好地理解该部分:

\n
    \n
  • 2.4.47是上游发行版本(参见OpenLDAP发行信息);
  • \n
  • +dfsg表示上游源存档被重新打包以删除非 DFSG 内容;
  • \n
  • -将上游部分与 Debian 部分分开;
  • \n
  • 3 表示这原本是 2.4.47+dfsg 的 Debian 打包的第三次迭代;
  • \n
  • +deb10引入 Debian 10 的更新;
  • \n
  • u1u2计算更新次数。
  • \n
\n

之前版本的部分-只有在上游源发生变化时才会发生变化。后面的部分-(包括+deb10部分)跟踪更新树中的打包更新。要了解为什么需要 \xe2\x80\x99,请检查详细的软件包新闻:软件包会定期上传到不稳定版本(随着新的上游版本可用,或者需要打包修复),然后根据测试迁移规则迁移到测试。2.4.47+dfsg-3 于 2019 年 2 月 2 日上传,并于 2 月 8 日迁移到测试。随后它包含在 Debian 10 版本中,这意味着 2.4.47+dfsg-3 仍然是基础 OpenLDAP 软件包版本Debian 10 的生命周期内。同时,更新仍在继续:2019 年 7 月 31 日上传了 2.4.48+dfsg-1。8 月份,必须准备对 stable 软件包进行更新,但不是通过 stable 进行更新(因为已经有较新的版本);因此它被准备为稳定更新(实际上是安全更新),并在现有版本上标记相应的版本:2.4.47+dfsg-3+deb10u1。

\n