Baca juga gais

Saturday, December 09, 2017

Solusi Error Update/Upgrade APT | Could not get lock /var/lib/dpkg/lock

Ketika mau update repository, muncul notifikasi error begini:

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?
Itu karena katanya karena apt-get  terhenti saat eksekusi, makanya dia meninggalkan apt dalam keadaan terkunci.
Solusinya:
sudo rm /var/lib/apt/lists/lock 
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
 
Kemudian coba upgrade lagi, dan akan berhasil. Sekian..
Sumber: ASKUbuntu

No comments:

Post a Comment

Mari komentar dan berdiskusi...