所以当我这么做的时候
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它给了我和以前一样的错误。我试过安装deb软件包,但它说:
Unable to install resolvconf:
Error while installing package: new resolvconf package post-
removal script subprocess returned error exit status 1我能做些什么来解决这个问题。我可以提供你需要的任何额外信息。我正在使用Ubuntu20.04LTS。
发布于 2020-09-18 23:27:39
在尝试新命令之前,需要修复以前命令中的错误。
第一个也是最简单的是
sudo apt -f install
或者其他--修复-破坏的选择?它是在没有包装的情况下发布的,所以它纠正了现有的问题,而不是使问题复杂化。
来自[man apt-get]1
-f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system's dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg --remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.
https://askubuntu.com/questions/1276146
复制相似问题