This really looks like there is something corrupt in the local package database, which not really reproducible without knowing what happened prior to this error.
This Ask Ubuntu question might help you with the problem if you still have it: http://askubuntu.com/questions/148715/how-to-fix-package-is-in-a-very- bad-inconsistent-state-error ** No longer affects: mediascanner2 (Ubuntu) ** Changed in: unity-scope-mediascanner (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity-scope-mediascanner in Ubuntu. https://bugs.launchpad.net/bugs/1529896 Title: package unity-scope-mediascanner2 0.2+14.04.20140404-0ubuntu1 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration Status in unity-scope-mediascanner package in Ubuntu: Invalid Bug description: Error in the beginning of scanning. No specific signal shown. ProblemType: Package DistroRelease: Ubuntu 14.04 Package: unity-scope-mediascanner2 0.2+14.04.20140404-0ubuntu1 ProcVersionSignature: Ubuntu 3.13.0-68.111-generic 3.13.11-ckt27 Uname: Linux 3.13.0-68-generic x86_64 ApportVersion: 2.14.1-0ubuntu3.19 Architecture: amd64 Date: Mon Nov 30 16:48:56 2015 DuplicateSignature: package:unity-scope-mediascanner2:0.2+14.04.20140404-0ubuntu1:package is in a very bad inconsistent state; you should reinstall it before attempting configuration ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting configuration InstallationDate: Installed on 2014-11-16 (408 days ago) InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2) RelatedPackageVersions: dpkg 1.17.5ubuntu5.5 apt 1.0.1ubuntu2.10 SourcePackage: unity-scope-mediascanner Title: package unity-scope-mediascanner2 0.2+14.04.20140404-0ubuntu1 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity-scope-mediascanner/+bug/1529896/+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