Try to reinstall the package as was suggested, and let us know if it helped.
sudo apt install --reinstall im-config ** Changed in: im-config (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to im-config in Ubuntu. https://bugs.launchpad.net/bugs/1664122 Title: package im-config 0.29-1ubuntu12.4 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting configuration Status in im-config package in Ubuntu: Incomplete Bug description: cursor stops working ...sometimes keyboard too... ProblemType: Package DistroRelease: Ubuntu 16.04 Package: im-config 0.29-1ubuntu12.4 ProcVersionSignature: Ubuntu 4.4.0-62.83-generic 4.4.40 Uname: Linux 4.4.0-62-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.5 AptOrdering: linux-firmware: Install im-config: Configure linux-firmware: Configure NULL: ConfigurePending Architecture: amd64 Date: Fri Feb 10 21:19:05 2017 DuplicateSignature: package:im-config:0.29-1ubuntu12.4 Unpacking linux-firmware (1.157.8) over (1.157.4) ... dpkg: error processing package im-config (--configure): package is in a very bad inconsistent state; you should ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting configuration InstallationDate: Installed on 2017-02-08 (4 days ago) InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Release amd64 (20160421) PackageArchitecture: all RelatedPackageVersions: dpkg 1.18.4ubuntu1.1 apt 1.2.19 SourcePackage: im-config Title: package im-config 0.29-1ubuntu12.4 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/im-config/+bug/1664122/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp