当我输入以下内容时:
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
答案1
注意:您遇到的错误可能与本地缓存中的包损坏,请执行以下命令进行修复:
sudo apt-get clean
clean clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
您可以libdns162
使用以下命令升级包:
sudo apt-get install --only-upgrade libdns162
请注意,在执行包升级之前,您可能需要执行:
sudo apt-get update