installing ubuntu.desktop failed and I get message

E: dpkg was interrupted, you must manually run sudo dpkg --configure -a to correct.

When I run that command I get the following message:

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

I'm trying to reinstall the ubuntu.desktop but not sure how to proceed. any ideas would be appreciated.


Run these commands in terminal. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

cd /var/lib/dpkg/updates; sudo rm 0013
sudo dpkg --configure -a
  • Thanks, that appears to move things along, but I'm now stepping thru sudo rm00xx one line at a time. Is that to be expected? – user276516 May 1 '14 at 2:41
  • yes you have to cded into the directory and remove the corresponding file. – Avinash Raj May 1 '14 at 2:48
  • have removed the files it suggested, but now I get an error "not using locking for read only lock file /var/lib/dpkg/lock and it says run sudo dpkg -configure -a again. Do I remove the lock file from the dir indicated? and actually I get that message after running the sudo get-apt update again which fails to fetch a bunch of http pages with 404 errors – user276516 May 1 '14 at 3:07
  • post the output of ls -l /var/lib/dpkg/lock – Avinash Raj May 1 '14 at 3:08
  • alternatives, available, available-old, cmethopt, diversions, diversions-old,info, lock, parts, statoverride, statoverride-old, status, status-old, tmp.ci, triggers, updates – user276516 May 1 '14 at 4:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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