Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

apt-pinning debian-multimedia

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
alexpj
Posts: 38
Joined: 2006-07-04 23:30
Location: England

apt-pinning debian-multimedia

#1 Post by alexpj »

Presently Debian.net and Debian-multimedia seem to be going separate ways with libav* with different package naming conventions.

I'd like to try the standard multimedia packages for Debian, but have the ability to include the bits in D-M.org like Handbrake.
D-M seems to use a numerical prefix, like 5:xxx to get priority over the standard debian equiv packages (which have a prefix 4: etc) so pinning doesn't seem to work (for me).

Or is there a way of doing this?

Thanks.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: apt-pinning debian-multimedia

#2 Post by vbrummond »

You might try setting up pinning so debian multimedia packages are never preferred. You will have to clean up what is already installed; However that should be simple.

1. Create and edit /etc/apt/preferences.d/pinning as root. nano /etc/apt/preferences.d/pinning
2. Add this to the file.

Code: Select all

Package: *
Pin: origin www.debian-multimedia.org
Pin-Priority: 1
3. Run apt-get update

Edit: Changed -10 to 100 so packages from multimedia will install when you want but should not preempt packages in the normal repos.
Edit: Changed 100 to 1 as it seemed to want to update some dev packages.
Always on Debian Testing

alexpj
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

#3 Post by alexpj »

Thank you Sir!

Just trying to work out why that works!

From http://manpages.debian.net/cgi-bin/man. ... &locale=en

Code: Select all

priority 1
           to the versions coming from archives which in their Release files
           are marked as "NotAutomatic: yes" like the debian experimental
           archive.

       priority 100
           to the version that is already installed (if any).

       priority 500
           to the versions that are not installed and do not belong to the
           target release.

       priority 990
           to the versions that are not installed and belong to the target
           release.

vbrummond
Posts: 4432
Joined: 2010-03-02 01:42

Re: apt-pinning debian-multimedia

#4 Post by vbrummond »

I am not really versed in pinning. I have only used pinning previous to have systems installed with mixed testing/sid packages. I found 1 to be the best value for this through experimentation. No packages want to install from D-M with dist-upgrade and yet I am successfully able to install handbrake. :)
Always on Debian Testing

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: apt-pinning debian-multimedia

#5 Post by stevepusser »

The last time I looked at handbrake, it used internal builds of all the codecs, so the system version of ffmpeg/libav* didn't affect it.

The opposite is true for most other multimedia applications.
MX Linux packager and developer

alexpj
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

#6 Post by alexpj »

Thank you both again.
Pinning set at one and all good.

Have taken the plunge and started to manage my /etc with a scm; I had been using comments and so on but this seems a better way.
My (old) preferences file was the first commit!

alexpj
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

#7 Post by alexpj »

Bah! It's not working.
I wonder if you would be kind enough to have a look please; it's probably obvious what I'm doing wrong.
vlc has just been offered as an upgrade from d-m.org over d.o . Currently installed 2.0.0-6 is from d.o; and 1:2.0.1-0.0 is from d-m.o
I'm confused as to why the pinning priorities are not appearing.

Thank you.

Code: Select all

apt-cache policy vlc                             (20-03 21:18)
vlc:
  Installed: 2.0.0-6
  Candidate: 1:2.0.1-0.0
  Version table:
     1:2.0.1-0.0 0
        990 http://www.debian-multimedia.org/ unstable/main amd64 Packages
 *** 2.0.0-6 0
        990 http://ftp.uk.debian.org/debian/ unstable/main amd64 Packages
        990 http://ftp.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Code: Select all

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

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

Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 10

Package: *
Pin: origin www.debian-multimedia.org
Pin-Priority: -1

keverets
Posts: 1
Joined: 2014-06-13 15:25

Re: apt-pinning debian-multimedia

#8 Post by keverets »

alexpj wrote:Bah! It's not working.
I wonder if you would be kind enough to have a look please; it's probably obvious what I'm doing wrong.
vlc has just been offered as an upgrade from d-m.org over d.o . Currently installed 2.0.0-6 is from d.o; and 1:2.0.1-0.0 is from d-m.o
I'm confused as to why the pinning priorities are not appearing.
Ordering mattered for me. The deb-multimedia.org was getting picked up by my "testing" pin first, before the "origin" pin.

Code: Select all

$ apt-cache policy vlc
vlc:
  Installed: 2.1.4-1+b1
  Candidate: 2.1.4-1+b1
  Version table:
     1:2.1.4-dmo3 0
        200 http://www.deb-multimedia.org/ testing/main amd64 Packages
     2.1.4-1+b2 0
        800 http://ftp.ca.debian.org/debian/ unstable/main amd64 Packages
 *** 2.1.4-1+b1 0
        901 http://ftp.ca.debian.org/debian/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.3-5 0
        500 http://ftp.ca.debian.org/debian/ stable/main amd64 Packages

Code: Select all

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

Package: *
Pin: origin *.deb-multimedia.org
Pin-Priority: 200

Package: *
Pin: release a=testing
Pin-Priority: 901
This is with a deb-multimedia line of:

Code: Select all

deb http://www.deb-multimedia.org testing main non-free

Post Reply