root@uni-virtual-machine:/home/uni# apt install apt-transport-https ca-certificates curl software-properties-common -y
E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)
E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend),是否有其他进程正占用它?
查看/var/lib/dpkg/lock-frontend:ls /var/lib/dpkg/lock-frontend
删除:sudo rm -r -f /var/lib/dpkg/lock-frontend
如果依然报错:无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
删除:sudo rm -r -f /var/lib/dpkg/lock
ubuntu提示:无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)