Hiển thị các bài đăng có nhãn apt-get update. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn apt-get update. Hiển thị tất cả bài đăng

Thứ Tư, 27 tháng 11, 2013

How to fix E: Could not get lock /var/lib/apt/lists/lock problem


You got following message when you try to run apt-get update command in Ubuntu?

E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?

 Solution

1. Search for processes

ps -A | grep apt-get

2. See if there is any process running as apt-get then kill that process

sudo kill -9 

If the error persists, apply following commands in a termina,

sudo su
sudo rm /var/lib/apt/lists/lock
apt-get update


Chủ Nhật, 1 tháng 7, 2012

How to remove translation entries while apt-get update

While updating Ubuntu 12.04 repositories, you can see that it take too much time checking translation entries. You can save the time by applying following solution,

gedit /etc/apt/apt.conf.d/99translations

And add following lines and save it,

Acquire::Languages "none";

Then try apt-get update command in a Terminal.