[Ubuntu] Solve problem ” /var/lib/dpkg/lock – open (13: Permission denied) “

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

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

Buat situs web atau blog gratis di WordPress.com.

Atas ↑

%d blogger menyukai ini: