dpkg: error processing package liblmdb0:amd64 (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration Setting up libevdocument3-4:amd64 (3.18.2-1ubuntu4.1) ... Setting up libevview3-3:amd64 (3.18.2-1ubuntu4.1) ... Setting up evince-common (3.18.2-1ubuntu4.1) ... Setting up evince (3.18.2-1ubuntu4.1) ... Setting up libepoxy0:amd64 (1.3.1-1ubuntu0.16.04.2) ... Processing triggers for libc-bin (2.23-0ubuntu9) ... Errors were encountered while processing:  liblmdb0:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1)   I am getting this error every time I execute these commands on the terminal:  sudo apt-get update &amp;&amp; sudo apt-get upgrade sudo apt-get autoremove   I'm running Ubuntu 16.04 I can't uninstall programs in my system and I'm also getting a System Error popup everytime my computer starts.
1892
I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?
66107
linux-image-server depends on linux-image-3.2.0-39-generic; however:   Package linux-image-3.2.0-39-generic is not installed. dpkg: error processing linux-image-server (--configure):   dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-server (= 3.2.0.39.47); however:   Package linux-image-server is not configured yet. linux-server depends on linux-headers-server (= 3.2.0.39.47); however:   Version of linux-headers-server on system is 3.2.0.40.48. dpkg: error processing linux-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.  Errors were encountered while processing:  linux-image-server linux-server  E: Sub-process /usr/bin/dpkg returned an error code (1)     I don't know how to fix this issue. Plz help me. >&lt;
34554
I have tried some of the solutions posted elsewhere in the support forum, one seemed like it worked but after a steam update i found myself back at square one  I am a new Linux user and am already at a learning curve :)  Thanks for any help  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.3)  unity-control-center : Depends: libcheese-gtk23 (&gt;= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (&gt;= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Press return to continue:
56594
I have tried to find some PPA's for Ubuntu 14.04 but didn't find any. So I tried to install the package for previous releases, with no luck and a lot of dependencies issues.
23999
After installing Microsoft Windows Compatibility Layer (meta-package) i receive an error   Item cannot be installed or removed until the package catalogue is repaired. Do you want  to repair it     Ok, I thought... I'll just click repair and be done with it. After doing so I receive another error.    The full text reads:  installArchives() failed: (Reading database ...  (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 212945 files and directories currently installed.) Unpacking libasound2:i386 (from .../libasound2_1.0.25-1ubuntu10_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb (--unpack):  './usr/share/alsa/cards/ICE1712.conf' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb Error in function:  SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1) dpkg: dependency problems prevent configuration of wine1.4-i386:i386:  wine1.4-i386:i386 depends on libasound2 (&gt;= 1.0.23); however:   Package libasound2:i386 is not installed. dpkg: error processing wine1.4-i386:i386 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4:  wine1.4 depends on wine1.4-i386 (= 1.4-0ubuntu4); however:   Package wine1.4-i386 is not installed.   Package wine1.4-i386:i386 is not configured yet. dpkg: error processing wine1.4 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine:  wine depends on wine1.4; however:   Package wine1.4 is not configured yet. dpkg: error processing wine (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-common:  wine1.4-common depends on wine1.4 (= 1.4-0ubuntu4); however:   Package wine1.4 is not configured yet. dpkg: error processing wine1.4-common (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-amd64:  wine1.4-amd64 depends on wine1.4-common (= 1.4-0ubuntu4); however:   Package wine1.4-common is not configured yet. dpkg: error processing wine1.4-amd64 (--configure):  dependency problems - leaving unconfigured   So I click OK and now I'm back to previous screen ("Item cannot be installed ...")  I click on cancel and go to the red circle on the top right on my screen and try to update from there and receive this error    After that I just get thrown these errors        So now I can't add or remove any programs on my system. Does anyone have any idea how to fix this?
117042
I'm using Ubuntu GNOME 16.10 and was trying to install WPS Office. I tried to install using software centre But it wasn't installing without giving any error logs. Then I opened it with Gdebi installer. Here is what I saw.    I have already trying enabling multiverse repositories.  Edit: I have downloaded the amd64 package from the WPS official site, but even now installing through terminal I still get the missing dependencies error.
23859
Sometimes, when I upgrade a system via do-release-upgrade, the update process fails and the script tells me to finish the process manually via dpkg --configure -a. This is a not serious problem - after manually solving the dependencies problem and the finishing upgrade process all works well.  But the do-release-upgrade script has a cleanup process after finishing the upgrade:  Remove obsolete packages?   XXX packages are going to be removed.   Continue [yN]  Details [d]y   which removes some obsolete packages from old version of system.  Seems that this process doesn't execute when the automatic upgrade fails and I finish upgrade manually, so obsolete packages from old version remain installed in the system.  How I can run the "Remove obsolete packages" process manually after finishing the upgrade by hand?
5304
I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get?     W: GPG error:    lucid   Release: The following signatures were   invalid: BADSIG 54422A4B98AB5139   Oracle Corporation (VirtualBox archive   signing key)
82983
when trying to update package listings via apt update or apt-get update I receive the following error:  E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/Components-amd64.yml.gz  Hash Sum mismatch E: Failed to fetch http://lt.archive.ubuntu.com/ubuntu/dists/xenial/universe/dep11/icons-64x64.tar  Writing more data than expected (7468511 &gt; 7467723) [IP: 193.219.61.87 80]   Is this somehow related to localised package distributor or is me all along? I am running beta2 release, that I've successfully installed and updated (without any error prompts) yesterday. Previously I used a 14.04 derivative which also did not bring up any errors. What can be the reason for this error?  EDIT: to duplicate markers, the topic name tackles a different problem rather than the hash sum problem, which is being referenced.
44394
I recently moved to Linux, and I am in love with the experience. Opinions apart, I am having problems when running sudo dpkg --configure -a  My computer stops processing the command here:  You may know Adobe Flash Player is no longer supported, and I believe that could be why the command is unable to load pepperflashplugin-nonfree. I have tried fixing the problem by checking older posts here, but none of them was able to fix this problem.
1930
I am trying to install google-chrome-stable on a fresh ubuntu 12.04 installation. I run the following commands  wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome*.deb   I get the following errors  dpkg: dependency problems prevent configuration of google-chrome-stable:  google-chrome-stable depends on libstdc++6 (&gt;= 4.8.0); however: Version of libstdc++6 on system is 4.6.3-1ubuntu5.  google-chrome-stable depends on lsb-base (&gt;= 4.1); however: Version of lsb-base on system is 4.0-0ubuntu20.3. dpkg: error processing google-chrome-stable (--install):  dependency problems - leaving unconfigured Processing triggers for man-db ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for gnome-menus ... Errors were encountered while processing:  google-chrome-stable   When I run sudo apt-get install -f I just have google-chrome-stable removed:  The following packages will be REMOVED   google-chrome-stable   If I look for the required versions, e.g. I try sudo apt-get install libstdc++6=4.8.0 I cannot find the version:  E: Version ‘4.8.0’ for ‘libstdc++6’ was not found   How do I fix that?  I know there is no longer support for 32bit version of Ubuntu 12.04. I am running 64bit Ubuntu version.
24627
Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated.  al@al:~$ sudo apt-get -f upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following NEW packages will be installed:   libjack-jackd2-0:i386 The following packages have been kept back:   linux-headers-generic skype 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/202 kB of archives. After this operation, 493 kB of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 310056 files and directories currently installed.) Unpacking libjack-jackd2-0:i386 (from .../libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb (--unpack):  './usr/share/doc/libjack-jackd2-0/buildinfo.gz' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
24610
I am using 15.04.   So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided it was a good idea to install more packages. I ran sudo apt-get install git-all. I'm looking at error codes now having to deal with upstart.  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   This is what happens when I even update/upgrade my system. At this point all I'm looking to do is be able to install software and update my current software. Is there any way I can potentially reverse this issue or at least correct it?   Edit: Thankfully this issue was solved only a day or two after it happened. The accepted answer worked perfectly and took care of my issue
20346
So I'm just coming back to Ubuntu after some time away, running 14.04 and I've gotten things customized the way I like them, more or less.  At one point I'd attempted to download "Popcorn-Time."  I ran into some issues of some sort and decided to remove it/that it wasn't worth the trouble.    Something from the install process seems to be "stuck" in apt-get though.  I'm having issues getting new packages and I'm getting this message:  Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up popcorn-time (0.3.2~webupd8~6) ... Downloading Popcorn Time... --2015-09-06 11:25:00--  http://cdn.popcorntime.io/build/Popcorn-Time ... Resolving cdn.popcorntime.io ... Connecting to cdn.popcorntime.io (cdn.popcorntime.io)|45.33.69.37|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-09-06 11:25:00 ERROR 404: Not Found.  download failed Popcorn Time is NOT installed. dpkg: error processing package popcorn-time (--configure):  subprocess installed post-installation script returned error exit status 1 ...  Errors were encountered while processing:  popcorn-time E: Sub-process /usr/bin/dpkg returned an error code (1)   I've omitted a couple of lines there, but I think you get the idea.  This is occurring when I try to install most packages using apt-get, maybe all packages.  It seems like it's interfering, and frankly I'd like it to not try to install popcorn time every time I install any package.  Any ideas?
94249
I get the following error after installing nmap:  dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory E: Sub-process /usr/bin/dpkg returned an error code (2)
102164
I can't say what steps brought me into this:  → sudo apt-get upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) Errors were encountered while processing:  libtiff4 E: Sub-process /usr/bin/dpkg returned an error code (1)   The following commands all end up in the same error:  sudo apt-get install -f sudo dpkg --configure -a sudo apt-get --fix-broken install sudo apt-get --fix-missing install sudo apt-get clean sudo apt-get autoclean sudo apt-get autoremove   How to solve these kind of problems? And what did I do wrong?  UPDATE I managed to get apt working again by downgrading to previous version (3.9.5-1ubuntu1). However, next upgrade led to the same problem. But there is more info now:  (Reading database ...  dpkg: warning: files list file for package `libtiff4:k386' missing, assuming package has no files currently installed. (Reading database ... 281166 files and directories currently installed.) Preparing to replace libtiff4 3.9.5-1ubuntu1 (using .../libtiff4_3.9.5-1ubuntu1.1_i386.deb) ... Unpacking replacement libtiff4 ... dpkg: error processing libtiff4 (--configure):  libtiff4:i386 3.9.5-1ubuntu1.1 cannot be configured because libtiff4:k386 is in a different version (3.9.5-1ubuntu1) No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  libtiff4   So the real problem seems to be the missing libtiff4:k386 package. And k386 seems like a stupid typo somewhere.  I tracked down the file that introduces the typo:  **/var/lib/dpkg/status**  Package: libtiff4 Status: install ok half-configured Multi-Arch: same Priority: optional Section: libs Installed-Size: 528 Maintainer: Ubuntu Developers &lt;ubuntu-devel-discuss@lists.ubuntu.com&gt; Architecture: k386 Source: tiff Version: 3.9.5-1ubuntu1 Config-Version: 3.9.5-1ubuntu1 Depends: libc6 (&gt;= 2.11), libjpeg62 (&gt;= 6b1), zlib1g (&gt;= 1:1.1.4) Pre-Depends: multiarch-support Description: Tag Image File Format (TIFF) library  libtiff is a library providing support for the Tag Image File Format  (TIFF), a widely used format for storing image data.  This package  includes the shared library. Homepage: http://libtiff.maptools.org Original-Maintainer: Jay Berkenbilt &lt;qjb@debian.org&gt;   Fixing the typo solves the problem.
111360
After running an upgrade from Ubuntu 11.10 (Oneiric Ocelot) to 12.04LTS (Precise Pangolin), a window popped up saying that the upgrade failed and that I should run sudo dpkg --configure -a.  Running that command gave me:  sudo dpkg --configure -a dpkg: error: parsing file '/var/lib/dpkg/status' near line 55497 package 'indicator-displex':  blank line in value of field 'Description   Trying to run apt-get install -f gives me many dependency errors along with that same dpkg error.