Noista gdm:n ehdottamista komennoista ei ollut heti apua, sillä ennen niitä täytyi suorittaa seuraavat komennot:
root@localhost:~# DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /usr/sbin/update-grub
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/sbin/update-grub.templates
debconf (developer): Trying /usr/share/debconf/templates/update-grub.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/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 ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz
Found kernel: /boot/vmlinuz.old
Found kernel: /boot/vmlinuz-2.6.28-13-server
Found kernel: /boot/vmlinuz-2.6.28-11-server
Found kernel: /boot/vmlinuz-2.6.27-11-server
Found kernel: /boot/vmlinuz-2.6.26-default
Found kernel: /boot/memtest86+.bin
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub
debconf (developer): --> 10 failed to open /var/lib/dpkg/info/grub.templates: No such file or directory
10
root@localhost:~# apt-get install --reinstall grub
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/404kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ...
42316 files and directories currently installed.)
Preparing to replace grub 0.97-29ubuntu53 (using .../grub_0.97-29ubuntu53_i386.deb) ...
Unpacking replacement grub ...
Setting up grub (0.97-29ubuntu53) ...
root@localhost:~# DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /usr/sbin/update-grub
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/sbin/update-grub.templates
debconf (developer): Trying /usr/share/debconf/templates/update-grub.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/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 ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz
Found kernel: /boot/vmlinuz.old
Found kernel: /boot/vmlinuz-2.6.28-13-server
Found kernel: /boot/vmlinuz-2.6.28-11-server
Found kernel: /boot/vmlinuz-2.6.27-11-server
Found kernel: /boot/vmlinuz-2.6.26-default
Found kernel: /boot/memtest86+.bin
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub
debconf (developer): --> 0
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
debconf (developer): --> 0
Updating /boot/grub/menu.lst ... done
0