• Bug#1065429: dpkg -s: spurious error "dpkg-query: error: --status needs

    From Vincent Lefevre@1:229/2 to Vincent Lefevre on Mon Mar 4 14:00:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    On 2024-03-04 13:47:00 +0100, Vincent Lefevre wrote:
    I get the following error:

    cventin:~> dpkg -s libc6-dev
    dpkg-query: error: --status needs a valid package name but 'libc6-dev' is not: ambiguous package name 'libc6-dev' with more than one installed instance

    Wrong copy-paste (to match what is given below), but this is the
    same error:

    cventin:~> dpkg -s libnsl-dev
    dpkg-query: error: --status needs a valid package name but 'libnsl-dev' is not: ambiguous package name 'libnsl-dev' with more than one installed instance

    while this is a valid package name: with an "apt" command, I get:

    The following packages were automatically installed and are no longer required:
    libnsl-dev libnsl-dev:i386 libnsl2:i386 libtirpc-dev libtirpc-dev:i386
    ^^^^^^^^^^
    libtirpc3:i386
    [...]

    The package name is listed above.

    --
    Vincent Lef�vre <[email protected]> - Web: <https://www.vinc17.net/>
    100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
    Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Vincent Lefevre@1:229/2 to All on Mon Mar 4 14:00:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    Package: dpkg
    Version: 1.22.5
    Severity: important

    I get the following error:

    cventin:~> dpkg -s libc6-dev
    dpkg-query: error: --status needs a valid package name but 'libc6-dev' is not: ambiguous package name 'libc6-dev' with more than one installed instance

    while this is a valid package name: with an "apt" command, I get:

    The following packages were automatically installed and are no longer required:
    libnsl-dev libnsl-dev:i386 libnsl2:i386 libtirpc-dev libtirpc-dev:i386
    ^^^^^^^^^^
    libtirpc3:i386
    [...]

    The package name is listed above.

    "apt-cache show libc6-dev" also lists this package.

    -- Package-specific info:

    -- System Information:
    Debian Release: trixie/sid
    APT prefers unstable-debug
    APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.6.15-amd64 (SMP w/12 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages dpkg depends on:
    ii libbz2-1.0 1.0.8-5+b2
    ii libc6 2.37-15
    ii liblzma5 5.6.0-0.2
    ii libmd0 1.1.0-2
    ii libselinux1 3.5-2
    ii libzstd1 1.5.5+dfsg2-2
    ii tar 1.35+dfsg-3
    ii zlib1g 1:1.3.dfsg-3+b1

    dpkg recommends no packages.

    Versions of packages dpkg suggests:
    ii apt 2.7.12
    pn debsig-verify <none>

    -- no debconf information

    --
    Vincent Lef�vre <[email protected]> - Web: <https://www.vinc17.net/>
    100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
    Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Vincent Lefevre@1:229/2 to Guillem Jover on Thu Mar 7 04:30:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    On 2024-03-07 03:34:08 +0100, Guillem Jover wrote:
    "apt-cache show libc6-dev" also lists this package.

    apt behaves differently, this has been also a known discrepancy, but
    then they operate in general differently when it comes to their CLI
    arguments anyway.

    The difference is bad for the user, making simple copy-paste
    impossible, and usage more difficult: the user doesn't know
    in advance whether the package name given by apt needs to be
    completed for dpkg (systematically adding the main architecture
    does not work for "Architecture: all" packages).

    --
    Vincent Lef�vre <[email protected]> - Web: <https://www.vinc17.net/>
    100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
    Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Guillem Jover@1:229/2 to Vincent Lefevre on Wed Mar 20 03:10:01 2024
    XPost: linux.debian.bugs.dist
    From: [email protected]

    Hi!

    On Thu, 2024-03-07 at 04:25:03 +0100, Vincent Lefevre wrote:
    On 2024-03-07 03:34:08 +0100, Guillem Jover wrote:
    "apt-cache show libc6-dev" also lists this package.

    apt behaves differently, this has been also a known discrepancy, but
    then they operate in general differently when it comes to their CLI arguments anyway.

    The difference is bad for the user, making simple copy-paste
    impossible, and usage more difficult: the user doesn't know
    in advance whether the package name given by apt needs to be
    completed for dpkg (systematically adding the main architecture
    does not work for "Architecture: all" packages).

    That's why dpkg is and has always been internally consistent, and
    always arch-qualifies Multi-Arch:any packages (and more recently also
    foreign arch:any packages), so that its output can always be used as
    its input, even during a cross-upgrade of dpkg itself. As mentioned
    above, it's unfortunate that apt implemented a different interface.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)