Package: debian-installer Severity: normal Tags: d-i Steps to reproduce: - Install debian using recently published debian-bookworm-DI- rc1-amd64-netinst.iso - At first boot as a very first thing to do type "apt-get install a<Tab>" (as root, in normal root login shell) - You will see that bash-completion doesn't work - If you type "apt-get install apt<Enter>", and try "apt-get install a<Tab>" again, you will see that bash-completion works
This situation is very bad. Imagine you installed Debian. Of course, the first thing you may try to do is install some package to it. So it is quite possible you will type "apt-get install ..." as a first thing. And you will see that bash-completion doesn't work! (Don't confuse "apt-get install a<Tab>" with "apt-get insta<Tab>") I think I know why this happens. d-i has file /usr/lib/finish- install.d/60cleanup. This file calls "apt-get clean". "apt-get clean" removes "/var/cache/apt/*.bin". And "/var/cache/apt/*.bin" are needed for bash- completion to work with apt. If I remove /usr/lib/finish-install.d/60cleanup, then this bug disappears. So, if you want to quickly fix this bug, simply delete /usr/lib/finish- install.d/60cleanup. I don't know what should really be done. I can list possible solutions: - Fix d-i. Remove /usr/lib/finish-install.d/60cleanup or replace it with something else - Fix "apt-get clean". Make it not remove /var/cache/apt/*.bin - Fix "bash-completion". Make it work even if /var/cache/apt/*.bin are not present (for example, by recreating them on-the-fly) (Disregard "System information" below) -- System Information: Debian Release: 9.13 APT prefers oldoldstable APT policy: (500, 'oldoldstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-0.deb9.21-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled