ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
来源:互联网 发布:淘宝培训班 编辑:程序博客网 时间:2024/06/03 16:38
通过终端安装程序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?
出现这个问题可能是有另外一个程序正在运行,导致资源被锁不可用。而导致资源被锁的原因可能是上次运行安装或更新时没有正常完成,进而出现此状况,解决的办法其实很简单:
在终端中敲入以下两句
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
再试着安装,问题解决。
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
再试着安装,问题解决。
0 0
- ubuntu错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- Ubuntu 常见错误 Could not get lock /var/lib/dpkg/lock-open
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- Ubuntu 常见错误: could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- [zt]ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- Ubuntu常见错误-Could not get lock /var/lib/dpkg/lock解决方法
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open
- Android Studio使用ViewPager+Fragment实现仿微信滑动切换界面
- Jsp/Servlet Request getReader()/getInputStream()返回空值的解决方法
- Infinidb问题处理
- linux常用命令
- java中System.setProperty()方法
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock
- ffmpeg 将视频和图片互转化
- mysql的价格存储类型
- android framework 添加系统服务
- fedora samba
- Centos7卸载JDK
- 判断网络连接状态
- dubbo
- [Paper note] Feature Pyramid Networks for Object Detection