2
Linux 中 apt install 的 lock 问题
source link: https://knightyun.github.io/2019/01/27/linux-apt-lock
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Linux 中 apt install 的 lock 问题
Linux系统中有时执行 apt install 时,可能会显示以下问题:
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
根据提示分别找到对应的两个lock文件,移除即可;
解决方法:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
再次运行就成功了。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK