sudo apt install gcc ^Ziting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4957 (unattended-upgr)... 8s
当出现此情况时,
执行
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
成功解决实例
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)