ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 错误总结 > 1、`Could not get lock /var/lib/dpkg/lock` ``` apt-get update 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? ``` **解决:** * 找到并且杀掉所有的apt-get 和apt进程:`ps -A | grep apt` * 杀掉该进程 ``` $ sudo kill -9 processnumber 或者 $ sudo kill -SIGKILL processnumber ``` > 2、`sudo: add-apt-repository: command not found` 实际上 `add-apt-repository` 是由 `python-software-properties` 这个工具包提供的,所以安装一下python-software-properties: ``` sudo apt-get install python-software-properties ``` 有可能解决完这一步就OK了,但是也不一定,这个不一定让我也遇上了,执行 sudo add-apt-repository ppa:jonathonf/vim,发现还是提示sudo: ``` sudo: add-apt-repository: command not found ``` 那么再安装一下 `software-properties-common`: ``` sudo apt-get install software-properties-common ```