LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problem with pinning a package (https://www.linuxquestions.org/questions/debian-26/problem-with-pinning-a-package-4175531641/)

Nutria 01-20-2015 01:08 PM

Problem with pinning a package
 
Hi,

I built mplayer from source into a local package (following a script I found on the internet; works on Xubuntu 14.04), and it installed fine.

But the Ubuntu version is higher than my version, and so wants to upgrade it.

So, I created a Preferences file and re-ran "apt-get update", but apt still does not see my pin. What am I doing wrong?

Thanks

Code:

$ cat /etc/apt/preferences.d/mplayer
Package: mplayer
Pin: version 1.1~svn*
Pin-Priority: 1001

$ apt-cache policy mplayer
mplayer:
  Installed: 2:1.1~svn37361-1
  Candidate: 2:1.1+dfsg1-0ubuntu3
  Package pin: (not found)
  Version table:
    2:1.1+dfsg1-0ubuntu3 1001
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
 *** 2:1.1~svn37361-1 1001
        100 /var/lib/dpkg/status


Daws 01-20-2015 02:05 PM

Did you try

Code:

Pin: version 2:1.1~svn*

Nutria 01-20-2015 02:11 PM

Quote:

Originally Posted by Daws (Post 5304112)
Did you try

Code:

Pin: version 2:1.1~svn*

That did it. Thanks.
Code:

$ apt-cache policy mplayer
mplayer:
  Installed: 2:1.1~svn37361-1
  Candidate: 2:1.1~svn37361-1
  Package pin: 2:1.1~svn37361-1
  Version table:
    2:1.1+dfsg1-0ubuntu3 1002
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
 *** 2:1.1~svn37361-1 1002
        100 /var/lib/dpkg/status



All times are GMT -5. The time now is 04:51 PM.