#769608 apt-cache pkgname overlooks some packages

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Mert Dirik
Date:
2015-05-25 16:51:04 UTC
Severity:
minor
#769608#5
Date:
2014-11-14 23:21:46 UTC
From:
To:
Dear Maintainers,

When bash-completing apt-get, I noticed apt-cache pkgnames miss some package
names
like python3-doc. It does list other package names starting with "python3-doc*"
but
doesn't do for python3-doc, even though it seems like a perfectly regular
package.

$ apt-cache pkgnames python3-doc
python3-docker
python3-docutils
python3-docopt

$ apt-cache --all-names pkgnames python3-doc
python3-docker
python3-docutils
python3-docopt

$ apt-cache showpkg python3-doc
Package: python3-doc
Versions:
3.4.2-1 (/var/lib/apt/lists/http.debian.net_debian_dists_jessie_main_binary-
i386_Packages) (/var/lib/apt/lists/http.debian
..net_debian_dists_unstable_main_binary-i386_Packages)
 Description Language:
                 File: /var/lib/apt/lists/http.debian
..net_debian_dists_jessie_main_binary-i386_Packages
                  MD5: 0007ea460c04e74e454a036590765006
 Description Language: en
                 File: /var/lib/apt/lists/http.debian
..net_debian_dists_jessie_main_i18n_Translation-en
                  MD5: 0007ea460c04e74e454a036590765006


Reverse Depends:
  python3-dialog,python3-doc
  python3,python3-doc 3.4.2-1
  diveintopython3,python3-doc
Dependencies:
3.4.2-1 - python3.4-doc (2 3.4.2-0) python3 (2 3.4.2-1) python3-examples (0
(null))
Provides:
3.4.2-1 -
Reverse Provides:
$ apt-cache policy python3-doc
python3-doc:
  Installed: (none)
  Candidate: 3.4.2-1
  Version table:
     3.4.2-1 0
        500 http://http.debian.net/debian/ jessie/main i386 Packages
          2 http://http.debian.net/debian/ unstable/main i386 Packages

#769608#10
Date:
2014-11-14 23:30:50 UTC
From:
To:
BTW I noticed synaptic also doesn't list the same package. aptitude is
fine though.

#769608#15
Date:
2015-05-25 16:46:58 UTC
From:
To:
This appears to be multi-arch bug.

If system has extra architectures configured, some
"Architecture: all" packages will be missing from
"apt-cache pkgnames" output.

This bug also appears to affect some achitecture-dependent packages
that are missing from the foreign architecture.