dpkg:error:parsing file '/var/lib/dpkg/status' near line 1146 package 'python-minimal'

9,051

It looks like there is a typo in the Python post-installation script. This may have been caused by an Internet error of some kind...

Try this:

(Press CTRL-ALT-T for the Terminal)

sudo apt-get purge python-minimal
sudo apt-get update
sudo apt-get install python-minimal
sudo apt-get upgrade

If that doesn't work, then try using Aptitude instead of apt-get.

If that doesn't work, comment and tell me what's going wrong.

Share:
9,051

Related videos on Youtube

elvisvite
Author by

elvisvite

Updated on September 18, 2022

Comments

  • elvisvite
    elvisvite over 1 year

    I'm doing an upgrade with sudo apt-get upgrade

    After I press Enter:

    do you want to continue [y/n]? y
    debconf: apt-extracttemplates failed:No such file or directory
    extracting templates from package: 100%
    dpkg:error:parsing file '/var/lib/dpkg/status' near line 1146 package 'python-minimal'
    'break' field, invalid package name 'python-de~': Character '~' not allowed (only letters,digits and character '-+._')
    E:Sub-process /usr/bin/dpkg returned an error code (2)
    

    How to fix or edit this???

  • elvisvite
    elvisvite over 11 years
    i did but now im getting this one dpkg:error: parsing file ' /var/lib/dpkg/available' near line 13package 'python-pkg-resources':
  • JamesTheAwesomeDude
    JamesTheAwesomeDude over 11 years
    @elvisvite Did that happen during the uninstall, the reinstall, or during the upgrade? Also, did this occur while using apt-get or aptitude?
  • elvisvite
    elvisvite over 11 years
    igot frustraded and re instaled ubuntu server .. im at the point in the cmd line sudo apt-get update .. done sudo apt-get upgrade .. done sudo apt-get install linux-image-server linux-headders-server linux-souce Note: power source when out turn server on and try to do the previous comand and got this message The following package have unmet dependecies: Linux-source : depends :linux-sorce-3.5.0 but it is not going to be installed E:Unmet dependecies try 'apt-get -f install' with no packages ( or specify a solucion) So i try sudo apt-get -f install
  • elvisvite
    elvisvite over 11 years
    answer Yes to question and got this error dpkg: error: parsing file '/var/lib/dpkg/available' near line 13 package 'python-pkg-resources': 'confilcts' field syntax error after reference to package 'python2.3-setuptools' E:sub-process /usr/bin/dpkg returned an error code (2)
  • JamesTheAwesomeDude
    JamesTheAwesomeDude over 11 years
    @elvisvite Eep. So.. the power failed while it was doing an update? That is very, very bad. I'd recommend maybe reinstalling again. It looks like the power outage caused the postinstall script to be fractured. This is very weird, and I have never seen something like this before. Perhaps you should file a bug report for Python. It looks like they may have actually had a typo when they were making the package.