question:
ubuntu@ubuntu:/usr/src/linux-headers-3.5.0-23-generic$ sudo apt-get install cheese
[sudo] password for ubuntu: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?
how to solve this issue please help.
answar:
You can delete the lock file with the following command:
sudo rm /var/lib/apt/lists/lock
You may also need to delete the lock file in the cache directory
sudo rm /var/cache/apt/archives/lock
本文介绍了解决在Ubuntu系统中安装Cheese软件时遇到的锁文件问题的方法。当使用sudo apt-get install cheese命令时,如果出现无法获取锁文件的错误提示,可以通过删除特定的锁文件来解决这一问题。
3127

被折叠的 条评论
为什么被折叠?



