![Aptitude Search 报告软件包已安装,而 Aptitude Show 报告软件包未安装 - 这怎么可能?](https://linux22.com/image/26584/Aptitude%20Search%20%E6%8A%A5%E5%91%8A%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%B7%B2%E5%AE%89%E8%A3%85%EF%BC%8C%E8%80%8C%20Aptitude%20Show%20%E6%8A%A5%E5%91%8A%E8%BD%AF%E4%BB%B6%E5%8C%85%E6%9C%AA%E5%AE%89%E8%A3%85%20-%20%E8%BF%99%E6%80%8E%E4%B9%88%E5%8F%AF%E8%83%BD%EF%BC%9F.png)
me@friedly_server:~$ aptitude search samba-tools
i samba-tools - Samba testing utilities
me@friendly_server:~$ aptitude show samba-tools
Package: samba-tools
New: yes
State: not installed
Automatically installed: no
Version: 2:3.6.6-3
Priority: optional
Section: net
Maintainer: Debian Samba Maintainers <[email protected]>
Uncompressed Size: 34.5 M
Depends: libacl1 (>= 2.2.51-8), libattr1 (>= 1:2.4.46-8), libc6 (>= 2.10), libcap2 (>= 2.10), libcomerr2 (>=
1.01), libcups2 (>= 1.4.0), libgssapi-krb5-2 (>= 1.10+dfsg~), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3
(>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libpam0g (>= 0.99.7.1), libpopt0 (>= 1.14), libreadline6 (>=
6.0), libtalloc2 (>= 2.0.4~git20101213), libtdb1 (>= 1.2.7+git20101214), libtinfo5, libwbclient0 (>=
2:3.6.0~pre3), zlib1g (>= 1:1.1.4)
PreDepends: dpkg (>= 1.15.6~)
Conflicts: samba4, samba4-testsuite
Description: Samba testing utilities
Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file
and printer sharing with Microsoft Windows, OS X, and other Unix systems.
This package contains extra command-line tools such as smbtorture for performance-testing CIFS servers and
clients.
Homepage: http://www.samba.org
那么,资质搜索中的“i”标记是否与“资质显示”的报告相矛盾呢?或者我不明白该标记的含义?
答案1
当您运行时aptitude search
,您会被告知samba-tools
安装了某个名为的软件包。当您运行 时aptitude show
,您将获得有关 的候选版本的信息,即(或) 将安装的samba-tools
版本。在您的系统上,候选版本显然不是您已安装的版本。也许您的系统不是最新的,或者您可能是从备用源安装的,例如仅根据明确要求安装的 Debian 反向移植。aptitude install
apt-get install
samba-tools