Bug#90938: apt: Missing characters at end of long package names are sometimes partially recognised
Package: apt
Version: 0.5.3
Severity: normal
If I try and install alsa-modules-2.2.17 (which I already have installed),
but miss off the last character (the "7") then it doesn't print either the
message "Couldn't find package" or "Sorry, alsa-modules-2.2.17 already
isntalled". It should do the former.
/home/francis# apt-get install alsa-modules-2.2.17
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, alsa-modules-2.2.17 is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 578 not upgraded.
/home/francis# apt-get install alsa-modules-2.2.1
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 578 not upgraded.
/home/francis#
This happens also for each character removed down to alsa-modules-2 which
gives the correct error message.
Things get even more baffling if you strip off another character -
notice the completely strange error message. I've definitely said
"apt-get install", but it is trying to remove something:
/home/francis# apt-get install alsa-modules-
Reading Package Lists... Done
Building Dependency Tree... Done
Package alsa-modules is not installed, so not removed
0 packages upgraded, 0 newly installed, 0 to remove and 578 not upgraded.
/home/francis#
More truncated characters work fine.
Anyway, although this stuff isn't really bad, it might indicate a more
fundamental bug.
Francis
-- System Information
Debian Release: woody
Kernel Version: Linux francis 2.2.17 #1 Sat Sep 9 12:42:22 EST 2000 i686 unknown
Versions of the packages apt depends on:
ii libc6 2.2.2-1 GNU C Library: Shared libraries and Timezone
ii libstdc++2.10- 2.95.3-6 The GNU stdc++ library
Reply to: