解决办法:E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)

简介: 解决办法:E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)

具体错误如下:


curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
## Installing the NodeSource Node.js 10.x repo...
## Populating apt-get cache...
+ apt-get update
正在读取软件包列表... 完成
E: 无法获得锁 /var/lib/apt/lists/lock - open (11: 资源暂时不可用)
E: 无法对目录 /var/lib/apt/lists/ 加锁
Error executing command, exiting

 吾自己当前没有其他安装行为,检查后台也没找到。最后还是采取了强力措施:


sudo rm -rf /var/lib/apt/lists
目录
相关文章
|
Shell Docker 容器
解决:E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
为了让容器服务启动更加方面,于是自己手写了一个 docker-compose.yml 配置脚本。脚本内容如下:
2098 0
|
7月前
|
前端开发
无法解锁/var/lib/dpkg/lock-frontend和无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend)【解决方案】
无法解锁/var/lib/dpkg/lock-frontend和无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend)【解决方案】
|
7月前
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
|
缓存 Ubuntu Linux
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
|
Ubuntu Linux
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
257 2
出现Could not get lock /var/lib/dpkg/lock 资源锁定情况解决
解决办法:无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
解决办法:无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
152 0
无法获得锁 /var/cache/apt/archives/lock - open (11: 资源暂时不可用)
无法获得锁 /var/cache/apt/archives/lock - open (11: 资源暂时不可用)
109 0
E: 无法打开锁文件 /var/lib/dpkg/lock-frontend - open (2: 没有那个文件或目录)
E: 无法打开锁文件 /var/lib/dpkg/lock-frontend - open (2: 没有那个文件或目录)
157 0
linux--Could not get lock /var/lib/dpkg/lock
linux--Could not get lock /var/lib/dpkg/lock
96 0