Bug#464846: problem with apt and bash completition
On Sat, Feb 09, 2008 at 12:51:08PM +0200, Michalis Georgiou <firstname.lastname@example.org> was heard to say:
> I use a local repository, /root/debs/, only for my custom made kernels(made with make-kpkg). after purging a kernel, named foo for this example, i remove it from /root/debs, then
> i run "dpkg-scanpackages . /dev/null | gzip > Packages.gz" and then an apt-get update. After that, package foo is not anymore a package in apt.
> Then i'm typing apt-get install linux-image and press TAB, and the list
> of bash completition gives me a list containing package foo. as i
> searched bash completition of apt, works with command "apt-cache
> so when i try directly "apt-cache search pkgnames |grep linux-image", foo is once again included in the list. foo is included even when i add "--installed" in the previous command.
What does "apt-cache policy foo" show?