这时候有可能会提示,也有可能在update的时候就提示
Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- 执行ps -aux | grep 'apt-get'命令,查看是否有后台执行的apt命令, 如果有,则sudo kill -9 <process-id>
- 执行apt命令,如果还是不行的话可以尝试sudo rm /var/lib/apt/lists/lock,也许还需要执行
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
网友评论