Sorry Sergio, this seems like some total apt breakage on your system and I fail to see how to resolve :-/ I'll add a bug task for apt and subscribe juliank for his expertise.
** Also affects: apt (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apt in Ubuntu. https://bugs.launchpad.net/bugs/1747619 Title: 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 Status in apt package in Ubuntu: New Status in samba package in Ubuntu: Incomplete Bug description: installation of a new package impossible ProblemType: Package DistroRelease: Ubuntu 16.04 Package: samba-common 2:4.3.11+dfsg-0ubuntu0.16.04.12 ProcVersionSignature: Ubuntu 4.4.0-112.135-generic 4.4.98 Uname: Linux 4.4.0-112-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.15 Architecture: amd64 Date: Tue Feb 6 10:22:06 2018 DuplicateSignature: package:samba-common:2:4.3.11+dfsg-0ubuntu0.16.04.12 Setting up grub-pc (2.02~beta2-36ubuntu3.16) ... dpkg: error processing package grub-pc (--configure): subprocess installed post-installation script returned error exit status 10 ErrorMessage: subprocess installed post-installation script returned error exit status 10 InstallationDate: Installed on 2014-04-24 (1383 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417) PackageArchitecture: all RelatedPackageVersions: nautilus 1:3.18.4.is.3.14.3-0ubuntu6 gvfs 1.28.2-1ubuntu1~16.04.2 SambaClientRegression: No SourcePackage: samba Title: 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 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1747619/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp