apt-get运行中按ctrl+c 会中断进程,再安装会提示“dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem”,需要交互式确认
如果不需要提示直接恢复可以:
rm /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/updates/*
apt-get update
参考:
https://www.helplib.cn/tianye/message-edpkg-was-interrupted-you-must-manually-run-sudo-dpkg-configure-a