While upgrading ubuntu from 18.04 to 20.04 . Upgradation shows an error

Asked by Alivelu J

when given command : sudo apt upgrade
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?

plz help me out.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubuntu-meta Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

It is not possible to run two package management programs at the same time, and apparently there is already a process running (eventually in the background) which prevents that you start another one.

If you cannot find that process to end it manually, then you can reboot and try again - and it should work then.

Revision history for this message
Yeonguk Choo (choo121600) said :
#2

After the upgrade from 18.04 to 20.04 is complete, run the following `sudo apt upgrade` command :)

Because during the upgrade 18.04 -> 20.04, the following commands cannot proceed together.

Can you help with this problem?

Provide an answer of your own, or ask Alivelu J for more information if necessary.

To post a message you must log in.