-1

This question already has an answer here:

Whenever I try to install software from the ubuntu software center, it gives me the following error after I enter my password:

Package operation failed
The installation or removal of a software package failed
OK

and if I try to install it a lot more times, a

▶Details

thing apears. When I click that, it gives me this:

dpkg: error: parsing file '/var/lib/dpkg/updates/0174' near line 0:

Also something that might be helpful is that I am running ubuntu through virtualbox and when my computer crashed (not the virtual one, but my mac one), I was running ubuntu in virtualbox, and ever since then I have had this problem. Anyone know why? Thanks.

EDIT: I've tried again, and when I click details, the message changed:

dpkg: error: parsing file '/var/lib/dpkg/updates/0174' near line 0:
  EOF after field name `'

marked as duplicate by karel, Avinash Raj, Eliah Kagan, Mitch Mar 25 '14 at 7:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

-1

Try to reset you apt-get list's

  • sudo rm -rf /var/lib/dpkg/updates/0174
  • sudo dpkg --configure -a
  • $ sudo -i
  • # apt-get clean
  • # cd /var/lib/apt
  • # mv lists lists.old
  • # mkdir -p lists/partial
  • # apt-get clean
  • # apt-key update
  • # apt-get update
  • I did that, and when it finished, it said: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. When I do that, It gives me the same error I have been having for this whole time: dpkg: error: parsing file '/var/lib/dpkg/updates/0174' near line 0: EOF after field name `' – lobuo Mar 25 '14 at 1:59
  • Ran these two commands in terminal (CTRL+ALT+T): - sudo rm -rf /var/lib/dpkg/updates/0174 - sudo dpkg --configure -a – Franklin Byaruhanga Mar 25 '14 at 3:17
  • updated answer to remove var/lib/dpkg/updates/0174 – Franklin Byaruhanga Mar 25 '14 at 3:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.