'apt-get source' ignores pinning?

From: Steven Brown (swbrown_at_ucsd.edu)
Date: 08/02/05

  • Next message: ken keanon: "gtk-config"
    Date: Mon, 01 Aug 2005 22:45:42 -0700
    To: debian-user@lists.debian.org
    
    

    'apt-get source' for me seems to ignore my pinning setup and downloads
    newer source than it should. apt-get install/build-dep does not,
    however. Is there something I'm doing wrong, or not understanding?
    More detail below.

    For example, apt-cache policy swf-player shows, as it should (I'm using
    a pretty standard pinning setup to pull some things from testing/unstable):

    swf-player:
       Installed: 0.3.4-2sarge0.1
       Candidate: 0.3.4-2sarge0.1
       Version Table:
          0.3.4-3 0
             400 http://mirrors.rcn.net testing/main Packages
             300 http://mirrors.rcn.net unstable/main Packages
      *** 0.3.4-2sarge0.1 0
             900 http://mirrors.rcn.net stable/main Packages
             100 /var/lib/dpkg/status

    Which looks right - it has stable's at 900 as I configured it to
    (/etc/apt/preferences attached below). apt-get install and apt-get
    build-dep all pull from stable as I would expect, but apt-get source
    pulls the most recent version from testing/unstable! E.g.,

    Reading Package Lists... Done
    Building Dependency Tree... Done
    Need to get 516kB of source archives.
    Get:1 http://mirrors.rcn.net testing/main swfdec0.3 0.3.4-3 (dsc) [803B]
    Get:2 http://mirrors.rcn.net testing/main swfdec0.3 0.3.4-3 (tar) [511kB]
    Get:3 http://mirrors.rcn.net testing/main swfdec0.3 0.3.4-3 (diff) [3765B]
    Fetched 3B in 0s (11B/s)
    Skipping unpack of already unpacked source in swfdec0.3-0.3.4

    If I comment out all but stable's lines in sources.list, it does fetch
    stable's source, so it's not a problem of having a broken deb-src for
    stable. So, I'm confused. :) Here's my /etc/apt/preferences:

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

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

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

    And here's my sources.list:

    # Sarge
    deb http://mirrors.rcn.net/debian/ stable main
    deb-src http://mirrors.rcn.net/debian/ stable main
    deb http://security.debian.org/ stable/updates main

    # Testing
    deb http://mirrors.rcn.net/debian/ testing main
    deb-src http://mirrors.rcn.net/debian/ testing main
    deb http://security.debian.org/ testing/updates main

    # Unstable
    deb http://mirrors.rcn.net/debian/ unstable main
    deb-src http://mirrors.rcn.net/debian/ unstable main
    # deb http://security.debian.org/ unstable/updates main

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: ken keanon: "gtk-config"

    Relevant Pages

    • Re: problems with fetching packages via apt-get, part2
      ... I've figured out that apt-get works fine, but it can't find the version it ... Err http://ftp.nl.debian.org unstable/main nfs-kernel-server 1:1.0.3-1 ... deb http://borft.student.utwente.nl/debian unstable main contrib ...
      (Debian-User)
    • Re: Debian 3.1: PHP install strategies
      ... the apt-get config file to change this. ... deb http://security.debian.org/ stable/updates main contrib non-free ... It would be better to check whether aptitude is already installed: ... installation going, then I download and install packages like apache, php, ...
      (uk.comp.os.linux)
    • Re: Upgrading from stable to testing with apt-get?
      ... deb http://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free ... WATCH for the sarge word instead of woody or stable, ... As root run apt-get update. ...
      (Debian-User)
    • apt/preferences origin pins for file:// sources
      ... but I am facing a problem with apt-get. ... downloaded the first few iso images of sarge and have them lying on my ... deb file:/mnt/sarge/1 sarge main ... deb http://ftp.us.debian.org/debian testing main contrib non-free ...
      (Debian-User)
    • apt not getting any updates to unstable for several days
      ... For the last several days my aptitude and apt-get are not seeing any ... Also the packages files are being download on each ... http://marillat.free.fr unstable/main Packages has also failed to ...
      (Debian-User)