I think that means it couldn't find the exact same package to reinstall.
I'm sorry but the dpkg -l command I gave you truncated its output, so I
don't know the full version of your grub-pc package. It only showed up
Please do this instead:
apt-cache policy grub-pc
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
package samba-common 2:4.3.11+dfsg-0ubuntu0.16.04.12 failed to
install/upgrade: subprocess installed post-installation script
returned error exit status 10
To manage notifications about this bug go to:
ubuntu-bugs mailing list