当我尝试安装sudo apt-get install bind9-dnsutils
时,我收到以下错误:
The following packages have unmet dependencies:
bind9-dnsutils : Depends: bind9-libs (= 1:9.16.1-0ubuntu2) but 1:9.16.1-0ubuntu2.4 is to be installed
E: Unable to correct problems, you have held broken packages.
所以,我必须安装bind9-libs
,当我尝试安装时sudo apt-get install bind9-libs
,我得到以下输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
bind9-libs is already the newest version (1:9.16.1-0ubuntu2.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我需要bind9-dnsutils
安装nslookup
.
我如何解决它?
bind9-libs
(1:9.16.1-0ubuntu2.4) 的那个版本在 ubuntu 20.04 中不存在,所以你为了得到它做了一些奇怪的事情。您应该检查您的 /etc/apt/sources.list、sources.list.d 和 PPA 是否包含任何意外内容。
apt policy bind9-libs
可能会显示你从哪里得到它。最终你会想要删除它并
bind9-libs
安装 1:9.16.1-0ubuntu2.3 版本。