Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)

更新软件的时候提示“无法获得锁 /var/cache/apt/archives/lock - open (11 资源临时不可用) ”

解决方法一:

#:ps -aux (列出进程,形式如)

root 5765 0.0 1.0 18204 15504 ? SN 04:02 0:00 apt-get -qq -d

找到最后一列以apt-get 开头的进程

#:sudo kill 该进程的PID

解决方法二:

#:sudo rm /var/cache/apt/archives/lock

#:sudo rm /var/lib/dpkg/lock

你可能感兴趣的:(Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable))