sudo apt update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
时间: 2023-06-30 09:03:07 浏览: 187
nodejs安装及环境配置.md
这个错误通常是因为有另一个进程正在使用apt-get或类似工具。你可以尝试以下命令来查找并杀死这些进程:
```
sudo lsof /var/lib/dpkg/lock
sudo lsof /var/lib/apt/lists/lock
sudo lsof /var/cache/apt/archives/lock
```
然后使用以下命令释放锁定:
```
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
```
最后,运行以下命令更新软件包列表:
```
sudo apt update
```
阅读全文