[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#840168: apt-file does not respect apt pinning priorities



Package: apt-file
Version: 3.1.1
Severity: important

apt-file does not respect apt pinning priorities and when a file
is found it's hard to determine (from the output) what release it is from.

------------
$ cat /etc/apt/sources.list
deb [arch=amd64,i386] https://mirrors.ludost.net/debian/ jessie main contrib
non-free
deb [arch=amd64,i386] https://mirrors.ludost.net/debian/ stretch main contrib
non-free
deb [arch=amd64,i386] https://www.deb-multimedia.org stretch main non-free
deb [arch=amd64,i386] http://debug.mirrors.debian.org/debian-debug/ stretch-
debug main contrib non-free
------------

------------
$ cat /etc/apt/preferences
Package: *
Pin: release n=jessie
Pin-Priority: -1

Package: *
Pin: release n=stretch
Pin-Priority: 1000
------------

------------
$ sudo apt-file update
$ apt-file search samba_util.h
 samba-dev: /usr/include/samba-4.0/samba_util.h
------------

In the above example apt-file is telling me that samba_util.h is included in
samba-dev, but this
was from the jessie distribution, and this file is not present in
testing/stretch or unstable.

Again, my apt preferences have jessie blocked from install and apt-file should
not report a file
being found in any package that cannot be installed -- without explicity
allowing it in apt/preferences.

At the very least apt-file could have a third column including the repository
url that the package is from.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (1001, 'testing'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt-file depends on:
ii  apt                      1.3
ii  libapt-pkg-perl          0.1.29+b6
ii  liblist-moreutils-perl   0.416-1+b1
ii  libregexp-assemble-perl  0.36-1
pn  perl:any                 <none>

apt-file recommends no packages.

apt-file suggests no packages.

-- no debconf information


Reply to: