【1】Ubuntu下控制台输入sudo apt-get update之后出现的问题:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
再试一次sudo apt-get update就可以了
【2】ubuntu16.04下更新源报错的问题:
W: http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/Release.gpg: Signature by key 6CE35A4EBAB676094476BE7CD259B7555E1D3C58 uses weak digest a.....
解决方法:
sudo gedit /etc/sources.list.d/ubuntukylin.list,将其中的trust改成xenial,保存
sudo apt-get update
更新源之后还是会出现一些错误
sudo apt-get install keyring
sudo apt-get update