ubuntu更新包时产生的错误及解决方法

ubuntu在执行:

sudo apt update 命令的时候有时候会产生这种错误,

[sudo] password for gikor: 
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?
这个时候莫要慌张,这是因为刚开机或者刚从睡眠中唤醒就执行了更行包命令,系统守护程序还没有完全启动。等一两分钟后再update就好了。

你可能感兴趣的:(linux,update,ubuntu)