Ubuntu使用apt install的问题

Ubuntu常见问题

这里写图片描述

通过终端安装程序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

你可能感兴趣的:(学习小记,ubuntu,终端)