Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1189035 > unrolled thread
| Started by | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| First post | 2024-03-04 14:00 +0100 |
| Last post | 2024-03-07 04:30 +0100 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.debian.bugs.dist
Bug#1065429: dpkg -s: spurious error "dpkg-query: error: --status needs a valid package name" Vincent Lefevre <vincent@vinc17.net> - 2024-03-04 14:00 +0100
Bug#1065429: dpkg -s: spurious error "dpkg-query: error: --status needs a valid package name" Vincent Lefevre <vincent@vinc17.net> - 2024-03-04 14:00 +0100
Bug#1065429: dpkg -s: spurious error "dpkg-query: error: --status needs a valid package name" Vincent Lefevre <vincent@vinc17.net> - 2024-03-07 04:30 +0100
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2024-03-04 14:00 +0100 |
| Subject | Bug#1065429: dpkg -s: spurious error "dpkg-query: error: --status needs a valid package name" |
| Message-ID | <Ieg5b-emq0-1@gated-at.bofh.it> |
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 <vincent@vinc17.net> - 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)
[toc] | [next] | [standalone]
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2024-03-04 14:00 +0100 |
| Message-ID | <Ieg5b-emq0-9@gated-at.bofh.it> |
| In reply to | #1189035 |
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 <vincent@vinc17.net> - 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)
[toc] | [prev] | [next] | [standalone]
| From | Vincent Lefevre <vincent@vinc17.net> |
|---|---|
| Date | 2024-03-07 04:30 +0100 |
| Message-ID | <IfcCd-eWkb-1@gated-at.bofh.it> |
| In reply to | #1189035 |
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 <vincent@vinc17.net> - 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)
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web