Bug#1108440: apt: "apt-get clean" breaks "dpkg -l" bash-completion

[email protected]
Newsgroups gmane.linux.debian.apt.devel
Message-ID <840160690.270551.1751133249955__40858.7340776407$1751133930$gmane$org@office.mailbox.org>
Package: apt
Version: 3.0.2
Severity: normal

Dear Maintainer,

since upgrading from Bookworm to Trixie, "apt-get clean" also removes the cache
files in /var/cache/apt/. This breaks bash-completion for "dpkg -l" because
it reads /var/cache/apt/pkgcache.bin.

Steps to reproduce the error:

1. apt-get clean
2. dpkg -l base<TAB>  # prints nothing

Steps to reproduce normal behaviour:
1. apt-cache gencaches
2. dpkg -l base<TAB>  # prints "base-files" etc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.