Bug#453334: general: apt and aptitude stop work
apt-get or aptitude stop work when i uninstall a linux image and /boot/grub/menu.lst was deleted.
Installer should create automatically a new menu.lst file, but when it's time to do it, process stop.
watch the console output:
#### BEGIN ####
rafael@rafadeb:~$ sudo aptitude purge linux-image-2.6.18-5-686
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages will be automatically REMOVED:
The following packages will be REMOVED:
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 48.0MB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 141661 files and directories currently installed.)
Removing linux-image-2.6.18-5-686 ...
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
#### END ####
Just after i answer 'y' (yes) nothing more happens, i have to kill the process.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash