The error in your log is: update-initramfs: Deleting /boot/initrd.img-4.4.0-171-generic /etc/kernel/postrm.d/zz-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 ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub: linha 1094: read: erro de leitura: 0: Descritor de arquivo inválido run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1 dpkg: erro ao processar o pacote linux-image-4.4.0-171-generic (--remove): sub-processo script post-removal instalado retornou estado de saída de erro 1 You have installed the 'grub' package, which is grub1, instead of the grub-pc package, which is grub2, and have not configured it. This is an error. You should remove the grub1 package from your system with 'apt- get remove --purge grub'. ** Changed in: grub (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/1877521 Title: package linux-image-4.4.0-171-generic 4.4.0-171.200 failed to install/upgrade: run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1877521/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs