网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

Unable to lock the administration directory

时间:2026-02-15 21:47:09

1、通过终端安装程序sudo apt-get install xxx时出错:

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?

2、出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,以下解决的办法:

3、在终端中敲入以下两句


sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

4、如果是E: Some packages could not be authenticated错误:

sudo apt-get update  即可


再试着安装!
© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com