1. 解决Could not get lock /var/cache/apt/archives/lock
在ubuntu apt-get upgrade的时候,遇到:
E: Could not get lock /var/cache/
apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory
解决办法如下:
sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update
然后apt-get就恢复正常了。
2. dpkg was interrupted
进入/var/lib/dpkg/updates目录,将该目录下的所有文件删掉,就可以修复cydia