While using the apt-get command in Ubuntu or Kali Linux, you might have encountered the error – “unable to lock the administration directory (/var/lib/dpkg/) is another process using it” on the command line.
This error can be so annoying especially for new Linux (Ubuntu) users who may not know exactly the cause of the error.
Trying to fix the error:
Try 1: Rebooting:
$ sudo reboot
Still problem not resolve.
Try 2: Delete the lock Files
$ sudo rm /var/lib/dpkg/lock
$ sudo rm /var/lib/apt/lists/lock
$ sudo rm /var/cache/apt/archives/lock
At This point try to update the package
$ sudo apt-get update
Hope this article helps you and do share with others if you liked it.
No comments:
Post a Comment