[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1071368: [gpgv] cmd-arg parse error with apt/aptitude update



Control: reasign -1 apt 2.9.3
Control: affects -1 gpgv-from-sq

On 2024-05-18 Lyndon Brown <jnqnfe@gmail.com> wrote:
> On Sat, 2024-05-18 at 16:24 +0200, Andreas Metzler wrote:
>> On 2024-05-17 Lyndon Brown <jnqnfe@gmail.com> wrote:
>>> Package: gpgv
>>> Version: 2.2.43-4
>>> Severity: important

>>> Since sometime last night I'm seeing an error as below when using
>>> `apt-
>>> get update` or `aptitude update`. I'm guessing wrt. the earliest
>>> affected version. I've no idea how important an issue this may be,
>>> so
>>> cautiously marking important.
>> [...]
>>> $ sudo aptitude update
>>> Hit https://deb.debian.org/debian sid InRelease
>>> Hit https://deb.debian.org/debian rc-buggy InRelease
>>> W: https://deb.debian.org/debian/dists/sid/InRelease: Unknown
>>> response from gpgv to --assert-pubkey-algo check: gpgv:   error:
>>> Error parsing command-line arguments
>> [...]

>> afaict that happens in apt-key, what does

>> env LC_ALL=C.UTF-8 gpgv --assert-pubkey-algo

>> output on your system?

> $ env LC_ALL=C.UTF-8 gpgv --assert-pubkey-algo
> gpgv:   error: Error parsing command-line arguments
> gpgv: because: Unknown argument "assert-pubkey-algo"

Good morning,

that two-line output is generated by gpgv-from-sq which diverts gpgv. I
think this should fix it:
diff -NurBbp apt-2.9.3/cmdline/apt-key.in newapt-2.9.3/cmdline/apt-key.in
--- apt-2.9.3/cmdline/apt-key.in        2024-05-14 13:01:31.000000000 +0200
+++ newapt-2.9.3/cmdline/apt-key.in     2024-05-19 08:10:25.017202993 +0200
@@ -819,6 +819,9 @@ case "$command" in
                                ;;
                        *[Ii]"nvalid option"*"assert-pubkey-algo"*)
                                ;;
+                       *"Error parsing command-line arguments"*)
+                               # gpgv-from-sq
+                               ;;
                        *)
                                apt_warn "Unknown response from gpgv to --assert-pubkey-algo check: $test"
                                ;;
cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


Reply to: