"Could not get lock /var/lib/apt/lists/lock" (Ubuntu)
1. Open the terminal and run one of these commands:root@penreturns:~$ sudo rm /var/lib/apt/lists/lockor
root@penreturns:~$ rm -f /var/lib/apt/lists/lockor
root@penreturns:~$ killall -9 apt-get aptitudeThen make an update with this command:
root@penreturns:~$ sudo apt-get update
2. Also, If you receive this error:
E: Could not get lock /var/lib/dpkg/lock
Via the terminal, run this command to unlock it:
root@penreturns:~$ rm -f /var/lib/dpkg/lockThen update with this command:
root@penreturns:~$ sudo apt-get update
If you have more solutions for this error, then add them in the comment form given below.
Enjoy.
*copy code without root@penreturns:~$
Reply to this post
Post a Comment