错误记录Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )
Posted 韩曙亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )相关的知识,希望对你有一定的参考价值。
文章目录
一、报错信息
在 VMware Workstation 中的 Ubuntu 操作系统中 , 使用
sudo apt-get install gparted
命令 , 安装软件 , 报如下错误 ;
报错信息 :
octopus@octopus:~$ sudo apt-get install gparted
[sudo] password for octopus:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
二、解决方案
先后执行 如下两条命令 :
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
执行过程如下 :
octopus@octopus:~$ sudo rm /var/lib/dpkg/lock-frontend
octopus@octopus:~$ sudo rm /var/lib/dpkg/lock
octopus@octopus:~$
octopus@octopus:~$ sudo apt-get install gparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libatkmm-1.6-1v5 libcairomm-1.0-1v5 libglibmm-2.4-1v5 libgtkmm-2.4-1v5 libpangomm-1.4-1v5 libsigc++-2.0-0v5
Suggested packages:
xfsprogs reiserfsprogs reiser4progs jfsutils kpartx dmraid gpart
The following NEW packages will be installed:
gparted libatkmm-1.6-1v5 libcairomm-1.0-1v5 libglibmm-2.4-1v5 libgtkmm-2.4-1v5 libpangomm-1.4-1v5 libsigc++-2.0-0v5
0 upgraded, 7 newly installed, 0 to remove and 466 not upgraded.
Need to get 1,801 kB of archives.
After this operation, 10.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
执行完毕后 , 再次执行
sudo apt-get install gparted
命令 , 可以成功安装软件 ;
以上是关于错误记录Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu 安装软件时could not get lock 错误解决办法
错误记录Ubuntu 安装 Linux 内核后需要重新安装 VMware Tools 软件进行兼容操作
错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )
CentOS6.5安装之DNS配置错误,yum install 软件报错:ERROR 6或者56错误提示”could not retrieve mirrorlist http://mirrorli(代
错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )(代码
错误记录Android Studio 向 GitHub 提交代码报错 ( Push failed: Failed with error: Could not read from remote )(代码