oio11: (Default)
[personal profile] oio11
dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

Been trying to install git-core package for almost more than half a day now. Everytime i do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name `../../../../../share/pyshared/UpdateManager/Core/__init__.py' I've also tried running sudo apt-get update and sudo apt-get install --fix-missing. Even tried rebooting and cleaning the apt-get cache, still doesnt work. apt dpkg


Answers 2

The problem is that your /var/lib/dpkg/available file is damaged. This is not necessarily related to the git or git-core packages. Try to install any other package and they will fail too. To fix this you have to delete/clear the file using the command: sudo dpkg --clear-avail then rebuild the file using the command: sudo apt-get update Now you should be able to install git and git-core.
edited Mar 28 '13 at 4:24 answered Jul 30 '11 at 9:38


From the below error,it was clearly shown that your /var/lib/dpkg/available file was corrupted. dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name `../../../../../share/pyshared/UpdateManager/Core/__init__.py' Solution for the above problem is to replace the current /var/lib/dpkg/available file with another /var/lib/dpkg/available-old backup file. sudo rm /var/lib/dpkg/available sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available Now try, sudo apt-get update sudo apt-get install -f
answered Feb 13 '14 at 4:22

October 2025

S M T W T F S
   1234
567891011
12131415161718
19202122 232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 3rd, 2026 12:24 pm
Powered by Dreamwidth Studios