E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?
资源解锁命令:强制解锁:
sudo rm /var/cache/apt/archives/lock /var/lib/dpkg/lock
或者:
sudo rm /var/lib/apt/lists/lock;sudo rm /var/cache/apt/archives/lock;sudo rm /var/lib/dpkg/lock*;sudo dpkg --configure -a;sudo apt update