[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

Debian Bug report logs - #600010
document that apt-cache search operates only on candidates

version graph

Package: apt; Maintainer for apt is APT Development Team <deity@lists.debian.org>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Willi Mann <willi@wm1.at>

Date: Tue, 12 Oct 2010 19:15:04 UTC

Severity: wishlist

Found in version apt/0.8.6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#600010; Package apt. (Tue, 12 Oct 2010 19:15:07 GMT) (full text, mbox, link).


Acknowledgement sent to Willi Mann <willi@wm1.at>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>. (Tue, 12 Oct 2010 19:15:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Willi Mann <willi@wm1.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-cache search seems not to search the Package name
Date: Tue, 12 Oct 2010 21:07:15 +0200
Package: apt
Version: 0.8.6
Severity: normal

I discovered this when searching for the new rc6 kernel in experimental. A search
for the package name (or parts of it) returns no result despite the package being 
available as shown by a-c policy: 

# apt-cache search linux-image 2.6.36
# apt-cache search linux-image-2.6.36-rc6-amd64
# apt-cache policy linux-image-2.6.36-rc6-amd64
linux-image-2.6.36-rc6-amd64:
  Installiert: (keine)
  Kandidat:    (keine)
  Versionstabelle:
     2.6.36~rc6-1~experimental.1 0
        -10 http://127.0.0.1/ftp.at.debian.org/debian/ experimental/main amd64 Packages

# apt-cache show linux-image-2.6.36-rc6-amd64
Package: linux-image-2.6.36-rc6-amd64
Priority: optional
Section: kernel
Installed-Size: 100580
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Architecture: amd64
Source: linux-2.6
Version: 2.6.36~rc6-1~experimental.1
Provides: linux-image, linux-image-2.6, linux-modules-2.6.36-rc6-amd64
Depends: module-init-tools, linux-base (>= 2.6.36~rc6-1~experimental.1), initramfs-tools (>= 0.55) | linux-initramfs-tool
Pre-Depends: debconf | debconf-2.0
Recommends: firmware-linux-free (>= 2.6.36~rc6)
Suggests: linux-doc-2.6.36, grub | lilo
Conflicts: initramfs-tools (<< 0.55)
Filename: pool/main/l/linux-2.6/linux-image-2.6.36-rc6-amd64_2.6.36~rc6-1~experimental.1_amd64.deb
Size: 28935378
MD5sum: e1dce6687b44c55fb5ba1bc544579675
SHA1: 904a41f42bc3ac94b97eb3d4c816d5725e2af3a6
SHA256: babcb0b25be5154760e1d2b3985536fe5e292c66597187790eaf787c509caabc
Description: Linux 2.6.36-rc6 for 64-bit PCs
 The Linux kernel 2.6.36-rc6 and modules for use on PCs with AMD64 or Intel
 64 processors.
 .
 This kernel also runs on a Xen hypervisor.  It supports only unprivileged
 (domU) operation.


I guess the problem is that the Package name is not searched. If that's the case, please
include it in the searched fields.

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Periodic "";
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Get "";
APT::Get::Show-Versions "1";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "/var/lib/apt/extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
Unattended-Upgrade "";
Unattended-Upgrade::Allowed-Origins "";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} stable";
Unattended-Upgrade::Allowed-Origins:: "${distro_id} ${distro_codename}-security";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- /etc/apt/preferences --

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800

Package: *
Pin: release o=Debian
Pin-Priority: -10

Package: gnash gnash-common gnash-common-opengl mozilla-plugin-gnash
Pin: version 0.8.7*
Pin-Priority: -1

Package: gnash gnash-common gnash-common-opengl mozilla-plugin-gnash
Pin: version 0.8.8*
Pin-Priority: 500



#Package: initramfs-tools
#Pin: version 0.9*
#Pin-Priority: -1

-- /etc/apt/sources.list --

# 

deb http://127.0.0.1:3142/ftp.at.debian.org/debian/ testing main contrib non-free 
deb http://127.0.0.1:3142/ftp.at.debian.org/debian/ sid main contrib non-free
deb-src http://127.0.0.1:3142/ftp.at.debian.org/debian/ testing main contrib non-free 
deb-src http://127.0.0.1:3142/ftp.at.debian.org/debian/ sid main contrib non-free


deb http://127.0.0.1:3142/ftp.at.debian.org/debian/ experimental main


#deb-src http://ftp.at.debian.org/debian/ unstable main

#deb http://backports.debian.or.at/backports.org/ etch-backports main contrib non-free

#deb http://security.debian.org/ etch/updates main contrib
#deb-src http://security.debian.org/ etch/updates main contrib

#deb http://debian.netcologne.de/debian-multimedia.org sid main
#deb-src http://debian.netcologne.de/debian-multimedia.org sid main

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28       GnuPG archive keys of the Debian a
ii  gnupg                   1.4.10-4         GNU privacy guard - a free PGP rep
ii  libc6                   2.11.2-6         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.4-8        GCC support library
ii  libstdc++6              4.4.4-8          The GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

apt recommends no packages.

Versions of packages apt suggests:
pn  apt-doc                     <none>       (no description available)
ii  aptitude                    0.6.3-3.1    terminal-based package manager (te
ii  bzip2                       1.0.5-6      high-quality block-sorting file co
ii  dpkg-dev                    1.15.8.5     Debian package development tools
ii  lzma                        4.43-14      Compression method of 7z format in
ii  python-apt                  0.7.97.1     Python interface to libapt-pkg
ii  synaptic                    0.70~pre1+b1 Graphical package manager

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#600010; Package apt. (Tue, 12 Oct 2010 19:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Willi Mann <willi@wm1.at>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Tue, 12 Oct 2010 19:33:06 GMT) (full text, mbox, link).


Message #10 received at 600010@bugs.debian.org (full text, mbox, reply):

From: Willi Mann <willi@wm1.at>
To: 600010@bugs.debian.org
Subject: preferences file's fault
Date: Tue, 12 Oct 2010 21:29:32 +0200
Removing the preferences file solves the problem. Does that mean that
packages with negative Pin-Priorities get ignored by apt-cache search?
If yes, is this docuemented somewhere?

WM




Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#600010; Package apt. (Tue, 12 Oct 2010 20:15:06 GMT) (full text, mbox, link).


Acknowledgement sent to David Kalnischkies <kalnischkies+debian@gmail.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. (Tue, 12 Oct 2010 20:15:06 GMT) (full text, mbox, link).


Message #15 received at 600010@bugs.debian.org (full text, mbox, reply):

From: David Kalnischkies <kalnischkies+debian@gmail.com>
To: Willi Mann <willi@wm1.at>, 600010@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#600010: apt-cache search seems not to search the Package name
Date: Tue, 12 Oct 2010 22:10:34 +0200
retitle 600010 document that apt-cache search operates only on candidates
severity 600010 wishlist
thanks

On Tue, Oct 12, 2010 at 21:07, Willi Mann <willi@wm1.at> wrote:
> I discovered this when searching for the new rc6 kernel in experimental. A search
> for the package name (or parts of it) returns no result despite the package being
> available as shown by a-c policy:
>
> # apt-cache search linux-image 2.6.36
> # apt-cache search linux-image-2.6.36-rc6-amd64
> # apt-cache policy linux-image-2.6.36-rc6-amd64
> linux-image-2.6.36-rc6-amd64:
>  Installiert: (keine)
>  Kandidat:    (keine)
>  Versionstabelle:
>     2.6.36~rc6-1~experimental.1 0
>        -10 http://127.0.0.1/ftp.at.debian.org/debian/ experimental/main amd64 Packages


You have pinned all versions of this package below zero so,
as policy tells you, this package has no candidate:

What can't be installed isn't really useful as a search result,
so APT doesn't include the package in the result list - expected behavior.
(a quick look suggests that it is nowhere documented that apt-cache search
 only does searching in candidate versions)

You might want to pin to 1 instead of -10 (which is the default
for experimental), so APT can choose this experimental version
as candidate for this package (as no other "better" archive provides
a version of this package) and can therefore include it in search results…


Best regards

David Kalnischkies




Changed Bug title to 'document that apt-cache search operates only on candidates' from 'apt-cache search seems not to search the Package name' Request was from David Kalnischkies <kalnischkies+debian@gmail.com> to control@bugs.debian.org. (Tue, 12 Oct 2010 20:15:08 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from David Kalnischkies <kalnischkies+debian@gmail.com> to control@bugs.debian.org. (Tue, 12 Oct 2010 20:15:09 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Dec 5 03:52:16 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.