Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
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 <pkg-samba-maint@lists.alioth.debian.org>
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

So, does the 'i' mark in aptitude search contradict to "aptitude show"'s report? Or I don't understand something about that mark's meaning?

share|improve this question
    
Interesting. What does dpkg -l | grep samba-tools show? –  January Oct 22 '12 at 19:18
    
@January $ dpkg -l| grep samba-tools ii samba-tools 2:3.5.11~dfsg-1 Samba testing utilities it is not in stable release. I've been asking friends now, they say it might be caused by the fact that this package comes from debports: packages.debian.org/… –  Bob Oct 22 '12 at 20:01
add comment

1 Answer

up vote 2 down vote accepted

When you run aptitude search, you are told that some package called samba-tools is installed. When you run aptitude show, you are given information about the candidate version of samba-tools, i.e. the version that aptitude install (or apt-get install) would install. On your system, the candidate version is apparently not the version you have installed. Maybe your system is not up-to-date, or maybe you have installed samba-tools from an alternate source such as the Debian backports which is only installed on explicit demand.

share|improve this answer
    
Seems, you're perfectly right. The installed version of package appears to be from another release. Unstable and testing repos are enabled in /etc/apt/sources.list. So, 'aptitude show' tells me that 'samba-tools' from stable release is not installed, while 'aptitude search' looks through the repos for the packages (and testing and unstable are enabled on friendlyserver). Strange, that it doesn't show results for the candidate as well, so that outputs of both commands were consistent. –  Bob Oct 23 '12 at 0:53
    
@bob in general, you should never mix Debian releases. Doing so is asking for trouble, even with "proper" pinning. –  jordanm Oct 23 '12 at 2:10
    
Yeah, I know, thanks; it's not my server :) –  Bob Oct 24 '12 at 0:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.