While installing any repository in ubuntu and you got an error related to lock
eg :
How To Fix "Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)" Errors
Then follow the below step
first login with root account or any any user with sudo access and type below command
sudo rm /var/lib/apt/lists/lock
Then its working fine
refer below image
For more info please refer below url
https://www.linuxuprising.com/2018/07/how-to-fix-could-not-get-lock.html
eg :
How To Fix "Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)" Errors
Then follow the below step
first login with root account or any any user with sudo access and type below command
sudo rm /var/lib/apt/lists/lock
Then its working fine
refer below image
For more info please refer below url
https://www.linuxuprising.com/2018/07/how-to-fix-could-not-get-lock.html
Thanks for providing such a great information.
ReplyDeleteDecOps & Cloud Course Videos