![尝试运行更新和升级时出错](https://linux22.com/image/893999/%E5%B0%9D%E8%AF%95%E8%BF%90%E8%A1%8C%E6%9B%B4%E6%96%B0%E5%92%8C%E5%8D%87%E7%BA%A7%E6%97%B6%E5%87%BA%E9%94%99.png)
我跑
sudo apt update
结果 19 个包
sudo apt upgrade
结果
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
(以前从未见过)遵循这些说明是否安全?
答案1
是的,可以安全运行sudo dpkg --configure -a
。
来自dpkg
手册页:
--configure package... |-a|
If -a or --pending is given instead of package, all unpacked but unconfigured packages are configured.
Configuring consists of the following steps:
1. Unpack the conffiles, and at the same time back up the old
conffiles, so that they can be restored if something goes wrong.
2. Run postinst script, if provided by the package.