所以当我这样做时:
sudo apt-get install *Package*
它说:
dpkg: too many errors, stopping
Errors were encountered while processing:
resolvconf
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
当我尝试查看问题所在时,我键入:
sudo resolvconf
它说:
Command 'resolvconf' not found, but can be installed with:
sudo apt install openresolv # version 3.10.0-1, or
sudo apt install resolvconf # version 1.82
然后当我尝试安装它时:
sudo apt-get install resolvconf
它给了我和以前一样的 apt-get 错误。我试过安装 deb 包,但它说:
Unable to install resolvconf:
Error while installing package: new resolvconf package post-
removal script subprocess returned error exit status 1
我能做些什么来解决这个问题。我可以提供您需要的任何额外信息。我正在使用 Ubuntu 20.04 lts。
在尝试新命令之前,您需要修复先前命令中的错误。
首先也是最简单的是
sudo apt -f install
或其他 --fix-broken 选项?它是在没有包装的情况下发布的,因此它可以纠正现有问题而不是使问题复杂化。
从
[man apt-get
] 1