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

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Theppitak Karoonboonyanan
Date:
2025-10-26 13:05:03 UTC
Severity:
normal
#1119056#5
Date:
2025-10-26 10:03:09 UTC
From:
To:
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).

#1119056#10
Date:
2025-10-26 13:04:11 UTC
From:
To:
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