can not install software in linux error as dpkg was interrupted

0 votes

I was trying to install mono using following commands,

  1. sudo apt-get install mono-*

unfortunately, I closed the terminal while it installing. again i started to reinstall but shown error like

Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)

I tried below commands for solution,

  1. sudo rm /var/lib/apt/lists/lock
  2. sudo rm /var/cache/apt/archives/lock

But now I am getting the error like

dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

how do I fix this one?

Apr 28, 2022 in Linux Administration by Edureka
• 13,690 points

edited Mar 4 17 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP