尝试安装 dnsutils 时出现“无法纠正问题,您持有损坏的软件包。”?

尝试安装 dnsutils 时出现“无法纠正问题,您持有损坏的软件包。”?

我正在尝试安装dnsutils但收到此错误:

$ sudo apt-get install dnsutils

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 dnsutils : Depends: libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.8) but 1:9.8.1.dfsg.P1-4.2ubuntu3.4 is to be installed
            Depends: libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.8) but 1:9.8.1.dfsg.P1-4.2ubuntu3.4 is to be installed
            Depends: libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.8) but 1:9.8.1.dfsg.P1-4.2ubuntu3.4 is to be installed
            Depends: libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.8) but 1:9.8.1.dfsg.P1-4.2ubuntu3.4 is to be installed
            Depends: liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.8) but 1:9.8.1.dfsg.P1-4.2ubuntu3.4 is to be installed
E: Unable to correct problems, you have held broken packages.

我看到有人发帖讨论这个错误,但我没有找到任何可靠的答案。有人知道我为什么会遇到这个问题吗?或者如何修复它?

我已经尝试过apt-get更新和apt-get upgrade以及cleanautoclean

答案1

首先尝试安装缺少的依赖项,从启动器打开 Synaptic 包管理器并搜索缺少的 lib 文件(libbind9-80、libdns81、libisc83 等)。安装所有文件,然后尝试通过 sudo 再次安装 dnsutils。

相关内容