Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is he^C by process 5216 (unattended-upgr)... 10s
Ubuntu agt安装时出现的
sudo apt install openssh-server
直接kill掉apt就可以
在尝试使用`sudo apt install openssh-server`安装SSH服务器时,遇到了Ubuntu系统中dpkg的锁文件问题。错误信息显示无法获取/var/lib/dpkg/lock-frontend的锁,该问题可能是由于后台的unattended-upgrade进程正在运行。解决方法是通过直接终止apt进程来解除锁文件,例如使用`killall apt`命令。
1462

被折叠的 条评论
为什么被折叠?



