当我输入以下内容时:
apt-cache policy libdns162
我收到这个输出:
libdns162:
Installed: 1:9.10.3.dfsg.P4-8ubuntu1.8
Candidate: 1:9.10.3.dfsg.P4-8ubuntu1.10
输入后我得到以下信息:
sudo apt-get install --only-upgrade libdns162
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clang-format clang-format-3.8 libclang1 libclang1-3.8 libffi-dev libjavascriptcoregtk-1.0-0 liblldb-3.6 liblldb-3.8 libtinfo-dev libuv1 libwebkitgtk-1.0-0
libwebkitgtk-1.0-common linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-headers-4.10.0-38 linux-headers-4.10.0-38-generic linux-headers-4.10.0-40
linux-headers-4.10.0-40-generic linux-image-4.10.0-28-generic linux-image-4.10.0-38-generic linux-image-4.10.0-40-generic linux-image-extra-4.10.0-28-generic
linux-image-extra-4.10.0-38-generic linux-image-extra-4.10.0-40-generic linux-signed-image-4.10.0-28-generic linux-signed-image-4.10.0-38-generic
linux-signed-image-4.10.0-40-generic lldb lldb-3.8 llvm-3.8 llvm-3.8-dev llvm-3.8-runtime nodejs python-lldb-3.8
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
libdns162
1 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
3 not fully installed or removed.
Need to get 0 B/880 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
E: Invalid archive member header
E: Prior errors apply to /var/cache/apt/archives/libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 325831 files and directories currently installed.)
Preparing to unpack .../libdns162_1%3a9.10.3.dfsg.P4-8ubuntu1.10_amd64.deb ...
Unpacking libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.10) over (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
dpkg: error processing package libdns162:amd64 (--configure):
package libdns162:amd64 is already installed and configured
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
dpkg: dependency problems prevent configuration of bind9-host:
bind9-host depends on libdns162 (= 1:9.10.3.dfsg.P4-8ubuntu1.10); however:
Version of libdns162:amd64 on system is 1:9.10.3.dfsg.P4-8ubuntu1.8.
dpkg: error processing package bind9-host (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of dnsutils:
dnsutils depends on libdns162 (= 1:9.10.3.dfsg.P4-8ubuntu1.10); however:
Version of libdns162:amd64 on system is 1:9.10.3.dfsg.P4-8ubuntu1.8.
dnsutils depends on bind9-host | host; however:
Package bind9-host is not configured yet.
Package host is not installed.
Package bind9-host which provides host is not configured yet.
dpkg: error processing package dnsutils (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
libdns162:amd64
bind9-host
dnsutils
E: Sub-process /usr/bin/dpkg returned an error code (1)
我该如何安装:
1:9.10.3.dfsg.P4-8ubuntu1.10
注意:您遇到的错误可能与您本地缓存中的损坏包有关,请执行以下命令修复它:
libdns162
您可以使用以下命令升级软件包:请注意,在执行软件包升级之前,您可能需要执行: