You have installed the 'grub' package, which is grub version 1 and deprecated; and you have not configured it; which causes the kernel installation to fail.
You should remove the grub package with 'sudo apt-get remove --purge grub'.
You have installed the 'grub' package, which is grub version 1 and deprecated; and you have not configured it; which causes the kernel installation to fail.
You should remove the grub package with 'sudo apt-get remove --purge grub'.