Public bug reported:
when running sudo apt-get upgrade and therefore get an upgrade for the kernel,
it seems like update-grub seems to get corrupted and outputs this error every
time i run 'sudo update-grub':
[EMAIL PROTECTED]:~$ sudo update-grub
[: 25: ==: unexpected operator
exec: 25: -a: not found
and this when running 'sudo apt-get upgrade':
[EMAIL PROTECTED]:~$ sudo apt-get upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Necesito descargar 0B de archivos.
Se utilizarán 0B de espacio de disco adicional después de desempaquetar.
¿Desea continuar [S/n]? S
Configurando linux-image-2.6.22-14-generic (2.6.22-14.47) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.22-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.22-14.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.22-14.46 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
[: 25: ==: unexpected operator
exec: 25: -a: not found
User postinst hook script [/sbin/update-grub] exited with value 2
dpkg: error al procesar linux-image-2.6.22-14-generic (--configure):
el subproceso post-installation script devolvió el código de salida de error 2
Se encontraron errores al procesar:
linux-image-2.6.22-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
i even get an kernel panic because the new initrd.img generated was corrupted.
I fixed it
by replacing it with a previous one.
My uname -a output is the following:
[EMAIL PROTECTED]:~$ uname -a
Linux stolz 2.6.22-14-generic #1 SMP Tue Dec 18 05:28:27 UTC 2007 x86_64
GNU/Linux
and my computer has got 1 GB of RAM memory and the processor (via /proc/cpu) is
the following:
AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Thanks.
** Affects: grub (Ubuntu)
Importance: Undecided
Status: New
--
update-grub doesn't work after linux-image-2.6.22-14-generic upgrade
https://bugs.launchpad.net/bugs/179294
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs