It was happen when I want to run command sudo apt-get update && apt-get upgrade . 

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
Could not open lock file /var/lib/dpkg/lock – open (13: Permission denied)

The solution to handle this issue by running some command in terminal as below

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock

Then, let’s try again

sudo -s apt-get update && apt-get upgrade

Thank you for this reference and Have a nice day

 

Iklan