apt-pinning does not obey to Not install the package
Hi Guys,
I am using Debian etch(mainly) with some packages from unstable and I was playing around with the apt-pinning feature of Debian. I want that the autofs package does not get installed on my system by mistake so I did the following: Code:
#deb file:///cdrom/ sarge main Code:
Package: * apt-get update apt-get -s install autofs I get the following output: Code:
root@debian:~# apt-get -s install autofs I even tried Pinning on the version like this: Code:
Package: * I spent like 2 hrs on this googling and reading APT-GET how to on Debian docs but still no luck. Any one please tell me what is going on here????:scratch: |
What happens if you try an apt-get update and upgrade?
Does it try to install autofs still? I'm not too sure if this will help but I have never seen this "o=Debian" in the preferences before. Mine looks like this $ cat /etc/apt/preferences Package: * Pin: release a=testing Pin-Priority: 700 Package: * Pin: release a=unstable Pin-Priority: 650 |
Try that out with out the version #.
Package: autofs Pin: version * Pin-Priority: -10 and http://www.die.net/doc/linux/man/man...erences.5.html has some good docs |
Quote:
'o' stands for origin. It is pretty common in most of the APT-Pinning tutorial. the link that you have sent in your last past is bascially the man page for apt_preferences. I have gone through that man page. Although I will try your suggestion too and let you know. Thank you once again. |
Try this one:
Code:
Package: autofs |
Quote:
It stills wants to install the package. Am I missing something? I have heard so much about APT-Pinning for keep a package from not installing and when I actually tried it thinking it is pretty easy it does not work that way I thought or the manual says..... Help... |
I've never seen apt-pinning for one package working. There are open bugs on apt bts concerning this thing. There have been discussions, I haven't followed them.
Apt-pinning to negative values works for a complete repository but it doesn't help you in this case. Maybe somebody will give you a clear answer, or dig in other forums/google/..? Sorry! edit: In general apt won't install a package which is not absolutely needed due to dependency. If you want to stick to a special version, you have to put it on hold. There is a drawback here: if you are in version 1, and you don't want version 2. Then the package goes in version 3. It won't be upgraded. |
Quote:
|
Last try
What about this: Code:
Package: autofs :twocents: If you get an answer, I'm interested. |
Quote:
Well, that worked!!! I guess the problem was with the line: Pin-Priority: -10 When I changed the above line to: Pin-Priority: 1001 it worked. Having said that, why 1001 works and not anynumber less than 0(<0). I always thought that 1001 is for downgrading package and <0 is if you do not want to install the package. Can you please clear this confusion?? Thanks for your help...... |
Quote:
:D :D :D Sorry... On the BTS, some have classified this as wishlist.. Still my problem is the manpage for apt-preferences that not-so-clearly states that <0 should do the job. Something has to be changed. I'm checking with some other debian users, I'll inform you if I find something. |
Quote:
|
All times are GMT -5. The time now is 06:47 AM. |