我安装了 ubuntu 18.04 并且有 dpkg 版本 1.19.0.5(amd64)。
dpkg --version
Debian 'dpkg' package management program version 1.19.0.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
我想将 dpkg 更新或升级到 1.18.26、1.19.8、1.20.10、1.21.8 版本之一。我运行aptitude upgrade dpkg
dpkg is already installed at the latest version (1.19.0.5ubuntu2.4), so it will not be upgraded
The following packages will be REMOVED:
我怎样才能做到这一点?
答案1
与上游版本相比,Ubuntu 具有不同的软件包版本号。
但是 Ubuntu 软件包会获得安全更新。如果您在某处读到某个版本1.19.8
修复了某些安全漏洞,这并不意味着您在 Ubuntu 中需要该版本。您只需要保持系统更新即可。
例如,该1.19.0.5ubuntu2.4
dpkg
版本具有最新的安全修复,与上游相同1.19.8
。
dpkg (1.19.0.5ubuntu2.4) bionic-security; urgency=medium
* SECURITY UPDATE: Directory traversal issue in dpkg-source
- scripts/Dpkg/Source/Archive.pm, scripts/t/Dpkg_Source_Archive.t:
Prevent directory traversal for in-place extracts.
- CVE-2022-1664
-- Marc Deslauriers <[email protected]> Wed, 25 May 2022 07:14:56 -0400
与上游比较:
dpkg (1.19.8) buster-security; urgency=medium
[ Guillem Jover ]
* Perl modules:
- Dpkg::Source::Archive: Prevent directory traversal for in-place extracts.
Reported by Max Justicz <[email protected]>. Fixes CVE-2022-1664.
* Build system:
- Build gitlab CI images for buster instead of sid.
[ Updated man pages translations ]
* German (Helge Kreutzmann).
-- Guillem Jover <[email protected]> Tue, 24 May 2022 13:40:09 +0200
因此您安装的版本不需要更新。