Thursday Oct 06, 2022

Solving Parse Error In Var Lib Dpkg File State Problem

Over the past few days, some readers have reported a parsing error in the var lib dpkg state file. Fix “dpkg: error: parsing file ‘/var/lib/dpkg/updates/0014′” error in Ubuntu. To fix this error, just lock the problematic file, i.e. /var/lib/dpkg/updates/0014 in my case. Replace the file descriptor with your own. And until the file is deleted, make sure people have a backup of the file.

Good luck with your business! saves you! And even wonderful, they are made daily without the knowledge of everyone! To restore file types, just run:

sudo rm /var/lib/dpkg/statussudo cerebral palsy /var/backups/dpkg.status.0 /var/lib/dpkg/statussudo apt-get update

If you also need old files, there are other options:

parse error in file var lib dpkg status

ls /var/backups/dpkg.status*/var/backups/dpkg.status.0 /var/backups/dpkg.status.4.gz/var/backups/dpkg.status.1.gz /var/backups/dpkg.status.5.gz/var/backups/dpkg.status.2.gz /var/backups/dpkg.status.6.gz/var/backups/dpkg.status.3.gz
gunzip -c /var/backups/dpkg.status.6.gz > /var/lib/dpkg/status

If the backups are not good, you can create a list of all the contents of the directory doc:

sudo -ils /usr/share/doc | n      grep -v [A-Z] | n      grep -v '^texmf$' | n      grep -v '^debian$' | n      awk '$1 print "install"' | n      dpkg --set-choices

Any So when I try to install new packages with sudo apt-get install *package* I get the following error:

dpkg: parse error, file "/var/lib/dpkg/status" near line 95 returns special "python-nova":'Depends' field, invalid packet phone 'python:any': character ':' not allowed (only sentences, numbers, and characters '-+._')E: Subprocess /usr/bin/dpkg returned errors and code (2).

When I head -100 /var/lib/dpkg/status | typed trace -10 I have:

Architecture: allSource: NovaVersion: 1:2014.1.5-0ubuntu1.3Provides: python2.7-novaDepends on: openssh-client, python-amqplib openssl, (>= 0.6.1), python-anyjson (>= 0.3.3), python-babel, python-boto (>= 2.4.0), python-cinderclient ( >= 1:1.0.5), python-eventlet (>= 0.13.0), python-glanceclient (>= 1:0.9.0), python-greenlet (>= 0.3.2), python-iso8601, python- jinja2, python-jsonschema (>=.3.0), python-keystoneclient (>= 1:0.3.2), python-kombu (>= 2.5.12), python-lxml (>= 2.python-m2crypto, 3) , python-migrate, python-netaddr (>= 0.7.6), python-neutronclient (>= 1:2.3.0), python-oslo.config (>= 1:1.2.0), python-paramiko (>= 1.8.0), python-paste, python-pastedeploy (>= 1.5.0), python-pyasn1, python-pycadf (>= 0.1.9), python-routes, python-simplejson, python-six (>= 1.5 .2), python-sqlalchemy-ext (>= 0.7.8-1~) | python-sqlalchemy (<< 0.6.3-2), python-stevedore (>= 0.12), python-suds, python-webob (>= 1.2.3), sudo, python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), python-pbr, python-sqlalchemy (>= 0.8~), python-sqlalchemy (<< 0.9), python-oslo.rootwrap, python-oslo.messagingRecommended: python-mysqldbSuggests: python-ldapConflicts: python-cjsonDescription: OpenStack Compute Python Libraries OpenStack is a reliable cloud infrastructure. Its task is to produce


  • Regarding:

      Try this:


      sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/statussudo understanding updatesudo aptitude upgrade safely

    1. Subject: Error Parsing File Var/lib/dpkg/status

      Originally posted with


      parse error in file var lib dpkg status

      Try this:


      sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/statusUpdate sudo propertiessudo aptitude upgrade safely

      The article has just been tested, but no changes

      dpkg: parse error, about file "/var/lib/dpkg/status" near line 36571, package "language-pack-gnome-en":
      Line break in legal name field `
      E: Subprocess /usr/bin/dpkg inreturned error rule (2)
      Failed to install package. Try to analyze recovery:
      dpkg: error in file '/var/lib/dpkg/status' near line 36571 of 'language-pack-gnome-en' directive

      I hope the status of both files may appear corrupted.

      Last edited by jonny_bowes; January 31, 2010 at 1:10 am.

    2. Subject: Error Parsing File Var/lib/dpkg/status

      Try /var/backups/dpkg.status.0
      instead of /var/lib/dpkg/status-old
      It simply means reapplying some extra reals. By the way, you can get a full upgrade from safe-upgrade.Parse instead

    3. Re: Error In Var/lib/dpkg/status File

      Originally posted, evoked


      Instead of /var/lib/dpkg/status-old, try /var/backups/dpkg.status.0

      It just means reapplying a few more updates. By the way, you can do a full upgrade related with secure update.

      Hi Paul, I tried what people said and then apt-get full upgrade etc but ended up doing it at the end of some process.

      dpkg: parse error, in file '/var/lib/dpkg/status' similar line 36571 package 'language-pack-gnome-en':
      Line break in field name `
      E: Subprocess /usr/bin/dpkg encountered an error (2)
      The code package could not be successfully installed. If you try this, the following will be restored:
      dpkg: parsing error, in file '/var/lib/dpkg/status' almost line 36571 package 'language-package-gnome-en':
      New line in field name `

    4. Subject: Error Parsing File Var/lib/dpkg/status

      Hey Johnny,

      How long ago was that? /var/backups probably has backups of other status music files (dpkg.status.1.gz, dpkg.status.2.gz, etc.). Try unzipping one or more of them, replacing the corrupted state file with a different one, even an older one.

      This is the exact same part of my state file - to give you an idea of ​​what it should look like:


      P Package:languagepack-gnome-ruStatus: installed or . to installedPriority: optionalSection: TranslationsInstalled size: 36Maintainer: Language Pack Manager Architecture: allVersion: 1:10.04+20100109Replaces: language-pack-en (<< 1:10.04+20100109), language-pack-en-base (<< 1:10.04+20100109), language-pack-gnome-en (<< 1:10.04+20100109) , gnome-en-base language-pack, kde-en-language-pack (<< 1:10.04+20100109), kde-en-base-language-pack (<< 1:10.04+20100109)Depends: gnome-en-base languagepack (>= 1:10.04+20100109), en-base languagepack (>= 1:10.04+20100109)Pre-Dependent: dpkg (>= 1.10.27ubuntu1)Description: .GNOME .Interpretation .Updates .for .language .English .translation .exact entries .updates .for .all .support .GNOME .mail .for: .English .. language-pack-gnome-en-base provides most of the data translation and is rarely considered relevant. This package contains frequently updated translations. . Please note that you need to install language-support-en to get full support for this process language.Package: cordless tools

      If you compare this to your great post for this pack, you might be able to fix your character file with some manual editing. II'm using Lucid so all the little details won't be the same.

      Before reposting with different status content, I also suggest booting into recovery mode, selecting netroot from the menu, and running individual commands from there.

    5. Re: Error In Var/lib/dpkg/status File

      I checked the backups and found 5 or 10 such backups dated January 17, 2010. This problem started a few or four days ago, so I'm going to select it again a few days before to be on the safe side.

      Cooper Webb

    6. Back to Top