root@posankka:~# apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: dc evince-common hplip-data libart-2.0-2 libcupsfilters1 libfontembed1 libgs9-common libgutenprint2 libgxps2 libhpmud0 libijs-0.35 libjbig2dec0 libkpathsea6 liblouisutdml-bin liblouisutdml-data liblouisutdml6 libpoppler-glib8 libqpdf17 libsane-hpaio libsensors4 libsnmp-base libsnmp30 libwebpmux1 linux-headers-4.4.0-59 linux-headers-4.4.0-59-generic linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic linux-image-4.4.0-59-generic linux-image-4.4.0-62-generic linux-image-extra-4.4.0-59-generic linux-image-extra-4.4.0-62-generic linux-signed-image-4.4.0-59-generic linux-signed-image-4.4.0-62-generic mscompress printer-driver-foo2zjs-common python3-pexpect python3-pil python3-ptyprocess python3-renderpm python3-reportlab python3-reportlab-accel qpdf tcl tk Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libcupsmime1 The following NEW packages will be installed: libcupsmime1 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 314 kB of archives. After this operation, 148 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ubuntu.mirror.su.se/ubuntu xenial/main amd64 libcupsmime1 amd64 2.1.3-4 [13,1 kB] Get:2 http://ubuntu.mirror.su.se/ubuntu xenial/main amd64 cups-daemon amd64 2.1.3-4 [301 kB] Fetched 314 kB in 0s (584 kB/s) Selecting previously unselected package libcupsmime1:amd64. (Reading database ... 289890 files and directories currently installed.) Preparing to unpack .../libcupsmime1_2.1.3-4_amd64.deb ... Unpacking libcupsmime1:amd64 (2.1.3-4) ... Processing triggers for libc-bin (2.23-0ubuntu5) ... Setting up libcupsmime1:amd64 (2.1.3-4) ... dpkg: error processing package cups-daemon (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Processing triggers for libc-bin (2.23-0ubuntu5) ... Errors were encountered while processing: cups-daemon E: Sub-process /usr/bin/dpkg returned an error code (1)