Could not get lock/var/lib/apt/lists错误的处理

原文链接为:http://blog.sina.com.cn/s/blog_6341be650100hqg3.html


更换源地址为ubuntu.cn99.com之后,再输入apt-get命令后出现了

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?

解决方法:

sudo rm /var/lib/apt/lists/lock

删除lock文件即可。

你可能感兴趣的:(Ubuntu问题处理)