0

I am new to Ubuntu. I have installed Ubuntu MATE in my p.c. Now when I opened browser Mozilla Firefox it searched for a update. So I have been updating it but it fails every time.

sudo apt update works well.

sudo apt upgrade throws this error:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

How can I update all the applications in Ubuntu MATE as well as Mozilla Firefox?

Zanna
  • 72,312
Encipher
  • 99
  • 6

1 Answers1

-1

Use this with care, i.e. make sure not other installation/upgrade is running in parallel.

You can try sudo rm /var/lib/dpkg/lock.

It should remove the lock and allow for upgrade.

Edit:

To check whether any other installation is running, try

ps -ef | grep apt

ps -ef | grep dpkg

and see if any processes are listed, if same are present, check if any other open terminal is running any installation.

Hope it helps.

IamSushil
  • 124