Firefox update fails; “Could not get lock” error when I run sudo apt upgrade [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    21 answers




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?










share|improve this question















marked as duplicate by mikewhatever, karel, user535733, Elder Geek, Kevin Bowen Dec 14 at 6:35


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.















  • I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
    – Encipher
    Dec 13 at 17:57










  • sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
    – Encipher
    Dec 13 at 18:02












  • Because Mate is lighter version.
    – Encipher
    Dec 13 at 18:08






  • 2




    There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
    – Zanna
    Dec 13 at 18:25















up vote
0
down vote

favorite













This question already has an answer here:




  • Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    21 answers




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?










share|improve this question















marked as duplicate by mikewhatever, karel, user535733, Elder Geek, Kevin Bowen Dec 14 at 6:35


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.















  • I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
    – Encipher
    Dec 13 at 17:57










  • sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
    – Encipher
    Dec 13 at 18:02












  • Because Mate is lighter version.
    – Encipher
    Dec 13 at 18:08






  • 2




    There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
    – Zanna
    Dec 13 at 18:25













up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:




  • Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    21 answers




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?










share|improve this question
















This question already has an answer here:




  • Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    21 answers




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?





This question already has an answer here:




  • Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

    21 answers








apt firefox dpkg mate






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 13 at 18:22









Zanna

49.8k13130237




49.8k13130237










asked Dec 13 at 17:46









Encipher

12




12




marked as duplicate by mikewhatever, karel, user535733, Elder Geek, Kevin Bowen Dec 14 at 6:35


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.






marked as duplicate by mikewhatever, karel, user535733, Elder Geek, Kevin Bowen Dec 14 at 6:35


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.














  • I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
    – Encipher
    Dec 13 at 17:57










  • sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
    – Encipher
    Dec 13 at 18:02












  • Because Mate is lighter version.
    – Encipher
    Dec 13 at 18:08






  • 2




    There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
    – Zanna
    Dec 13 at 18:25


















  • I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
    – Encipher
    Dec 13 at 17:57










  • sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
    – Encipher
    Dec 13 at 18:02












  • Because Mate is lighter version.
    – Encipher
    Dec 13 at 18:08






  • 2




    There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
    – Zanna
    Dec 13 at 18:25
















I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
– Encipher
Dec 13 at 17:57




I am using ubuntu mate.I don't think ubuntu mate and ubuntu work in same way. Ubutu mate is a lighter version compare to Ubuntu. So definitely there are some software issues.
– Encipher
Dec 13 at 17:57












sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
– Encipher
Dec 13 at 18:02






sudo lsof /var/lib/dpkg/lock ** After given that command I got **lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME unattende 4937 root 4uW REG 8,1 0 2098137 /var/lib/dpkg/lock What does it mean?
– Encipher
Dec 13 at 18:02














Because Mate is lighter version.
– Encipher
Dec 13 at 18:08




Because Mate is lighter version.
– Encipher
Dec 13 at 18:08




2




2




There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
– Zanna
Dec 13 at 18:25




There is no difference between Ubuntu MATE and Ubuntu that is relevant to anything in your question. It seems the underlying issue here is with Firefox. APT will update firefox along with all other packages Reboot and run sudo apt update && sudo apt full-upgrade && sudo apt autoremove and then please let us know if you still have any problems with Firefox.
– Zanna
Dec 13 at 18:25










1 Answer
1






active

oldest

votes

















up vote
-1
down vote













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.






share|improve this answer










New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • updated, thanks for guidance.
    – IamSushil
    14 hours ago


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-1
down vote













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.






share|improve this answer










New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • updated, thanks for guidance.
    – IamSushil
    14 hours ago















up vote
-1
down vote













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.






share|improve this answer










New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • updated, thanks for guidance.
    – IamSushil
    14 hours ago













up vote
-1
down vote










up vote
-1
down vote









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.






share|improve this answer










New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









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.







share|improve this answer










New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited 14 hours ago





















New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Dec 13 at 19:09









IamSushil

12




12




New contributor




IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






IamSushil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • updated, thanks for guidance.
    – IamSushil
    14 hours ago


















  • updated, thanks for guidance.
    – IamSushil
    14 hours ago
















updated, thanks for guidance.
– IamSushil
14 hours ago




updated, thanks for guidance.
– IamSushil
14 hours ago



Popular posts from this blog

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?