Bug#1119056: apt: "apt --cli-version update" gets assertion failure

Julian Andres Klode <[email protected]> Sun, 26 Oct 2025 14:04:11 +0100
Newsgroups gmane.linux.debian.apt.devel
Message-ID <DFCC1347-AC69-47D0-B1E4-00AFC92B307C__10097.2759931878$1761483933$gmane$org@debian.org>
On 26 October 2025 11:03:09 CET, Theppitak Karoonboonyanan <[email protected]> wrote:
>Package: apt
>Version: 3.1.10
>Severity: normal
>
>Dear Maintainer,
>
>I saw the "--cli-version" option in NEWS.Debian.gz. So I tried it:
>
># apt --cli-version update
>/usr/include/c++/15/optional:1186: constexpr _Tp&
>std::optional<_Tp>::operator*() & [with _Tp = long unsigned int]:
>Assertion 'this->_M_is_engaged()' failed.
>Aborted                    apt --cli-version update
>
>I'm not sure if I invoked it correctly, as there was no explanation in apt(8).

Well you gave --cli-version the argument update which is not a valid version pattern.

Sadly apt(8) doesn't seem to render the common options shared by all programs

-- 
sent from my phone, excuse the brevity, if any