apt-get安装被锁 could not get lock /var/lib/dpkg/lock -open & 软件中心dpkg & 无法补齐 .gvfs

来源:互联网 发布:免费量化交易软件 编辑:程序博客网 时间:2024/05/14 14:11

1. Could not get lock /var/lib/dpkg/lock - open 

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/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock

之后再安装想装的包,即可解决。

2. dpkg 安装出错。

An error occurred, please run package manager

dpkg 安装出错。

An error occurred, please run Package Manager from the right-click from the right click window or apt-get in a terminal to see what is wrong. The error message was: 'Unknown Error:''(E:The package google-chrome-stable needs to be reinstalled, but I can't find an archive for it.)'This usually means that you have >installed packages with unmet dependencies


sudo apt-get update && sudo apt-get upgrade

Fixing the problem with Software Center

直接打开软件中心   让其自动修复即可

 

3. ros的命令无法补齐,出现提示   .gvfs文件问题

umount .gvfs
rm -rf .gvfs





0 0
原创粉丝点击