dpkg: parse error, in file '/var/lib/dpkg/available'
I did apt-get install gcursor. The file downloaded into the cache and then I got this error
dpkg: parse error, in file `/var/lib/
`Replaces' field, invalid package name `manpag1:
E: Sub-process /usr/bin/dpkg returned an error code (2)
Because of this I cannot install any new packages. How to solve this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jeffrey
- Solved:
- 2007-07-26
- Last query:
- 2007-07-26
- Last reply:
- 2007-07-24
| Cesare Tirabassi (norsetto) said : | #1 |
Seems like you cache is corrupted.
Try with a sudo dpkg --clear-avail && sudo apt-get update
| Jeffrey (jeff0stella) said : | #2 |
That is exactly what I did. I did sudo dpkg --clear-avail and the update manager did the update I believe and now I have no probs. Thanks Cesare!
| Christopher Marts (ocfire271) said : | #3 |
Worked perfectly for me as well.
| iGadget (igadget) said : | #4 |
Same here. An alternative would be this solution as proposed on http://
sudo rm /var/lib/
I would just like to ask you to use aptitude instead of apt-get, as motivated here:
http://
Thanks :)
| iGadget (igadget) said : | #5 |
Seems like the 'solution' mentioned on the ubuntuforums doesn't work all too well (you'll get complaints about the missing 'available'-file afterwards), so I'd recommend to use Cesare's solution when this occurs (happened again to me today, and fixed again using Cesare's method) :)
| Mehul J. Rajput (mehulrajput) said : | #6 |
I too was having the same issue and it is resolved now... thank you..
| lone_deranger (joao-paulo-c) said : | #7 |
Thanks.
Worked fine for me too!
| Ema (rimlaatar) said : | #8 |
When I try with the update manager I get a error ... I try with sudo dpkg --clear-avail && sudo apt-get update but the same problem still exist.. can you help me pleaz .. thanks
Atteint http://
Ign http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Ign http://
Ign http://
Atteint http://
Atteint http://
Ign http://
Ign http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Ign http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Ign http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Atteint http://
Lecture des listes de paquets... Erreur !
E: Problem parsing dependency Replaces
E: Erreur apparue lors du traitement de transmission-gtk (NewVersion1)
E: Problem with MergeList /var/lib/
E: Les listes de paquets ou le fichier « status » ne peuvent être analysés ou lus.
Hi,
I've downloaded packages updates with synaptic.
During installation something didn't worked and now I've many troubles.
Among those when I tray opening synaptic an error message pop-up
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."
Well, I tried doing it but it doesn't work and I receive as answer:
dpkg: parse error, in file `/var/lib/
newline in field name `#padding'
I tried with dpkg --clear -avail but it doesn't accept --clear.
I tried with apt-get update; it looks as downloading but at the end the result is:
W: GPG error: http://
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
I'm quite disoriented, what do you suggest????
Thank you :)
@alexeepc
Please don't append a new question on a already answered or marked as solved question.
Please make new question from here: https:/
you will get better chance to get right answer on a fresh tagged "open" question.
Solved or answered questions are usually not read from answering people.
Thank you

