LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-21-2005, 03:10 PM   #1
postb99
LQ Newbie
 
Registered: Jul 2003
Location: France
Distribution: Ubuntu (current stable version)
Posts: 13

Rep: Reputation: 0
Unhappy Package pinning problem


Hello,

I have the following in /etc/apt/sources.list :

Code:
barbara@babs1:~$ cat /etc/apt/sources.list 

deb http://ftp.fr.debian.org/debian/ testing main non-free contrib
deb http://ftp.fr.debian.org/debian-non-US testing/non-US main contrib
deb http://ftp.fr.debian.org/debian sid main non-free contrib
deb http://ftp.fr.debian.org/debian-non-US sid/non-US main contrib

deb-src http://ftp.fr.debian.org/debian/ testing main

# marillat
deb ftp://ftp.nerim.net/debian-marillat/ unstable main

# rarewares - audio
deb http://www.rarewares.org/debian/packages/unstable/ ./
This is my /etc/apt/preferences :

Code:
barbara@babs1:~$ cat /etc/apt/preferences 
Package: *
Pin: release O=Debian,a=unstable
Pin-Priority: 900

Package: *
Pin: release O=Debian,a=testing
Pin-Priority: 200

Package: *
Pin: release o=Christian Marillat
Pin-Priority: 500

Package: *
Pin: release o=xmixahlx,a=unstable
Pin-Priority: -1

Package: *
Pin: release o=DotDeb
Pin-Priority: 100
However I have this result :

Code:
root@babs1:/home/barbara# apt-cache policy k3b
k3b:
  Installé : 0.11.18-2
  Candidat : 0.11.99+cvs20050301.00-0.0
 Table de version :
     0.11.99+cvs20050301.00-0.0 0
        990 http://www.rarewares.org ./ Packages
     0.11.20-2 0
        990 http://ftp.fr.debian.org sid/main Packages
     0.11.20-1 0
        200 http://ftp.fr.debian.org testing/main Packages
 *** 0.11.18-2 0
        100 /var/lib/dpkg/status
rarewares' Release file :

Code:
Archive: unstable
Origin: xmixahlx
Label: xmixahlx_rarewares-unstable
Architecture: i386
What did I do wrong ? Package pinning doesn't work as expected... I don't expect the rarewares version to be candidate...

I also tried with :

Code:
Package: *
Pin: origin xmixahlx
Pin-Priority: -1
I use rarewares' repository only for a few packages and don't want it to mess up with k3b.

Thanks a lot for any hint.

Barbara
 
Old 03-22-2005, 07:53 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,173

Rep: Reputation: 54
Something is odd. Your preferences file does not match what the output of apt-cache policy is giving you. For k3b, the output of apt-cache policy says the pin priority is 990 for unstable even though you have it set to 900. It is also saying the pin priority is 990 for xmixahlx even though you have it set to -1. Check the syntax in the preferences file. I noticed it appears that you have a capital O instead of lowercase o for origin in some entries in preferences. I'm not sure if that is the source of the problem though. Here is my preferences file:
Code:
Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 1

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 600

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 650

Package: wine
Pin: version 0.0.20040615-1
Pin-Priority: 1001

Package: libwine
Pin: version 0.0.20040615-1
Pin-Priority: 1001

Package: wine-doc
Pin: version 0.0.20040615-1
Pin-Priority: 1001

Package: wine-utils
Pin: version 0.0.20040615-1
Pin-Priority: 1001
I have a specific version of wine set because this version works with one windows application that I need. With the above preferences, here is what I get for "apt-cache policy k3b":
Code:
k3b:
  Installed: 0.11.20-1
  Candidate: 0.11.20-1
  Version Table:
     0.11.20-2 0
        600 ftp://ftp.debian.org unstable/main Packages
 *** 0.11.20-1 0
        650 ftp://ftp.debian.org testing/main Packages
        100 /var/lib/dpkg/status
Here is what I get with apt-cache policy libwine:
Code:
libwine:
  Installed: 0.0.20040615-1
  Candidate: 0.0.20040615-1
  Package Pin: 0.0.20040615-1
  Version Table:
     0.0.20050310-1 1001
        600 ftp://ftp.debian.org unstable/main Packages
     0.0.20041201-1 1001
        650 ftp://ftp.debian.org testing/main Packages
 *** 0.0.20040615-1 1001
        100 /var/lib/dpkg/status
Hope the above helps.
 
Old 03-22-2005, 02:09 PM   #3
postb99
LQ Newbie
 
Registered: Jul 2003
Location: France
Distribution: Ubuntu (current stable version)
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you very much, case can sometime break things ! I had a faulty option in /etc/apt/apt.conf and realized this morning I haven't checked this file.

I had :

Code:
APT::Cache-Limit 10000000;
Apt::Get::Purge;
instead of :
Code:
APT::Cache-Limit 10000000;
APT::Get::Purge;
Once I corrected this case my /etc/apt/preferences settings were correctly read.

Wow.

Barbara
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pinning packages ptawe Debian 1 07-29-2005 09:35 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
Pinning syntax? sard Debian 2 03-02-2005 03:18 AM
Pinning, Testing and Unstable r3dhatter Debian 1 12-28-2004 07:52 AM
apt-pinning h/w Debian 6 02-25-2004 11:57 AM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration