LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 01-20-2015, 01:08 PM   #1
Nutria
Member
 
Registered: Nov 2007
Location: New Orleans, LA, USA
Distribution: Xubuntu
Posts: 67

Rep: Reputation: 6
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
 
Old 01-20-2015, 02:05 PM   #2
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Did you try

Code:
Pin: version 2:1.1~svn*
 
Old 01-20-2015, 02:11 PM   #3
Nutria
Member
 
Registered: Nov 2007
Location: New Orleans, LA, USA
Distribution: Xubuntu
Posts: 67

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by Daws View Post
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
 
  


Reply

Tags
aptpinning


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LibreOffice upgrade problem question (pinning) feeblebrain Debian 4 12-04-2011 11:38 AM
Pinning package versions DaveQB Ubuntu 1 03-31-2007 09:48 AM
question on pinning michapma Debian 1 09-16-2006 12:59 AM
apt-pinning does not obey to Not install the package kushalkoolwal Debian 11 05-16-2006 03:39 AM
Package pinning problem postb99 Debian 2 03-22-2005 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration