
问题是:
apt-get install default-jre
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?
在此之前我已经运行过更新命令,一切正常,但最后我收到了这种类型的消息:
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?
答案1
确保软件中心未运行
ps -e|grep software-center
然后将 sudo 与 apt-get 命令一起使用
sudo apt-get update
sudo apt-get install default-jre