You seem to have an extra file 10_linux.save; which may be interfering with the installation of the package. Please remove this file or fix the syntax error noted:
/etc/grub.d/10_linux.save: 280: /etc/grub.d/10_linux.save: Syntax error: end of file unexpected (expecting "fi") dpkg: error al procesar grub-pc (--configure): Since this is not a bug in the grub package; I will close this report as Invalid. Please feel free to reopen it by setting it back to "New" if you have additional data to report. ** Changed in: grub2 (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1340605 Title: package grub-pc 1.99-21ubuntu3.15 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1340605/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs