[Bug 861595] Re: Apt source gets the source for the newest/highest priority binary avaialble, not the newest/highest priority source available
Torsten Spindler
torsten at canonical.com
Wed Feb 29 12:31:24 UTC 2012
Does specifying the version number for the package work around the
problem?
** Changed in: apt (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/861595
Title:
Apt source gets the source for the newest/highest priority binary
avaialble, not the newest/highest priority source available
Status in “apt” package in Ubuntu:
Incomplete
Bug description:
I have a PPA which has newer (fixed for cross-building) packages in
it. I want to be able to tell apt to get the newet sources available,
or even better to give the PPA higher priority so even if they aren't
newer they will still be used.
The example used here is net-tools. The main natty archive has
1.60-23ubuntu3 and the PPA (linaro-foundations/cross-alip) has
1.60-23ubuntu4cross1
However with the asources config below, "apt-get source" gets the
(1.60-23ubuntu3) source from the main archive, which is also the
version listed by apt-cache policy, not the 1.60-23ubuntu4cross1 whic
his both newer and in a higher-priority repo.
Essentially (I deduce) apt-get source downloads the source for the
highest-priority/newest binary available, not the highest-
priority/newest source available.
Configs:
deb http://arm-archive-ubuntu.cambridge.arm.com/ubuntu natty main universe
deb-src http://arm-archive-ubuntu.cambridge.arm.com/ubuntu natty main universe
deb [arch=armel] http://ports.ubuntu.com/ natty main universe
deb-src http://ports.ubuntu.com/ natty main universe
deb [arch=armel] http://ppa.launchpad.net/linaro-foundations/cross-alip/ubuntu natty main
deb-src http://ppa.launchpad.net/linaro-foundations/cross-alip/ubuntu natty main
(natty)$ more /etc/apt/preferences.d/crossppa-priority
Package: *
Pin: release o=LP-PPA-linaro-foundations-cross-alip
Pin-Priority: 600
If I change the line:
deb [arch=armel] http://ppa.launchpad.net/linaro-foundations/cross-alip/ubuntu natty main
to
deb [arch=amd64,armel] http://ppa.launchpad.net/linaro-foundations/cross-alip/ubuntu natty main
then apt-get source behaves as I expect. This is because PPAs only build x86 binaries of packages so the x86 version of net-tools 1.60-23ubuntu4cross1 is available, and that appears to be enough to let apt find it.
Here's the result of various commands below which I believe
illustrates the problem.
(natty)wookey at e102475-lin:/tmp$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
600 http://ppa.launchpad.net/linaro-foundations/cross-alip/ubuntu/ natty/main armel Packages
release v=11.04,o=LP-PPA-linaro-foundations-cross-alip,a=natty,n=natty,l=ALIP Source Packages for Cross Build PPA,c=main
origin ppa.launchpad.net
500 http://ppa.launchpad.net/linaro-foundations/cross-build-tools/ubuntu/ natty/main amd64 Packages
release v=11.04,o=LP-PPA-linaro-foundations-cross-build-tools,a=natty,n=natty,l=Linaro Cross Build Tools PPA,c=main
origin ppa.launchpad.net
500 http://ports.ubuntu.com/ natty/universe armel Packages
release v=11.04,o=Ubuntu,a=natty,n=natty,l=Ubuntu,c=universe
origin ports.ubuntu.com
500 http://ports.ubuntu.com/ natty/main armel Packages
release v=11.04,o=Ubuntu,a=natty,n=natty,l=Ubuntu,c=main
origin ports.ubuntu.com
500 http://arm-archive-ubuntu.cambridge.arm.com/ubuntu/ natty/universe amd64 Packages
release v=11.04,o=Ubuntu,a=natty,n=natty,l=Ubuntu,c=universe
origin arm-archive-ubuntu.cambridge.arm.com
500 http://arm-archive-ubuntu.cambridge.arm.com/ubuntu/ natty/main amd64 Packages
release v=11.04,o=Ubuntu,a=natty,n=natty,l=Ubuntu,c=main
origin arm-archive-ubuntu.cambridge.arm.com
Pinned packages:
(natty)wookey at e102475-lin:/tmp$ apt-cache showsrc net-tools
Package: net-tools
Binary: net-tools
Version: 1.60-23ubuntu3
Priority: required
Section: net
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
Build-Depends: debhelper (>= 5), gettext, quilt
Architecture: any
Standards-Version: 3.8.1
Format: 1.0
Directory: pool/main/n/net-tools
Files:
3a6b0df60dbf45af5fb702cbb52bb247 1192 net-tools_1.60-23ubuntu3.dsc
ecaf37acb5b5daff4bdda77785fd916d 265441 net-tools_1.60.orig.tar.gz
33745221536da59532a8405edea03e4d 217841 net-tools_1.60-23ubuntu3.diff.gz
Uploaders: Luk Claes <luk at debian.org>, MartÃn Ferrari <tincho at debian.org>
Checksums-Sha1:
558dc6f1e77fe2b68dd3ba9bbb11da96b651a722 1192 net-tools_1.60-23ubuntu3.dsc
d815b87bf8b30d0bcc3c729cdfb3ada3a3f945d0 265441 net-tools_1.60.orig.tar.gz
c62bd189b18e2f454e68eac06e8c808b54298a4f 217841 net-tools_1.60-23ubuntu3.diff.gz
Checksums-Sha256:
c560319a64ffa64b2a5e31e6ef41904a3c74f1e9f65094bbdc4e155834ea06a4 1192 net-tools_1.60-23ubuntu3.dsc
ec67967cf7b1a3a3828a84762fbc013ac50ee5dc9aa3095d5c591f302c2de0f5 265441 net-tools_1.60.orig.tar.gz
3dfd56ebe688626a42840eb650754f7d0501a6d3a18702d33c8048c9e3034e3f 217841 net-tools_1.60-23ubuntu3.diff.gz
Package: net-tools
Binary: net-tools
Version: 1.60-23ubuntu3
Priority: required
Section: net
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
Build-Depends: debhelper (>= 5), gettext, quilt
Architecture: any
Standards-Version: 3.8.1
Format: 1.0
Directory: pool/main/n/net-tools
Files:
3a6b0df60dbf45af5fb702cbb52bb247 1192 net-tools_1.60-23ubuntu3.dsc
ecaf37acb5b5daff4bdda77785fd916d 265441 net-tools_1.60.orig.tar.gz
33745221536da59532a8405edea03e4d 217841 net-tools_1.60-23ubuntu3.diff.gz
Uploaders: Luk Claes <luk at debian.org>, MartÃn Ferrari <tincho at debian.org>
Checksums-Sha1:
558dc6f1e77fe2b68dd3ba9bbb11da96b651a722 1192 net-tools_1.60-23ubuntu3.dsc
d815b87bf8b30d0bcc3c729cdfb3ada3a3f945d0 265441 net-tools_1.60.orig.tar.gz
c62bd189b18e2f454e68eac06e8c808b54298a4f 217841 net-tools_1.60-23ubuntu3.diff.gz
Checksums-Sha256:
c560319a64ffa64b2a5e31e6ef41904a3c74f1e9f65094bbdc4e155834ea06a4 1192 net-tools_1.60-23ubuntu3.dsc
ec67967cf7b1a3a3828a84762fbc013ac50ee5dc9aa3095d5c591f302c2de0f5 265441 net-tools_1.60.orig.tar.gz
3dfd56ebe688626a42840eb650754f7d0501a6d3a18702d33c8048c9e3034e3f 217841 net-tools_1.60-23ubuntu3.diff.gz
Package: net-tools
Binary: net-tools
Version: 1.60-23ubuntu4cross1
Section: net
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Build-Depends: debhelper (>= 5), gettext, quilt
Architecture: any
Standards-Version: 3.8.1
Format: 1.0
Directory: pool/main/n/net-tools
Files:
ecaf37acb5b5daff4bdda77785fd916d 265441 net-tools_1.60.orig.tar.gz
b6e2cadb4e96dc6c7096cba9082cc05e 223622 net-tools_1.60-23ubuntu4cross1.diff.gz
310204c14b4f78abfe47d5da1c8fb253 1216 net-tools_1.60-23ubuntu4cross1.dsc
Uploaders: Luk Claes <luk at debian.org>, MartÃn Ferrari <tincho at debian.org>
Checksums-Sha1: d815b87bf8b30d0bcc3c729cdfb3ada3a3f945d0 265441 net-tools_1.60.orig.tar.gz
a3a5b153fd08b8608e8a3c48caf9cb453d75a3b4 223622 net-tools_1.60-23ubuntu4cross1.diff.gz
Checksums-Sha256: ec67967cf7b1a3a3828a84762fbc013ac50ee5dc9aa3095d5c591f302c2de0f5 265441 net-tools_1.60.orig.tar.gz
10e3c33242a82756129780d972654a7c4433786fb6ae20bb5bc7915a7201ccda 223622 net-tools_1.60-23ubuntu4cross1.diff.gz
Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
(natty)wookey at e102475-lin:/tmp$ apt-cache policy net-tools
net-tools:
Installed: 1.60-23ubuntu3
Candidate: 1.60-23ubuntu3
Version table:
*** 1.60-23ubuntu3 0
500 http://arm-archive-ubuntu.cambridge.arm.com/ubuntu/ natty/main amd64 Packages
100 /var/lib/dpkg/status
(natty)wookey at e102475-lin:/tmp$ apt-cache show net-tools
Package: net-tools
Priority: required
Section: net
Installed-Size: 1044
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
Architecture: amd64
Version: 1.60-23ubuntu3
Replaces: ja-trans (<= 0.8-2), netbase (<< 4.00)
Depends: libc6 (>= 2.4)
Conflicts: ja-trans (<= 0.8-2)
Filename: pool/main/n/net-tools/net-tools_1.60-23ubuntu3_amd64.deb
Size: 259890
MD5sum: a326bfa0adff2972c9d34e93fd58120b
SHA1: 3c87e52cd39d1226e016339f7822cf5df36cbefe
SHA256: a1a8b5a15f41defb297686a826bbd71739c1199a913a247a900de1cfe4baa509
Description: The NET-3 networking toolkit
This package includes the important tools for controlling the network
subsystem of the Linux kernel. This includes arp, ifconfig, netstat,
rarp, nameif and route. Additionally, this package contains utilities
relating to particular network hardware types (plipconfig, slattach,
mii-tool) and advanced aspects of IP configuration (iptunnel, ipmaddr).
.
In the upstream package 'hostname' and friends are included. Those are
not installed by this package, since there is a special "hostname*.deb".
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m
Task: minimal
(natty)$ grep -A 7 "Package: net-tools" /var/lib/apt/lists/*
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages:Package: net-tools
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Priority: required
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Section: net
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Installed-Size: 1044
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Architecture: amd64
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_binary-amd64_Packages-Version: 1.60-23ubuntu3
--
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources:Package: net-tools
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Binary: net-tools
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Version: 1.60-23ubuntu3
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Priority: required
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Section: net
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
/var/lib/apt/lists/arm-archive-ubuntu.cambridge.arm.com_ubuntu_dists_natty_main_source_Sources-Build-Depends: debhelper (>= 5), gettext, quilt
grep: /var/lib/apt/lists/lock: Permission denied
--
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages:Package: net-tools
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Priority: required
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Section: net
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Installed-Size: 900
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Architecture: armel
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_binary-armel_Packages-Version: 1.60-23ubuntu3
--
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources:Package: net-tools
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Binary: net-tools
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Version: 1.60-23ubuntu3
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Priority: required
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Section: net
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Original-Maintainer: net-tools Team <pkg-net-tools-maintainers at lists.alioth.debian.org>
/var/lib/apt/lists/ports.ubuntu.com_dists_natty_main_source_Sources-Build-Depends: debhelper (>= 5), gettext, quilt
--
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources:Package: net-tools
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Binary: net-tools
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Version: 1.60-23ubuntu4cross1
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Section: net
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Build-Depends: debhelper (>= 5), gettext, quilt
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Architecture: any
/var/lib/apt/lists/ppa.launchpad.net_linaro-foundations_cross-alip_ubuntu_dists_natty_main_source_Sources-Standards-Version: 3.8.1
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: apt 0.8.13.2ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: cdc_phonet phonet nls_iso8859_1 nls_cp437 usb_storage uas vboxnetadp vboxnetflt vboxdrv parport_pc btrfs zlib_deflate libcrc32c ufs qnx4 hfsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs binfmt_misc vmblock kvm_intel kvm ppdev autofs4 snd_hda_codec_hdmi snd_hda_codec_analog rpcsec_gss_krb5 nfsd exportfs snd_hda_intel snd_hda_codec nfs snd_hwdep snd_pcm lockd fscache nfs_acl auth_rpcgss nouveau snd_seq_midi sunrpc ttm drm_kms_helper drm snd_rawmidi i2c_algo_bit snd_seq_midi_event snd_seq snd_timer snd_seq_device snd tpm_tis tpm tpm_bios soundcore snd_page_alloc video lp parport usbhid hid ahci libahci e1000e floppy
Architecture: amd64
Date: Wed Sep 28 16:49:50 2011
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/861595/+subscriptions
More information about the foundations-bugs
mailing list