package foomatic-filters 4.0.17-8 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal

Bug #1682842 reported by Bui Manh Ha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
foomatic-filters (Ubuntu)
New
Undecided
Unassigned

Bug Description

run apt-get -f install

dpkg: warning: ignoring request to remove cups-filters, only the config
 files of which are on the system; use --purge to remove them too
Selecting previously unselected package cups-filters.
dpkg: considering removing foomatic-filters in favour of cups-filters ...
dpkg: foomatic-filters is not properly installed; ignoring any dependencies on it
dpkg: package foomatic-filters requires reinstallation, will not remove
dpkg: regarding .../cups-filters_1.8.3-2ubuntu3.1_amd64.deb containing cups-filters:
 cups-filters conflicts with foomatic-filters
  foomatic-filters (version 4.0.17-8) is present and broken due to failed removal or installation.

dpkg: error processing archive /var/cache/apt/archives/cups-filters_1.8.3-2ubuntu3.1_amd64.deb (--unpack):
 conflicting packages - not installing cups-filters
Errors were encountered while processing:
 /var/cache/apt/archives/cups-filters_1.8.3-2ubuntu3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: foomatic-filters 4.0.17-8
ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
Uname: Linux 4.4.0-72-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia wl
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Fri Apr 14 22:10:10 2017
Dependencies:

DpkgHistoryLog:
 Start-Date: 2017-04-14 22:10:07
 Requested-By: habm (1000)
 Install: cups-filters:amd64 (1.8.3-2ubuntu3.1, automatic)
 Upgrade: dnsmasq-base:amd64 (2.75-1ubuntu0.16.04.1, 2.75-1ubuntu0.16.04.2), libwebkit2gtk-4.0-37:amd64 (2.14.5-0ubuntu0.16.04.1, 2.16.1-0ubuntu0.16.04.1), gir1.2-webkit2-4.0:amd64 (2.14.5-0ubuntu0.16.04.1, 2.16.1-0ubuntu0.16.04.1), libjavascriptcoregtk-4.0-18:amd64 (2.14.5-0ubuntu0.16.04.1, 2.16.1-0ubuntu0.16.04.1), libwebkit2gtk-4.0-37-gtk2:amd64 (2.14.5-0ubuntu0.16.04.1, 2.16.1-0ubuntu0.16.04.1), gir1.2-javascriptcoregtk-4.0:amd64 (2.14.5-0ubuntu0.16.04.1, 2.16.1-0ubuntu0.16.04.1)
 Remove: foomatic-filters:amd64 (4.0.17-8)
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
InstallationDate: Installed on 2017-01-30 (74 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: foomatic-filters
Title: package foomatic-filters 4.0.17-8 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bui Manh Ha (habm) wrote :
Revision history for this message
Bui Manh Ha (habm) wrote :

Solution:

Step 1:
sudo dpkg --remove --force-remove-reinstreq foomatic-filters

Step 2:
sudo dpkg --remove --force-remove-reinstreq printer-driver-foo2zjs

End:
apt-get -f install

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.