Cara Mengatasi Error pada apt-get dan dpkg


barusan saya mengalami error saat mau melakukan update dan install ..

pesan errornya kyk gini :

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


solusinya gini :

- buka terminal anda, lalu ketikkan :

sudo rm /var/lib/dpkg/lock


Setelah berhasil, anda bisa langsung mengetikkan perintah berikut :

dpkg --configure -a (posisi sebagai root)

klo errornya begini :

E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory


solusinya begini :

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

Comments

Popular Posts