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
Solusi Error Update/Upgrade APT | Could not get lock /var/lib/dpkg/lock Solusi Error Update/Upgrade APT | Could not get lock /var/lib/dpkg/lock Reviewed by Yode Arliando on 12/09/2017 Rating: 5

No comments:

Mari komentar dan berdiskusi...