Comment 0 for bug 164513

Revision history for this message
nickb834 (nicholas-bartle) wrote :

Binary package hint: memtest86+

When performing a distro upgrade from Feisty to Gutsy, update manager complained about these packages:

linux-image-2.6.22-14-generic
linux-ubuntu-modules-2.6.22-14-generic
linux-restricted-modules-2.6.22-14-generic
nvidia-glx
ubuntu-standard
linux-image-generic
update-manager
linux-restricted-modules-generic
linux-generic
memtest86+

Specifically the problem manifested itself whenever a packages post install called "update-grub".

Running "update-grub" manually produced the same error:

nick@:~$ sudo 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 ...
expr: non-numeric argument

notice the last line "expr: non-numeric argument", this was down to my default booted entry being set to "saved" instead of a decimal number:

default saved
#default 2

If I uncomment the 2nd default line, all is well and package installation and post install actions succeed.

"saved" is a valid option for default as I have used it succesfully for years by adding "savedefault" at the end of my boot options.

I can reproduce this bug at will by changing defaults value to "saved" from 1 / 2 / 3 / whatever.