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

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





阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zyh821351004/article/details/43702369
个人分类: 【ROS】 【Ubuntu】
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭